Section 4.4 Euler's Theorem
Objectives
- Define Euler's totient function
compute its values for small and prove general statements about - State and apply Euler's Theorem and Fermat's Little Theorem to solve congruences and prove other results.
- Apply Fermat's Little Theorem to primality testing.
Definition 4.4.1. Euler's Totient Function.
Euler's totient function (or Euler's phi-function) is the function
Example 4.4.2. and .
We have \(\phi(1) = 1\) since \(1\) is the only integer in \(\{1\}\) relatively prime with 1.
Also \(\phi(8) = 4\text{,}\) since there are four numbers in the set \(\{1,2,\ldots,8\}\) relatively prime with 8: they are 1, 3, 5, and 7.
Checkpoint 4.4.3. for small .
The table below lists values of \(\phi(m)\) for small values of \(m\text{.}\) Complete the table for \(m = 11, 12, \ldots, 20\text{.}\)
\(n\) | integers \(1 \leq k \leq n\) | \(\phi(n)\) |
such that \(\gcd(k,n)=1\) | ||
1 | 1 | 1 |
2 | 1 | 1 |
3 | 1, 2 | 2 |
4 | 1, 3 | 2 |
5 | 1, 2, 3, 4 | 4 |
6 | 1, 5 | 2 |
7 | 1, 2, 3, 4, 5, 6 | 6 |
8 | 1, 3, 5, 7 | 4 |
9 | 1, 2, 4, 5, 7, 8 | 6 |
10 | 1, 3, 7, 9 | 4 |
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 |
Proposition 4.4.5. .
If
Checkpoint 4.4.6. Converse of Proposition 4.4.5.
Is the converse of the above statement true? That is, if \(n \gt 2\) is an integer such that \(\phi(n) = n-1\text{,}\) does it necessarily follow that \(n\) is prime?
Justify your answer.
Checkpoint 4.4.7. .
If \(p\) is prime and \(k \in \mathbb{N}\text{,}\) prove that \(\phi(p^k) = p^k - p^{k-1}\text{.}\)
Checkpoint 4.4.8. .
If \(p\) and \(q\) are prime, prove that \(\phi(pq) = (p-1)(q-1)\text{.}\)
Theorem 4.4.9. Euler's Theorem.
If
Theorem 4.4.10. Fermat's Little Theorem (FLT).
If
Proof.
If \(p\) is prime with \(p \nmid a\text{,}\) we have \(\gcd(a,p) = 1\text{.}\) So we can use Theorem 4.4.9 on \(a\) and \(m = p\text{.}\) Since \(\phi(p) = p-1\) by Proposition 4.4.5, the result follows.
Example 4.4.11. Example of Theorem 4.4.9.
Take \(n = 8\) and \(a = 7\) so that \(\gcd(a,n) = 1\text{.}\) By Theorem 4.4.9 we have
Example 4.4.12. Compute the Remainder.
Compute \(3^{2020} \mmod 113\text{.}\)
Since \(\gcd(3,113) = 1\text{,}\) we can apply Theorem 4.4.9. In fact, 113 is prime, so Theorem 4.4.10 applies here, so we know that
Using the Theorem 1.3.2 on 2020 we get \(2019 = 18\cdot 112 + 4\text{.}\) Hence
So \(3^{2020} \mmod 113 = 81\text{.}\)
Checkpoint 4.4.13. Compute the Remainder.
Compute \(6^{6777} \mmod 667\text{.}\)
\(667 = 23 \times 29.\)
Example 4.4.14. Why Theorem 4.4.9 holds, for and .
Let \(a = 4\) and \(n = 9\text{.}\) Then \(\phi(9) = 6\text{,}\) since the integers \(S = \{1,2,4,5,7,8\}\) are relatively prime with \(9\text{.}\)
Multiplying each number in \(S\) by 4 and reducing modulo 9, we have
\(S = \) | \(\{\)1 | 2 | 4 | 5 | 7 | 8\(\}\) | |
\(\downarrow\) | \(\downarrow\) | \(\downarrow\) | \(\downarrow\) | \(\downarrow\) | \(\downarrow\) | (multiply by \(a = 4\)) | |
4 | 8 | 16 | 20 | 28 | 32 | ||
\(\downarrow\) | \(\downarrow\) | \(\downarrow\) | \(\downarrow\) | \(\downarrow\) | \(\downarrow\) | (reduce modulo 9) | |
\(\{\)4 | 8 | 7 | 2 | 1 | 5\(\}\) | \(\rightarrow\) same as \(S\text{!}\) |
What this means is that \(S\) and \(\{4y : y \in S\}\) contain the same numbers modulo 9; so when we take the product of all elements in these sets, the results must be congruent modulo 9 as well:
Since each element of \(S\) is relatively prime with 9, we can apply Proposition 4.2.15 to cancel each term, and we are left with
since \(\phi(9) = 6 = |S|\text{.}\)
Checkpoint 4.4.15. Repeat the Argument.
Replicate the idea in Example 4.4.14 to show that \(7^{\phi(15)} \equiv 1 \Mod{15}\text{.}\)
Exploration 4.4.1. Primality Testing.
Theorem 4.4.10 asserts that if
(a)
Note that the converse of this statement is not true in general: Even if
Can you give examples of pairs
(b)
Complete the contrapositive of Theorem 4.4.10:
If
(c)
Show that 91 is not prime by using part (b) with