Theorems of Fermat and Euler |
In this section we study two important theorems of congruence.
Theorem.(Fermat's Little Theorem, 1640)
If \(p\) is a prime and \(a\) is an integer not divisible by \(p\), then \[ a^{p-1}\equiv 1\:\left(\mathrm{mod}\: p \right).\]
Example. To determine \(2^{64}\equiv 5 \:\left(\mathrm{mod}\: 11 \right)\), using \(p=11\) in FLT we get \(2^{10}\equiv 1\:\left(\mathrm{mod}\: 11\right)\). Note that \(64=10\cdot 6+4\). Then \(2^{64}=(2^{10})^6 2^4\equiv (1)^6 16\equiv 5 \:\left(\mathrm{mod}\: 11 \right)\).
The converse of FLT is not true as \(2^{340}\equiv 1\:\left(\mathrm{mod}\: 341 \right)\) but \(341=11\cdot 31\) is not a prime.
The first proof of FLT was published by Euler in 1736. But more than 50 years ago a similar proof was found in
an unpublished manuscript by Leibniz. Sometimes FLT is written in a more general form:
Corollary.
If \(p\) is a prime, then \(a^p\equiv a\:\left(\mathrm{mod}\: p \right)\) for all integers \(a\).
To see this, note that if \(a\) is divisible by \(p\), then \(a^p\equiv 0\equiv a\:\left(\mathrm{mod}\: p \right)\).
Otherwise it is FLT.
Using FLT, we have a probabilistic primality test called the Fermat Primality Test :
To test primality of a given integer \(n>1\), chose a random positive integer \(a < n\) not divisible by \(n\).
If \(a^{n-1}-1\) is not divisible by \(n\), then \(n\) is not a prime. Otherwise \(n\) is a probable prime.
Theorem.(Euler's Theorem, 1736) If \(n\) is a positive integer and \(a\) is an integer such that \(\gcd(a,n)=1\), then \[ a^{\phi(n)}\equiv 1\:\left(\mathrm{mod}\:n \right).\]
Euler's theorem is a generalization of FLT because for a prime \(n\), \(\phi(n)=n-1\) and also note that \(\gcd(a,n)=1\iff n\nmid a\).
Euler's Theorem plays a crucial role in the RSA cryptography (1978). Note that the converse of Euler's Theorem is also true:
Corollary.
For positive integers \(n\) and \(a\), if \(a^{\phi(n)}\equiv 1\:\left(\mathrm{mod}\: n \right)\), then \(\gcd(a,n)=1\).
Example. To determine \(7^{65}\equiv 9 \:\left(\mathrm{mod}\: 10 \right)\), using \(n=10\) in Euler's Theorem we get \(7^{\phi(10)}=7^{4}\equiv 1\:\left(\mathrm{mod}\: 10 \right)\). Note that \(66=16\cdot 4+2\). Then \(21^{66}=(7^{4})^{16} 7^2\equiv (1)^{16} 49\equiv 9 \:\left(\mathrm{mod}\: 10 \right)\).
Last edited