Gauss's lemma in number theory 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.
It made its first appearance in Carl Friedrich Gauss's third proof (1808) of quadratic reciprocity and he proved it again in his fifth proof (1818).
For any odd prime let be an integer that is coprime to .
Consider the integers
a,2a,3a,...,
p-1 | |
2 |
a
Let be the number of these residues that are greater than . Then
\left( | a |
p |
\right)=(-1)n,
\left( | a |
p |
\right)
Taking = 11 and = 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 = 3. Correspondingly Gauss's lemma predicts that
\left( | 7 |
11 |
\right)=(-1)3=-1.
The above sequence of residues
7, 3, 10, 6, 2may also be written
-4, 3, -1, -5, 2.In this form, the integers larger than 11/2 appear as negative numbers. It is also apparent that the absolute values of the residues are a permutation of the residues
1, 2, 3, 4, 5.
A fairly simple proof, reminiscent of one of the simplest proofs of Fermat's little theorem, can be obtained by evaluating the product
Z=a ⋅ 2a ⋅ 3a ⋅ … ⋅
p-1 | |
2 |
a
Z=a(p-1)/2\left(1 ⋅ 2 ⋅ 3 ⋅ … ⋅
p-1 | |
2 |
\right)
The second evaluation takes more work. If is a nonzero residue modulo, let us define the "absolute value" of to be
|x|=\begin{cases}x&if1\leqx\leq
p-1 | |
2, |
\ p-x&if
p+1 | |
2 |
\leqx\leqp-1.\end{cases}
Z=(-1)n\left(|a| ⋅ |2a| ⋅ |3a| ⋅ … … \left|
p-1 | |
2 |
a\right|\right).
\begin{align} |ra|&\equiv|sa|&\pmod{p}\\ ra&\equiv\pmsa&\pmod{p}\\ r&\equiv\pms&\pmod{p} \end{align}
This gives =, since and are positive least residues. But there are exactly of them, so their values are a rearrangement of the integers . Therefore,
Z=(-1)n\left(1 ⋅ 2 ⋅ 3 ⋅ … ⋅
p-1 | |
2\right). |
1 ⋅ 2 ⋅ 3 ⋅ … ⋅
p-1 | |
2 |
a(p-1)/2=(-1)n.
\left(
a | |
p |
\right)
For any odd prime let be an integer that is coprime to .
Let
I\subset(Z/pZ) x
(Z/pZ) x
I
-I=\{-i:i\inI\}
Then
\left( | a |
p |
\right)=(-1)t
t=\#\{j\inI:aj\in-I\}
In the original statement,
I=\{1,2,..., | p-1 |
2\} |
The proof is almost the same.
Gauss's lemma is used in many, but by no means all, of the known proofs of quadratic reciprocity.
For example, Gotthold Eisenstein used Gauss's lemma to prove that if is an odd prime then
\left( | a |
p |
(p-1)/2 | |
\right)=\prod | |
n=1 |
\sin{(2\pian/p) | |
Leopold Kronecker used the lemma to show that
\left( | p |
q |
| ||||
\right)=sgn\prod | ||||
i=1 |
| |||||
\prod | \left( | ||||
k=1 |
k | - | |
p |
i | |
q |
\right).
Switching and immediately gives quadratic reciprocity. It is also used in what are probably the simplest proofs of the "second supplementary law"
\left( | 2 |
p |
\right)=
(p2-1)/8 | |
(-1) |
=\begin{cases}+1ifp\equiv\pm1\pmod{8}\\-1ifp\equiv\pm3\pmod{8}\end{cases}
Generalizations of Gauss's lemma can be used to compute higher power residue symbols. In his second monograph on biquadratic reciprocity, Gauss used a fourth-power lemma to derive the formula for the biquadratic character of in, the ring of Gaussian integers. Subsequently, Eisenstein used third- and fourth-power versions to prove cubic and quartic reciprocity.
l{O}k,
ak{p}\subsetl{O}k
Nak{p}
ak{p}
ak{p}
l{O}k/ak{p}
Nak{p}=|l{O}k/ak{p}|
\zetan\inl{O}k,
ak{p}
n\not\inak{p}
ak{p}
This can be proved by contradiction, beginning by assuming that
s | |
\zeta | |
n |
ak{p}
t\equiv | |
\zeta | |
n |
1
ak{p}
n-1=(x-1)(x-\zeta | |
x | |
n)(x-\zeta |
n-1 | |
n |
),
xn-1+xn-2+...+x+1=(x-\zetan)(x-\zeta
n-1 | |
n |
).
Letting and taking residues mod
ak{p}
n\equiv(1-\zetan)(1-\zeta
n-1 | |
n |
)\pmod{ak{p}}.
Since and
ak{p}
n\not\equiv0
ak{p},
Thus the residue classes of
l{O}k/ak{p}
x | |
(l{O} | |
k/ak{p}) |
=l{O}k/ak{p}-\{0\}.
x | |
(l{O} | |
k/ak{p}) |
\begin{align} Nak{p}&=|l{O}k/ak{p}|\\ &=\left|(l{O}k/ak{p}) x \right|+1\\ &\equiv1\pmod{n}. \end{align}
There is an analogue of Fermat's theorem in
l{O}k
\alpha\inl{O}k
\alpha\not\inak{p}
\alphaN-1}\equiv1\pmod{ak{p}},
Nak{p}\equiv1
| ||||
\alpha |
{n}}\equiv
s\pmod{ak{p}} | |
\zeta | |
n |
This root of unity is called the th-power residue symbol for
l{O}k,
\begin{align} \left( | \alpha |
ak{p |
}\right)n&=
s | |
\zeta | |
n |
\\ &\equiv
| ||||
\alpha |
{n}}\pmod{ak{p}}. \end{align}
It can be proven that
\left( | \alpha |
ak{p |
}\right)n=1
η\inl{O}k
ak{p}
Let
\mun=\{1,\zetan,\zeta
n-1 | |
n |
\}
A=\{a1,a2,...,am\}
(l{O}k/
x /\mu | |
ak{p}) | |
n. |
ak{p}.
In other words, there are
mn=Nak{p}-1
A\mu=\{ai
j : | |
\zeta | |
n |
1\lei\lem, 0\lej\len-1\},
(l{O}k/ak{p}) x .
The numbers, used in the original version of the lemma, are a 1/2 system (mod).
Constructing a system is straightforward: let be a representative set for
(l{O}k/ak{p}) x .
a1\inM
a1,a1\zetan,a1\zeta
2, | |
n |
...,a1\zeta
n-1 | |
n |
a2,a2\zetan,a2\zeta
2, | |
n |
...,a2\zeta
n-1 | |
n |
ak{p}.
Gauss's lemma may be extended to the th power residue symbol as follows. Let
\zetan\inl{O}k
ak{p}\subsetl{O}k
\gamma\inl{O}k, n\gamma\not\inak{p},
ak{p}
ak{p}.
Then for each,, there are integers, unique (mod), and, unique (mod), such that
\gammaai\equiv
b(i) | |
\zeta | |
n |
a\pi(i)\pmod{ak{p}},
\left( | \gamma |
ak{p |
}\right)n=
b(1)+b(2)+...+b(m) | |
\zeta | |
n |
.
The classical lemma for the quadratic Legendre symbol is the special case,,, if, if .
The proof of the th-power lemma uses the same ideas that were used in the proof of the quadratic lemma.
The existence of the integers and, and their uniqueness (mod) and (mod), respectively, come from the fact that is a representative set.
Assume that = =, i.e.
\gammaai\equiv
r | |
\zeta | |
n |
ap\pmod{ak{p}}
\gammaaj\equiv
s | |
\zeta | |
n |
ap\pmod{ak{p}}.
s-r | |
\zeta | |
n |
\gammaai\equiv
s | |
\zeta | |
n |
ap\equiv\gammaaj\pmod{ak{p}}
ak{p}
s-r | |
\zeta | |
n |
ai\equivaj\pmod{ak{p}},
Then on the one hand, by the definition of the power residue symbol,
\begin{align} (\gammaa1)(\gammaa2)...(\gammaam)&=
| ||||
\gamma |
{n}}a1a2...am\\ &\equiv\left(
\gamma | |
ak{p |
}\right)na1a2...am\pmod{ak{p}}, \end{align}
\begin{align} (\gammaa1)(\gammaa2)...(\gammaam)&\equiv
b(1) | |
{\zeta | |
n |
a\pi(1)
\left( | \gamma |
ak{p |
}\right)na1a2...am\equiv
b(1)+b(2)+...+b(m) | |
\zeta | |
n |
a1a2...am \pmod{ak{p}},
ak{p}
\left( | \gamma |
ak{p |
}\right)n\equiv
b(1)+b(2)+...+b(m) | |
\zeta | |
n |
\pmod{ak{p}},
ak{p}
Let be the multiplicative group of nonzero residue classes in, and let be the subgroup . Consider the following coset representatives of in,
1,2,3,...,
p-1 | |
2 |
.
Applying the machinery of the transfer to this collection of coset representatives, we obtain the transfer homomorphism
\phi:G\toH,