Proof. Let
be an odd prime, and
the number of solutions of the congruence
. Write
the field with
elements.
Let
denote the classes of
in
:
(and
. We suppose that
, so that
, thus
.
Consider the conic in the plane
given by
so that
. If we partition the set
in subsets where
takes a given value, we obtain
Put
. Then
is the number of solutions in
of
, which is
(see Problem 3.1.23). This remains true if
. Therefore, using
,
thus
From
, where
, we obtain
so
It remains to show that, for any
,
Consider the particular case
(and as above,
), so that
. By equation (2), since
,
But here we can compute directly
by the change of variables
, equivalent to
. The equation
becomes
.
Let
. The maps
are correctly defined: if
,
, so
, and if
, then
, thus
satisfies
, so
.
Moreover
: for all
, and for all
,
This shows that
is bijective (and
. Therefore
.
Similarly, the maps
satisfy
, thus
is a bijection. Therefore
Then (2) gives
therefore
By equation (2),
The number of solutions of the congruence
is
. □