1.2.6. Euler’s Theorem
This section is based on part of [BUR11, Sec. 7.3].
The following theorem is a vast extension of Fermat’s Little Theorem (Theorem 1.2.3.1). It plays a central role in the next chapter.
Lemma 1.2.6.1.
Let be integers such that . For , if and , then .
Proof.
The claim follows by applying Corollary 1.1.3.17 to the integer , which is divisible by the coprime integers and . ∎
Theorem 1.2.6.2 (Euler’s Theorem).
Let be an integer and with . Then
Proof.
Modulo , all integers are congruent to each other. Hence, we may assume .
Suppose that has prime factorisation . Suppose that
Since the function is multiplicative (Theorem 1.2.5.5), we have
notice that is therefore a positive integer. Hence,
and
Finally, since for , inductive application of Lemma 1.2.6.1 yields the congruence
By the previous argument, we are reduced to proving the theorem in the case where for a prime and a positive integer . We need to show that
We prove this claim by induction on the exponent . Let . Proposition 1.2.5.3 implies that and the congruence is shown in Fermat’s Little Theorem (Corollary 1.2.3.2). Suppose that the claim holds for some . By Theorem 1.2.5.6,
Since
by assumption, there exists an integer such that . Then
It is enough to show that
Indeed, each summand is divisible by : if , then and the summand is ; if , then and the integer is divisible by .
This finishes the proof. ∎
Remark 1.2.6.3.
Let be a composite integer. Theorem 1.2.6.2 shows that, for all such that , the congruence
holds. The integer is called a Carmichael number if the congruence
holds for all such that (compare with Corollary 1.2.3.2 and 1.2.3.3). In other words, Carmichael numbers are the composite moduli for which the statement of Corollary 1.2.3.2 holds, even though (Proposition 1.2.5.3). The smallest Carmichael number is .