Let $a\not\equiv 3\pmod 4$ and $a\ne 0$. How do you show that $\chi(n):=\left(\frac{a}{n}\right)$ (where $\left(\frac{\cdot}{\cdot}\right)$ denotes the Kronecker symbol) defines a character of modulus $m:=4|a|$ if $a\equiv 2 \pmod 4$ and $m:=|a|$ otherwise?
What I have to show is that we have $\left(\frac{a}{n}\right)=\left(\frac{a}{m+n}\right)$. The Kronecker symbol is defined using the prime factorisation of the lower argument. Unfortunately the prime factorisation of $n$ and $n+m$ can be totally different. So I don't have a clue how to prove that identity.