Gauss’ lemma
Gauss’ lemma on quadratic residues is:
Proposition 1: Let be an odd prime and let be an integer which is not a multiple of . Let be thenumber of elements of the set
whose least positive residues, modulo , are greater than .Then
where is the Legendre symbol.
That is, is a quadratic residue modulo when is even and it is a quadratic nonresidue when is odd.
Gauss’ Lemma is the special case
of the slightly more general statement below.Write for the field of elements, andidentify with the set ,with its addition and multiplication mod .
Proposition 2: Let be a subset of such that or , but not both, for any .For let be the number of elements such that . Then
Proof: If and are distinct elements of , we cannot have, in view of the hypothesis on . Therefore
On the left we have
by Euler’s criterion. So
The product is nonzero, hence can be cancelled, yielding the proposition.
Remarks: Using Gauss’ Lemma, it is straightforward to prove thatfor any odd prime :
The condition on can also be stated like this:for any square , there is a unique suchthat . Apart from the usual choice
the set
has also been used, notably by Eisenstein.I think it was also Eisenstein who gave us this trigonometric identity,which is closely related to Gauss’ Lemma:
It is possible to prove Gauss’ Lemma or Proposition 2 “from scratch”, withoutleaning on Euler’s criterion, the existence of a primitiveroot, or the fact that a polynomial
over has no more zerosthan its degree.