1.4.1. Quadratic congruences and Euler’s Criterion
This section is based on [BUR11, Sec. 9.1].
Recall that the equation
has the (complex) solutions
In particular, the equation has no real solutions if , and it has only one solution, of multiplicity , if . Our first aim is to establish a similar criterion for quadratic congruences (Theorem 1.4.1.4).
Proposition 1.4.1.1.
Let be an odd prime and with . The quadratic congruences
and
are equivalent.
Proof.
Recall the standard method for deriving the quadratic formula:
Since is odd and , Euclid’s Lemma (Theorem 1.1.4.2) yields . Hence, by Corollary 1.2.1.11, the first equivalence remains valid when considered modulo (the others clearly do). Thus, the quadratic congruences (1.4.1.2) and (1.4.1.3) are equivalent. ∎
Theorem 1.4.1.4.
Let be an odd prime and with . Consider the quadratic congruence
Set . The following statements hold:
-
(1)
The quadratic congruence (1.4.1.5) has a solution if and only if the quadratic congruence
has a solution. More precisely, these two quadratic congruences have the same number of distinct solutions modulo .
-
(2)
If , then the quadratic congruence (1.4.1.5) admits a unique solution modulo . This solution is given by the unique solution to the linear congruence
-
(3)
Suppose that and the quadratic congruence
admits a solution . Then, the quadratic congruence (1.4.1.5) admits exactly two non-congruent solutions modulo , and these are given by the unique solutions to the linear congruences
where .
Proof.
Recall that, by Lagrange’s Theorem (Theorem 1.3.3.2), the quadratic congruence (1.4.1.5) admits at most distinct solutions modulo .
(1) By Proposition 1.4.1.1, the quadratic congruence (1.4.1.5) is equivalent to the quadratic congruence
The claim follows from the following observations:
-
•
For , since , we have
-
•
By Corollary 1.2.2.6, given , the linear congruence
which is equivalent to
admits a unique solution modulo .
Therefore, the map induces a bijection between the solutions modulo of the quadratic congruence (1.4.1.5) and those of the quadratic congruence .
End of Lecture 13
(2) If , then is clearly the only solution modulo to the congruence
Indeed, by Euclid’s Lemma (Theorem 1.1.4.2), if is an integer such that , then . By the previous argument, the unique solution to the linear congruence
is the unique solution modulo to the quadratic congruence (1.4.1.5).
(3) Suppose now that and that the quadratic congruence admits a solution . Set . Since
we have . Consequently, is also a solution to the quadratic congruence
Moreover, . Otherwise,
would be divisible by , and hence itself would be divisible by since the prime is odd, by Euclid’s Lemma (Theorem 1.1.4.2). This is impossible since and by assumption. In view of (1) and its proof, this finishes the proof of statement (3). ∎
We illustrate Theorem 1.4.1.4 in an example.
Example 1.4.1.6.
Not covered in the lecture Let and consider the quadratic congruence
We have , and . Then,
clearly satisfies . We therefore need to solve the quadratic congruence
which has the solution . Set . The solutions to the original quadratic congruence are, by Theorem 1.4.1.4(3), the solutions to the linear congruences
We calculated in Example 1.2.2.9 that . Hence, the solutions to these linear congruences are, respectively,
Since , we may replace by . In contrast, since , the quadratic equation has no solutions in the real numbers.
Motivated by Theorem 1.4.1.4, we aim to determine a criterion for a quadratic congruence of the form , where is an odd prime, to admit a solution.
Definition 1.4.1.7.
Let be an odd prime and with . We say that is a quadratic residue modulo if the congruence has a solution. Otherwise, is a quadratic non-residue modulo .
Remark 1.4.1.8.
Let be an odd prime and with and . If , then is a quadratic residue modulo if and only if is a quadratic residue modulo . For example, for , we have . Since , we see that neither nor are quadratic residues modulo .
Theorem 1.4.1.9 (Euler’s Criterion).
Let be an odd prime, so that is an integer, and with . Then is a quadratic residue modulo if and only if
Exercise. The proof will be added later.
Corollary 1.4.1.10.
Let be an odd prime and with . Then
Proof.
Notice that
Moreover, since , Fermat’s Little Theorem (Corollary 1.2.3.2) shows that divides . By Euclid’s Lemma (Theorem 1.1.4.2), the prime divides one of the integers and . It cannot divide both, since it would then divide their difference
but is odd. Therefore, exactly one of the congruences
holds. The claim then follows from Euler’s Criterion (Theorem 1.4.1.9). ∎
We illustrate Euler’s Criterion (Corollary 1.4.1.10) in some examples.
Example 1.4.1.11.
Not covered in the lecture Let .
-
•
Let . The quadratic congruence has the solution , and hence is a quadratic residue modulo . Euler’s Criterion (Corollary 1.4.1.10) yields the congruence
Indeed, since and , we have
Finally, , so that .
-
•
In contrast, for we have , and hence
Therefore, is a quadratic non-residue modulo .
Example 1.4.1.12.
Not covered in the lecture Let .
-
•
Let . The quadratic congruence has the solution , and hence is a quadratic residue modulo . Euler’s Criterion (Corollary 1.4.1.10) yields the congruence
-
•
In contrast, for we have , and hence
Therefore, is a quadratic non-residue modulo .