Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2002/ib/paper-3/9f/solution

A nonzero residue class is a quadratic residue if for some nonzero . If it is a square, Fermat's little theorem gives . Conversely, the map on the nonzero classes identifies exactly the pairs , giving distinct squares. They are all roots of over the field ; a polynomial of this degree has at most that many roots. Its roots are therefore precisely the squares. This proves Euler's criterion
Applying it to gives . The exclusion of is the usual nonzero-residue convention needed for this equivalence.
For distinct odd primes , quadratic reciprocity states
Using the multiplicativity of the Legendre symbol, and the supplementary law ,
The first factor is because ; the second is because the reciprocity sign is positive. Thus .

New to topics? Read the docs here!