Jump to content

Gauss's lemma (number theory)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Dmharvey (talk | contribs) at 02:11, 13 April 2006 (sectionise; expand intro; add example; add a simple proof of the lemma; further discussion of the transfer). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This article is about Gauss's lemma in number theory. See also Gauss's lemma (polynomial).

Gauss's lemma in number theory, named after Carl Friedrich Gauss, gives a condition for an integer to be a quadratic residue. Although it is not useful computationally, it has theoretical significance, being involved in some proofs of quadratic reciprocity.

Statement of the lemma

For any odd prime p let a be an integer that is coprime to p.

Consider the integers

and their least positive residues modulo p. (These residues are all distinct, so there are (p−1)/2 of them.)

Let n be the number of these residues that are greater than p/2. Then

where (a/p) is the Legendre symbol.

Example

Taking p = 11 and a = 7, the relevant sequence of integers is

7, 14, 21, 28, 35.

After reduction modulo 11, this sequence becomes

7, 3, 10, 6, 2.

Three of these integers are larger than 11/2 (namely 6, 7 and 10), so n = 3. Correspondingly Gauss's lemma predicts that

This is indeed correct, because 7 is not a quadratic residue modulo 11.

Proof

A fairly simple proof of the lemma, reminiscent of one of the simplest proofs of Fermat's little theorem, can be obtained by evaluating the product

modulo p in two different ways. On one hand it is equal to

The second evaluation takes more work. If x is a nonzero residue modulo p, let us define the "absolute value" of x to be

Since n counts those multiples ka which are in the latter range, and since for those multiples, −ka is in the first range, we have

Now observe that the values |ra| are distinct for r = 1, 2, ..., (p−1)/2. Indeed, if |ra| = |sa|, then ra = ±sa, and therefore r = ±s (because a is invertible modulo p), so r = s because they are both in the range 1 ≤ r ≤ (p−1)/2. But there are exactly (p−1)/2 of them, so they must just be some rearrangement of the integers 1, 2, ..., (p−1)/2. Therefore

Comparing with our first evaluation, we may cancel out the nonzero factor

and we are left with

This is the desired result, because the left hand side is just an alternative expression for the Legendre symbol (a/p).

Applications

Gauss's lemma finds its main application in proving quadratic reciprocity. The "supplementary law"

which is part of the statement of quadratic reciprocity, can be deduced from Gauss's lemma by taking a = −1. With more care, the case a = 2 gives the other supplementary law.

Relation to the transfer in group theory

Let G be the multiplicative group of nonzero residue classes in Z/pZ, and let H be the subgroup {+1, −1}. Consider the following coset representatives of H in G,

Applying the machinery of the transfer to this collection of coset representatives, we obtain the transfer homomorphism

which turns out to be the map that sends a to (-1)n, where a and n are as in the statement of the lemma. Gauss's lemma may then be viewed as a computation that explicitly identifies this homomorphism as being the quadratic residue character.