1.2.5. Euler’s totient function
This section is based on [BUR11, Sec. 7.2, Sec. 7.4].
We aim to extend Fermat’s Little Theorem (Theorem 1.2.3.1) to composite integers with an appropriate reformulation of the statement of the theorem. This requires us to study the following number-theoretic function.
Definition 1.2.5.1.
Example 1.2.5.2.
We compute for small values of :
| 1 | 1 | |
| 2 | 1 | |
| 3 | 2 | |
| 4 | 2 | |
| 5 | 4 | |
| 6 | 2 | |
| 7 | 6 | |
| 8 | 4 | |
| 9 | 6 | |
| 10 | 4 |
End of Lecture 7
Proposition 1.2.5.3.
Let be an integer. Then
Proof.
Suppose that is prime. Then
and hence .
Conversely, suppose that . Since , we must have . Then
and, since , we must have
In particular, for each we must have
(as otherwise ). ∎
Lemma 1.2.5.4.
Let be an integer and . If , then .
Proof.
The condition implies that there exists an integer such that . By Lemma 1.1.3.1,
Theorem 1.2.5.5.
Euler’s totient function is multiplicative.
Proof.
Let be integers such that . We need to prove that . Since , the claim is clear if or .
Suppose that . Arrange the integers as follows:
Notice that the integers in the -th column are congruent to modulo . We need to compute
The second equality uses Corollary 1.1.3.16. By definition,
In addition, Lemma 1.2.5.4 implies that the function is constant on each column of the array. Therefore, to prove that , we need to show the following:
For each such that , the -th column in the array contains exactly integers with .
Let . The -th column in the array consists of the integers
For an integer , let be the unique integer such that
This defines a function
We claim that the function is bijective. Since the domain and the codomain of have the same finite cardinality, it is enough to show that is injective. Let be such that
By Proposition 1.2.1.6(4),
Using Corollary 1.2.1.9 and the assumption , we may cancel in the latter congruence to obtain . Since by assumption, we must have (Proposition 1.2.1.2). This shows that is injective and, as explained above, also surjective.
Finally, Lemma 1.2.5.4 implies that . Therefore, the function restricts to a bijection
Consequently,
This finishes the proof. ∎
Theorem 1.2.5.6.
Let be an integer with prime factorisation . Then
Proof.
We prove the first equality. By Theorem 1.2.5.5 and Proposition 1.1.5.16, it is enough to prove that if is prime and is a positive integer. By definition,
Since every divisor of is a power of , it follows that
Finally,
clearly has cardinality . This shows that
We prove the second equality. We have
In the second equality we simply distributed the prime-power factors of in a clever way. This finishes the proof. ∎
Example 1.2.5.2 suggests that is almost always even. The precise statement is the following.
Theorem 1.2.5.7.
Let be an integer. Then is even.
Proof.
By Theorem 1.2.5.5, the function is multiplicative. Since , it admits an odd prime divisor or it is divisible by (possibly both). Therefore, it is enough to show that is even for each prime and each positive integer such that (thus, if , then ). Let and . Then, using Theorem 1.2.5.6,
is even (we use ). If is odd, then
is even since is even. ∎
Example 1.2.5.8.
Not covered in the lectureLet . Using Theorem 1.2.5.6, we compute
All divisors considered below are assumed to be positive.
Theorem 1.2.5.9 (Gauß).
Let be an integer. Then
Proof.
The function is multiplicative. Also, Euler’s totient function is multiplicative by Theorem 1.2.5.5. Hence, by Theorem 1.1.6.10, the function is multiplicative. Therefore, to prove the claim, it is enough to consider the case where with a prime and a positive integer. By Corollary 1.1.4.9 and Theorem 1.2.5.6,
This finishes the proof. ∎
Example 1.2.5.10.
Not covered in the lecture Let . We have
The positive divisors of are . As shown in Gauß’ Totient Identity (Theorem 1.2.5.9),
End of Lecture 8
Theorem 1.2.5.11.
Let be an integer and
Then
Proof.
Equivalently, we prove that
We claim that
Write . For each , the following statements hold:
-
•
if and only if .
-
•
if and only if (Lemma 1.1.3.1).
Therefore, the function , is well-defined and it is clearly its own inverse:
This proves the claim. Finally,
Equivalently, . ∎
Theorem 1.2.5.12.
Let be an integer. Then
Proof.
By Gauß’ Identity (Theorem 1.2.5.9),
Applying the Möbius Inversion Formula (Theorem 1.1.6.7) to recover , we obtain
Example 1.2.5.13.
Not covered in the lectureLet , which has the positive divisors . As shown in Example 1.2.5.10, we have . On the other hand, in agreement with Theorem 1.2.5.12,