An often useful theorem in number theory is Euler's theorem (also known as the Fermat–Euler theorem or Euler's totient theorem), which says that:
If a and n are coprime positive integers, then
aϕ(n)≡1(mod n)
where ϕ(n) is Euler's totient function, counting how many of the integers 1,2,…,n are coprime with n.
If, however, a and n are not coprime, we know for sure that the above does not hold. After all, if a and n share a common factor (greater than 1), any power of a will also share this factor and will not equal 1 modulo n. However, if we formulate the equivalence as:
aϕ(n)+1≡a(mod n)
(which, as it turns out, is equivalent to the original for a,n coprime), there are certain cases where this relation still holds even if a and n do share a common factor. A sufficient (though not necessary) condition is for n to be squarefree. Thus we obtain the following theorem:
Theorem. If a,n are positive integers where n is squarefree, then:
aϕ(n)+1≡a(mod n)
where ϕ(n) is Euler's totient function.
Proof.
Let n=p1p2…pk, where all the pi are distinct primes. We can write a=bpc1pc2…pcm, where the ci∈{1,2,…,k} are all distinct and b and n are coprime. Modulo pci (for any i=1,2,…,m) we have
aϕ(n)+1≡0≡a(mod pc1)
since, of course, pc1 divides a. Analogously we know the same for all the other pci. Furthermore, we have:
aϕ(n)≡1(mod pc1…pcmn)
since a and pc1…pcmn are coprime, and ϕ(pc1…pcmn) divides ϕ(n). Hence we obtain the following system:
aϕ(n)+1aϕ(n)+1aϕ(n)+1≡a(mod pc1)⋮≡a(mod pcm)≡a(mod pc1…pcmn).
Since all the modulo classes on the right are coprime, we can use the Chinese remainder theorem to see that there exists a unique solution for this system, namely
aϕ(n)+1≡a(mod pc1…pcmpc1…pcmn)
or, in other words:
aϕ(n)+1≡a(mod n).□
This shows us, for example, that a5≡a(mod 10) for any a, since ϕ(10)=4 and 10 is squarefree. Hence the last digit of any number is equal to the last digit of its fifth power, a very useful fact in for example the problem which inspired this note.
#NumberTheory
#ChineseRemainderTheorem
#Euler
#Fermat
#Totient
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
There are no comments in this discussion.