Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2009/ii/paper-3/11g/solution

In the multiplicative group , the squaring map is a group homomorphism with kernel , since is odd. Every nonzero square therefore has exactly two square roots. There are quadratic residues and the same number of nonresidues, and consequently .
For , direct multiplication gives . Multiplicativity of the Legendre symbol, including its value zero on multiples of , implies
Inversion permutes , so runs through all residue classes except . Thus

New to topics? Read the docs here!