Proof. With the help of Theorem 1, Chapter 8, we obtain, writing
,
-
(a)
-
If
, then
. Using
, we obtain
since
(Lemma 1, section 4).
therefore
Since case is
, then
(see Ex. 40, part (e)), so
.
(b) If
, then
, and
with
therefore
Since case is
, then
(see Ex. 40, part (e)), so
.
-
(c)
-
Suppose that
, and
. By hypothesis,
, and this implies by Exercise 40 (e) that
(if not,
, and
gives
).
-
(d)
-
Suppose that
. By part (c),
.
Since
, then
.
Starting from
, we obtain
Since
,
is relatively prime with
, therefore
, so
, and
, since
, thus
where we must read in this fraction the product of
by the inverse modulo
of
. By definition, using
,
so
Moreover, since
,
, therefore
If
, since
, this equality implies that
, therefore
, which is false. Therefore
, and
□
Note : By a usual argument, if
,
. Note that the hypothesis
means that
is not a cubic residue modulo
, which is equivalent to
odd by Exercise 39. We can conclude
Suppose that
, and let
be the unique solution of
such that
, and
if
odd, and
otherwise.
If
is even, then
is a cubic residue modulo
, and
.
If
is odd, then
is not a cubic residue modulo
, and
satisfies
.
Writing
, and
, then
, and
The three roots of
in
are
. Here
is not a cubic residue modulo
, and
is also a cubic root of unity modulo
, so
. The proposition explicits the choice of the sign of
which gives
.
Numerical example : Let
be the prime
. If we decompose
on the form
, we obtain
. To obtain these result without tries, I find
such that
with the Tonelli-Shanks algorithm, and I compute
, where
is primary, with a small Python program using the class of elements in
and the Euclid algorithm in
. This gives the decompositions
and
where
, and I choose the sign of
such that
. We obtain
, and
must verify
.
Then
, where
. In
, the cubic roots of unity modulo
are
:
.
Here
, and we verify with a fast exponentiation that
I give here an extract of a table obtained with this program, which for each
gives
such that
and such that
if
odd, and
satisfies
(or
if
even, which corresponds to the case
).
As a verification I compute
with a fast exponentiation in
:
.
We obtain the primary prime
such that
by taking the conjugate of
. For instance, with
,
satisfies
, therefore
.
The lines where
, corresponding to the case where
are even (or equivalently
odd,
even), give the decomposition
,
. For instance
. If
is prime,