1.2.1. Congruence
This section is based largely on [BUR11, Sec. 4.2].
Definition 1.2.1.1.
Proposition 1.2.1.2.
Let and be such that . Then
Proof.
Suppose that . By definition, divides and hence divides . Since and is a multiple of , we must have or, equivalently, . The converse is trivial. ∎
Proposition 1.2.1.3.
Let be an integer and . The following statements are equivalent:
-
(1)
.
-
(2)
By the Division with Remainder Theorem (Theorem 1.1.1.8), division by allows us to write
with and . Then the remainders are equal: .
Proof.
(1)(2) By definition, there exists such that . Then
so that . Since , Proposition 1.2.1.2 implies that .
Corollary 1.2.1.4.
Let be an integer. For , let be the remainder obtained by dividing by the modulus . Then the function
is surjective and, moreover, if and only if .
Proof.
Surjectivity is clear: if , then is its own remainder. The second claim is a straightforward reformulation of Proposition 1.2.1.3. ∎
Example 1.2.1.5.
Not covered in the lecture Let , , and . We have and , and hence
Proposition 1.2.1.6.
Let be an integer and . The following statements hold:
-
(1)
.
-
(2)
if and only if .
-
(3)
If and , then .
-
(4)
If , then
-
(5)
If and , then
-
(6)
If , then for each integer .
Proof.
Everything follows from Proposition 1.1.1.6. We provide a proof of all statements for the sake of completeness.
(1) Clearly, divides .
(2) Using Proposition 1.1.1.6(7) we obtain: if and only if divides if and only if divides if and only if .
(3) By assumption, and . Proposition 1.1.1.6(11) implies that divides . Therefore, .
(4) By assumption, and also divides . Proposition 1.1.1.6(11) implies that divides
Therefore, . Similarly, since , Proposition 1.1.1.6(10) implies that divides . Hence, .
Remark 1.2.1.7.
In Proposition 1.2.1.6, statements (1), (2) and (3) say that being ‘congruent modulo ’ defines an equivalence relation on the set of integers. Indeed, these statements show that the congruence relation modulo is reflexive, symmetric and transitive.
Proposition 1.2.1.8.
Let be an integer and . Set so that is an integer. Then if and only if .
Proof.
By Bézout’s Identity (Theorem 1.1.3.7), there exist such that . Then
Suppose that or, equivalently, . Since , Proposition 1.2.1.6(5) implies that
Consequently, divides . Therefore, there exists such that
Since and , dividing by we obtain . This shows that .
Conversely, if , then for some . Multiplying by and using that , we obtain
and therefore . ∎
Corollary 1.2.1.9.
Let be an integer and be such that
Then if and only if .
Proof.
This is a special case of Proposition 1.2.1.8. ∎
Example 1.2.1.10.
Not covered in the lectureConsider the integer
We know from Example 1.2.1.5 that . By Proposition 1.2.1.8 for and , we must have
Indeed,
so that, in fact, already . Therefore, in special cases, the conclusion of Corollary 1.2.1.9 might still hold even if .
Corollary 1.2.1.11.
Let be a prime and be such that . Then if and only if .
Proof.
Since is prime, its only positive divisors are and . Hence, implies . The claim now follows from Corollary 1.2.1.9. ∎
We illustrate Proposition 1.2.1.6 by establishing the following criterion for an integer to be divisible by .
Proposition 1.2.1.12.
Let be an integer. Write with , so that the are the digits of in base . Then
Proof.
Notice that . By Proposition 1.2.1.6(6), we have for all integers . Inductive application of Proposition 1.2.1.6(5) yields the congruence
The claim readily follows. ∎
Example 1.2.1.13.
Not covered in the lectureLet . Since is divisible by , Proposition 1.2.1.12 implies that itself is divisible by . Indeed,