1.3.1. The order of an integer modulo
This section is based on part of [BUR11, Sec. 8.1].
Let be an integer and . We make the following observations and recollections that are used throughout this chapter:
-
•
Let . Suppose that . Theorem 1.2.2.2(1) applied to the linear congruence (which has the solution ) implies that .
-
•
Let . Then if and only if . Indeed, Theorem 1.1.4.2 implies that and have the same set of prime divisors. Since every positive integer greater than one admits a prime divisor, the claim follows.
-
•
Recall Euler’s Theorem (Theorem 1.2.6.2). Suppose that . Then , where is the number of integers that are coprime with .
The following definition is then natural.
Definition 1.3.1.1.
Let be an integer and with . The order of modulo is
The order is well-defined: the set above contains by Euler’s Theorem (Theorem 1.2.6.2).
Example 1.3.1.2.
Let and . Since is prime, . Then
Therefore, .
Lemma 1.3.1.3.
Let and with . If
then .
Proof.
By Proposition 1.2.1.6(6), if , then for all . By Proposition 1.2.1.6(2) and Proposition 1.2.1.6(3),
The claim is now immediate from the definition of the order modulo . ∎
Example 1.3.1.4.
The following table records the order modulo of all integers :
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
| 1 | 10 | 5 | 5 | 5 | 10 | 10 | 10 | 5 | 2 |
Theorem 1.3.1.5.
Let be an integer and with . For an integer ,
Proof.
Set . Suppose that
Using the Division with Remainder Theorem (Theorem 1.1.1.8), write with and ; notice that since and . Then
Since , by Proposition 1.2.1.6(6),
Then, by Proposition 1.2.1.6(4), the congruence
holds. Since
by Proposition 1.2.1.6(3), we have
Finally, since , the minimality of implies that . Hence, so that .
Conversely, suppose that . Then there exists an integer such that , since and . Since and , Proposition 1.2.1.6(6) implies that holds. This finishes the proof. ∎
Corollary 1.3.1.6.
Let be an integer and with . Then .
Proof.
Immediate from Euler’s Theorem (Theorem 1.2.6.2) and Theorem 1.3.1.5. ∎
Example 1.3.1.7.
Let and . We have seen in Example 1.3.1.2 that , which indeed divides .
Corollary 1.3.1.8.
Let be an integer and with . Set . For integers ,
Exercise. The proof will be added later.
Corollary 1.3.1.9.
Let be an integer and with . For integers ,
Proof.
Since by assumption, the claim is immediate from Proposition 1.2.1.2 and Corollary 1.3.1.8. ∎
Theorem 1.3.1.10.
Let be an integer and be such that . Set . For an integer ,
Proof.
Set and
(this is well defined: implies that ). We need to prove that . Write and with integers and (recall that and ) so that (Corollary 1.1.3.14). Then
Since by definition, Proposition 1.2.1.6(6) implies that
By Theorem 1.3.1.5, the order divides . On the other hand,
and hence
Again by Theorem 1.3.1.5, the order divides . Hence, for some integer . Cancelling on both sides, we obtain so that divides . Since , Corollary 1.1.3.18 implies that divides .
We have shown that and . Since and are positive, Proposition 1.1.1.6(8) implies that . This finishes the proof. ∎
Corollary 1.3.1.11.
Let be an integer and with . For an integer ,
Proof.
Immediate from Theorem 1.3.1.10. ∎