I'm working on an exercise involving the Legendre Symbol. It gives me a hint but I'm not sure how to prove it.
Let p and q be odd prime numbers with $p = q + 4a$ for some $a \in \mathbb{Z}$. Prove that $(\frac{a}{p}) = (\frac{q}{p})$
Hint: Prove that $(\frac{a}{p}) = (\frac{-q}{p})$
I'm not really sure how to prove that the hint is even true. Could someone help me see how the hint is true?