Statement of the Quadratic Reciprocity Law
In this section we state the quadratic reciprocity law.
Definition 4.1 (Quadratic Residue)
Fix a prime

. An integer

not divisible by

is a
quadratic residue modulo

if

is a square modulo

;
otherwise,

is a
quadratic nonresidue.
For example, the squares modulo
are
so
and
are both quadratic residues and
and
are quadratic nonresidues.
The quadratic reciprocity theorem is the deepest theorem that we
will prove in this book. It connects the question of whether or
not
is a quadratic residue modulo
to the question of
whether
is a quadratic residue modulo each of the prime divisors
of
. To express it precisely, we introduce some new notation.
Definition 4.1 (Legendre Symbol)
Let

be an odd prime and let

be an integer coprime to

.
Set
We call this symbol the
Legendre Symbol.
For example, we have
This notation is well entrenched in the literature even though it
is also the notation for ``
divided by
''; be careful
not to confuse the two.
SAGE Example 4.1
Use the command legendre_symbol to
compute the Legendre symbol in SAGE.
sage: legendre_symbol(2,3)
-1
sage: legendre_symbol(1,3)
1
sage: legendre_symbol(3,5)
-1
sage: legendre_symbol(Mod(3,5), 5)
-1
Since
only depends on
, it makes sense
to define
for
to be
for
any lift
of
to
.
Recall (see Definition 3.3.6) that a group
homomorphism
is a map such that for every
we have
.
Moreover, we say that
is surjective if for every
there is an
with
.
The next lemma explains how the quadratic
residue symbol defines a surjective group homomorphism.
Lemma 4.1
The map
given by
is a surjective group homomorphism.
Proof.
By Theorem
2.5.8, primitive roots exist, so
there is

such that the elements of

are
Since

is even, the squares of elements of

are
Note that the powers of

starting with

all appeared
earlier on the list. Thus the perfect squares in

are
exactly the powers

with

, even, and the
nonsquares the powers

with

, odd. It follows
that

is a homomorphism since an odd plus an odd is even, the
sum of two evens is even, and and odd plus an even is odd. Moreover,
since

is not a square,

, so

is surjective.
Remark 4.1
We rephrase the above proof in the language of group theory. The group

of order

is a cyclic group. Since

is
odd,

is even, so the subgroup

of squares of elements of

has index

in

. (See Exercise
4.
2
for why

is a subgroup.) Since

if and only if

, we see that

is the composition

, where we identify the nontrivial element of

with

.
Remark 4.1
We can alternatively prove that

is surjective without using
that

is cyclic, as follows. If

is
a square, say

, then

, so

is a root of

. By
Proposition
2.5.3, the polynomial

has at most

roots. Thus there must be an

that is
not a root of

, and for that

, we have

,
and trivially

, so the map

is surjective. Note
that this argument does not prove that

is a homomorphism.
The symbol
only depends on the residue class of
modulo
, so making a table of values
for many values
of
would be easy. Would it be easy to make a table of
for many
? Perhaps, since there appears to be a simple pattern in
Table 4.1.
Table 4.1:
When is
a square modulo
?
|
|
mod 5 |
| 7 |
|
2 |
| 11 |
|
1 |
| 13 |
|
3 |
| 17 |
|
2 |
| 19 |
|
4 |
| 23 |
|
3 |
|
|
mod 5 |
| 29 |
|
4 |
| 31 |
|
1 |
| 37 |
|
2 |
| 41 |
|
1 |
| 43 |
|
3 |
| 47 |
|
2 |
It seems that
depends only on the congruence class
of
modulo
. More precisely,
if and only if
, i.e.,
if and only if
is a
square modulo
.
Based on similar observations, in the 18th century various
mathematicians found a conjectural explanation for the mystery
suggested by Table 4.1. Finally, on April 8, 1796, at
the age of 19, Gauss proved the following theorem.
Theorem 4.1 (Gauss's Quadratic Reciprocity Law)
Suppose
and
are distinct odd primes. Then
Also

and
We will give two proofs of Gauss's formula relating
to
. The first elementary proof is in
Section 4.3, and the second more algebraic proof is in
Section 4.4.
In our example Gauss's theorem implies that
As an application, the following example illustrates how to answer
questions like ``is
a square modulo
'' using
Theorem 4.1.7.
Example 4.1
Is

a square
modulo the prime

? We have
Here
and
Thus

is a square modulo

.
SAGE Example 4.1
We could also do this computation in SAGE as follows:
sage: legendre_symbol(69,389)
1
Though we know that
is a square modulo
, we don't know an
explicit
such that
! This is reminiscent
of how we could prove using Theorem 2.1.19 that
certain numbers are composite without knowing a factorization.
Remark 4.1
The Jacobi symbol is an extension of the Legendre symbol
to composite moduli. For more details, see
Exercise
4.
9.
William
2007-06-01