The law of quadratic reciprocity is one of the central results of classical number theory. Gauss called it the Theorema Aureum, or Golden Theorem. Given two distinct odd primes and
, it relates the question of whether
is a square modulo
to whether
is a square modulo
. These are questions about different moduli, yet their answers are closely related.
Gauss gave several proofs of the theorem. Eisenstein later found a particularly simple geometric proof, based on Gauss’s third proof, in which the relation between the two primes emerges from counting lattice points in a rectangle.
The Law of Quadratic Reciprocity
The Legendre Symbol: For an odd prime and an integer
, the Legendre symbol
records whether
is a square modulo
. It is defined by
Let and
be distinct odd primes. The law of quadratic reciprocity relates the two Legendre symbols by
Since both Legendre symbols are either or
, the formula says that they are equal unless both primes are congruent to
, in which case they have opposite signs. Thus,
It states a surprising symmetry: whether is a square modulo
is closely related to whether
is a square modulo
. For example,
is a square modulo
, whereas
is not a square modulo
. Hence
and
, as predicted by the theorem, since both primes are congruent to
.
Eisenstein’s proof reduces quadratic reciprocity to counting lattice points. The main idea is to express the Legendre symbol as the sign , where
can be calculated using a sum of floor functions. This sum then counts lattice points in a rectangle lying on one side of the line
. Counting the points on both sides of this line will give the reciprocity law.
We begin with Euler’s criterion, which relates the Legendre symbol to a power modulo .
Euler’s Criterion. Let be an odd prime and
an integer not divisible by
. Then
Since the Legendre symbol is either or
, this congruence determines it uniquely. In particular, we can find
by understanding the product of the
numbers
modulo
. When these numbers are reduced to representatives between
and
, their absolute values form a permutation of
. Thus, the Legendre symbol is determined by the number of negative signs that occur. This is Gauss’s lemma.
Eisenstein’s geometric argument expresses the parity of this sign count as a sum of floor functions. The advantage is that each floor function counts integers below a certain bound, allowing the reciprocity law to be proved by a simple lattice-point count.
Eisenstein’s Key Sums
Throughout this section, let . We will consider two sums.
The first is Eisenstein’s arithmetic sum:
Here, runs through the even integers
.
The second is the geometric sum:
Here, runs through the integers
.
We will show that these two sums have the same parity:
This relation connects the two parts of the proof. The first sum arises naturally from the arithmetic argument using Gauss’s lemma, while the second has a simple geometric interpretation as a count of lattice points.
Eisenstein’s Sum
Consider the sum
Here, runs through the even integers
. For each such integer
, the quantity
counts the positive integers
satisfying
, since
is not an integer. Thus,
counts the lattice points
satisfying
Geometrically, these are the lattice points below the line , with the horizontal coordinate restricted to even integers between
and
.
The Geometric Sum
Now consider
Here, runs through all integers from
to
. As before, each term counts the positive integers
satisfying
. Hence,
counts the lattice points satisfying
These are precisely the lattice points strictly inside the triangle with vertices
whose sloping side lies on the line .
Unlike , which counts points only at even horizontal coordinates,
counts all lattice points in a simple triangular region. This makes it more convenient for the geometric proof of quadratic reciprocity.
Eisenstein’s Lemma
The first major step is to show that the arithmetic definition of can be expressed in terms of the parity of
.
Lemma 1 (Eisenstein). Let and
be distinct odd primes. Then
Proof: Let This is the set of even nonzero residues modulo
. It has
elements. For each
, let
be the least positive residue of
modulo
. Thus
The residue need not be even. To bring it back into the even set
, define
Since is odd, if
is odd, then
is even. Hence every
belongs to
. Moreover, as
runs through
, the values
run through the elements of
exactly once. Thus the map
is a permutation of
.
Now compare with
modulo
. If
is even, then
, so
If
is odd, then
, so
Therefore, in all cases,
Equivalently
Multiplying this congruence over all gives
Since the are a permutation of
,
Since neither product is divisible by
, we cancel
from both sides to obtain
By Euler’s Criterion, when
. Thus
Since is even and
is odd, the product
is even. Also
is odd. Therefore the parity of
is the same as the parity of
Since the whole left-hand side is even, the two terms on the right-hand side must have the same parity. Thus
Summing over , we obtain
But the sum on the right is precisely . Hence
Therefore, This proves the lemma. .
From to
Eisenstein’s next insight is that, modulo 2, the sum over even (namely
) is congruent to the sum over all
, i.e.
. We give a streamlined parity argument that shows
Recall
Fix a particular even line . On that vertical line, all integer lattice points have coordinates
with
. Since
is odd,
is even, so there are exactly
points on that vertical line between
and
.
- The number of points strictly below the line
is
- The number of points strictly above
(but with
) is
Since is even, it follows that
We can see that
where is an odd integer in
. Concretely, each point above the line
on the even column
corresponds to a unique point below
on the odd column
. Hence, for each
,


Comparing to
Now break the sum into two parts: one over odd
and one over even
. That is,
Observe that the sum over odd in the range
is exactly
which after reindexing matches
Hence
Since , we conclude
The Main Geometric Counting Argument
We have now re‐expressed where
We now count all integer points in the rectangle
with . Precisely, we consider

Since there are choices for
and
choices for
, the total number of such lattice points is
No such lattice point lies exactly on the line
because if
and
, then
. Since
and
are distinct primes,
, so
must divide
. But
forces
, which is impossible in our index range. Hence all lattice points in
are either strictly below
or strictly above
.
- The points strictly below
(i.e. satisfying
) are counted by
- The points strictly above
(i.e. satisfying
) are counted by
Since these two sets of points partition all lattice points in
, we have
Therefore,
This completes Eisenstein’s geometric proof of the Law of Quadratic Reciprocity.
Concluding Remarks
- The beauty of this argument lies in translating an arithmetic statement about Legendre symbols into a purely geometric enumeration problem.
- Eisenstein’s parity argument shows that summing over even
-coordinates (the original sum
) is congruent mod 2 to summing over all
. This relates the parity of the Eisenstein sum to a sum more geometric.
- The final step is a simple but elegant lattice‐point count in a rectangle, divided by a diagonal line of slope
. No point in the interior can lie exactly on the diagonal, ensuring that every point is counted either “below” or “above.”