Fermatโs theorem
Corollary ON Fermatโs theorem
Set of residues modulo ๐
Reduced set of residues modulo ๐
Theorems based on residue modulo m
Euler's theorem or Euler's generalization of Fermat's theorem
Fermat's theorem from Euler's theorem
Examples
2. LEARNING OUTCOMES
๏ผFermatโs theorem
๏ผCorollary ON Fermatโs theorem
๏ผSet of residues modulo ๐
๏ผReduced set of residues modulo ๐
๏ผTheorems based on residue modulo m
๏ผEuler's theorem or Euler's generalization of
Fermat's theorem
๏ผFermat's theorem from Euler's theorem
๏ผExamples
3. Fermatโs theorem
Statement: If. ๐ is a prime and (๐, ๐) = 1 then ๐๐โ1 โก
1 mod๐
proof. Given that ๐ is a prime and (๐, ๐) = 1
claim: ๐๐โ1
โก 1(mod๐)
Since (๐, ๐) = 1 By known theorem
When the numbers ๐, 2๐, 3๐ โฆ (๐ โ 1)๐ are derided by p,
remainders are 1,2,3,โฆ.. p-1 not necessarily in this order
๐ฟ๐๐ก ๐ โก ๐1(mod๐)
2๐ โก ๐2(mod๐)
(๐ โ 1)๐ โก ๐๐โ1(mod๐)
But ๐พ1, ๐พ2; ๐๐โ1 are also remainders obtained by dividing
๐, 2๐, โฏ (๐ โ 1)๐ by ๐
โด ๐พ1, ๐2, โฏ ๐๐โ1 โก 1 โ 2 โ 3 โฏ (๐ โ 1) โถ (1)
From the above congruent relations
4. But ๐พ1, ๐พ2; ๐๐โ1 are also remainders obtained by dividing
๐, 2๐, โฏ (๐ โ 1)๐ by ๐
โด ๐พ1, ๐2, โฏ ๐๐โ1 โก 1 โ 2 โ 3 โฏ (๐ โ 1) โถ (1)
From the above congruent relations
(๐ โ 1)! ๐๐โ1 โก (๐ โ 1)! (modp)
Since, ๐ is prime
(๐, 1) = 1, (๐, 2) = 1 โฆ (๐, ๐ โ 1) = 1
โ (๐, (๐ โ 1)!) = 1
๐โ1 โก 1(mod๐)
Hence the proof
5. If ๐ is a prime and a is any integer then
๐๐
โก ๐(mod๐)
Case (i). Let (๐, ๐) โ 1
โ ๐ โฃ ๐ and
๐ โก 0 mod๐
โ๐๐๐๐ ๐๐
โก 0(mod๐)
and 0 โก ๐(mod๐)
By Transitive property
๐๐
โก ๐ ๐๐๐ ๐
case(ii):
Let (๐, ๐) = 1
By Fermat's theorem
๐๐โ1
โก 1(mod๐)
๐๐
โ
1
๐
โก 1(mod๐)
๐๐
โก ๐(mod๐)
Hence the proof
โ If ๐ is prime and (๐, ๐) = 1 then ๐๐โ1 โ 1 = ๐(๐)
6. Definition1.: A Set of integers ๐ฅ0, ๐ฅ1, ๐ฅ2, โฏ ๐ฅ๐โ1 is
called a set of residues modulo ๐ if each ๐ฅ๐(๐ =
0,1,2, โฏ ๐ โ 1) belongs to one and only one residue class
modulo.
Definition2.: A Set of integers ๐ฅ1, ๐ฅ2 โฆ , ๐ฅ๐๐) is called a
reduced set of residues modulo ๐ if exactly one of them,
lies in each, residue class relatively prime to ๐,
Eg: {1,5} is a reduced set of residues modulo 6
= {0,1,2,3,4,5}
(โต (1,6) = 1, (5; 6) = 1)
โ ๐(๐) is the number of elements in every reduced Set
of residues modulo ๐.
7. THEOREM: If ๐1, ๐2, โฆ ๐๐(๐), is a set of reduced residue modulo ๐
and (๐, ๐) = 1 then ๐๐1, ๐๐2, โฆ ๐๐๐(๐) is also a set of reduced
residue modulo ๐.
Given that ๐1, ๐2, โฆ ๐๐(๐) is a set of
reduced residue modulo ๐ and
(๐, ๐) = 1
The
set ๐๐1, ๐๐2, โฆ ๐๐๐(๐,} โ๐๐ ๐(๐)
elements
Since ๐1, ๐2, โฆ ๐๐(๐}, is a reduced
Set of residues modulo ๐.
โ Each ๐พ๐(๐ = 1,2, โฆ โ ๐(๐)) is
relatively prime to ๐
i.e. ๐๐, ๐ = 1 for ๐ = 1,2 โฆ ๐(๐)
Since ๐, ๐ = 1, ๐๐, ๐ = 1
โ ๐๐๐
, ๐ = 1 for ๐ = 1,2, โฆ ๐(๐)
โด Each a๐๐ is relatively prime to ๐
Suppose two of the numbers
๐๐๐
, ๐๐๐ are Congruent
๐๐๐ โก ๐๐
๐(mod๐)
โ ๐๐ โก ๐
๐(mod๐) (โต (๐, ๐) = 1)
This is impossible
โต ๐พ๐, ๐พ๐ are two members of
reduced Set of residues modulo m
{they are incongruent)
no two elements a๐๐, a๐
๐ are
congruent
Hence ๐๐1, ๐๐2, โฆ ar ๐(๐1 is also reduced set of residues modulo m.
8. Euler's theorem (Euler's generalization of Fermat's theorem)
Statement: If (๐, ๐) = 1 then ๐ โก
๐(๐)
1(mod๐)
Proof: Given that (๐, ๐) = 1
Claim: ๐ โก
๐(๐)
1(mod๐)
Let ๐1, ๐2, โฆ ๐พ๐(๐,๐ be a
reduced set of
residues modulo ๐
Since(๐, ๐) = 1,
By known theorem
๐๐, ๐๐2, โฆ ar๐(๐}
is also reduced set
of residues modulo ๐.
โด Each a๐i is congruent modulo ๐
to one and only one ๐พ๐
๐ฟ๐๐ก ๐๐1
โก ๐ฅ1(modm)
๐๐2 โก ๐ฅ2(modm)
โโโโ โ
๐๐๐(๐) โก ๐ฅ๐(๐)(modm)
Multiplying the above congruence
๐๐1, ๐๐2 โฆ ๐๐๐(๐) โก ๐ฅ1 โ ๐ฅ2 โฏ ๐ฅ๐(๐)(modm)
โ ๐1 โ ๐2 โฏ ๐๐ ๐ โ a^๐(๐) โก ๐ฅ1 โ ๐ฅ2 โฆ ๐ฅ๐(๐(modm)
โ ๐พ1 โ ๐พ2 โฆ ๐พโ ๐ a^๐(๐) โก ๐พ1๐พ2 โฆ ๐พ๐(๐)(modm)
โต ๐1, ๐2; ๐๐(๐), are precisely numbers ๐ฅ1 โ ๐ฅ2 โฆ ๐ฅ๐(๐)
โ a โก
๐(๐)
1(mod ๐)
โต ๐1, ๐2 โฆ ๐๐ ๐ , 1 = 1
Hence the proof
9. Derive Fermat's theorem from Euler's
theorem
corollary: If ๐ = ๐ and ๐ โก
๐(๐)
(mod๐) Then
๐๐โ1
โก 1(mod๐)
proof:
If ๐ = ๐ is a prime
๐(๐) = ๐ โ 1
Since ๐
๐(๐)
โก 1(modp)(๐ต๐ฆ Euler's theorem)
โ ๐๐โ1
โก 1(mod๐)
Hence the proof
10. Question: What is the last digit in the ordinary decimal
representation of 3400
?
Solution: The last digit in the ordinary decimal representation of
3400
is the remainders when 3400
is divided by 10
By division algorithm 3400 โก 10q + ๐ where q, ๐ โ ๐ and 0 โฉฝ
๐ < 10
โด ๐ is the last digit such that
3400 = 10q + ๐
3400
โก ๐(mod10)
We have to find ๐ such that
3400 โก ๐(mod10)
Since 5 is prime (3,5) = 1
By Fermat's theorem
35โ1
โก 1(mod5)
34 โก 1(mod5) โ (1)
Since 2 is prime and (3,2) = 1
By fermat' theorem
32โ1
โก 1(mod2)
31 โก 1(mod2)
34 โก 14(mod2) โ (2)
From (1) & (2) , 34
โก 1 (mod of
L.C.M of 5,2 )
)
34
โก 1(mod 10
34 100
โก 1100
(mod10)
3400
โก 1(mod10)
๐ = 1
Hence the last digit =1.