Chapter 4 Lecture Notes - Fermat - Wilson - Euler Theorem
Chapter 4 Lecture Notes - Fermat - Wilson - Euler Theorem
Chapter 4 Lecture Notes - Fermat - Wilson - Euler Theorem
SEMESTER 1 2022/2023
• He is best known for his Fermat's principle for light propagation and his Fermat's Last
Theorem in number theory, which he described in a note at the margin of a copy of
Diophantus' Arithmetica.
• In number theory, Fermat studied Pell's equation, perfect numbers, amicable numbers
and what would later become Fermat numbers.
2
FERMAT’S THEOREM
The Fermat’s Factorization Method
• The security of the RSA cryptosystem depends on the difficulty in factoring the encryption modulus n=pq.
• Poor choices of p and q can lead to easily factored values of n, rendering the cryptosystem “cracked.”
• One such situation occurs when p and q are relatively close together.
In this case one can apply the Fermat Factorization Method to find p and q.
3
FERMAT’S THEOREM
Fermat’s Factorization Method
4
FERMAT’S THEOREM
The Fermat’s Factorization Method
Example.
5
FERMAT’S THEOREM
The Fermat’s Factorization Method
Example.
6
FERMAT’S THEOREM
Corollary 1
7
FERMAT’S THEOREM
Example.
Solution.
Let p = 11 ; a =5
8
FERMAT’S THEOREM
Example.
Solution.
By Fermat’s Theorem,
310 1 (mod11)
9
FERMAT’S THEOREM
10
FERMAT’S THEOREM
Lemma 1.
If p and q are distinct primes with ap a (mod q) and aq a (mod p),
then apq a (mod pq).
Example
11
WILSON’S THEOREM
• This theorem was stated by Ibn al-Haytham (c. 1000 AD).
• Edward Waring announced the theorem in 1770, although neither he nor his student
Wilson could prove it.
• There is evidence that Leibniz was also aware of the result a century earlier, but he never
published it.
[Source: Wikipedia]
12
WILSON’S THEOREM
Example.
13
WILSON’S THEOREM
Example.
14
WILSON’S THEOREM
Cont.
15
WILSON’S THEOREM
Converse of Wilson’s Theorem
16
EULER’S THEOREM
Leonhard Euler (15 April 1707 – 18 September 1783) was a Swiss
mathematician, physicist, astronomer, geographer, logician and engineer
His number theoretic work was suggested by issues raised by Pierre de Fermat,
as well as his own ideas.
Source: Wikipedia
17
EULER’S THEOREM
’s Phi-Function
Euler
The Fermat’s Theorem has been extended by Euler – congruences with prime moduli, to
arbitrary moduli.
For n 1, the number of positive integers not exceeding n that are relatively prime to n, denoted by (n).
Example.
Then, there are 8 positive integers that not exceed 16, & relatively prime to 16.
1, 3, 5, 7, 9, 11, 13, 15
18
EULER’S THEOREM
Euler’s Phi-Function
Example.
Then, there are 18 positive integers that not exceed 27, & relatively prime to 27.
1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 19, 20, 22, 23, 25, 26
Example.
For n = 30, (30) = 8 :
Then, there are 8 positive integers that not exceed 30, & relatively prime to 30.
1, 7, 11, 13, 17, 19, 23, 29
19
EULER’S THEOREM
Euler’s Phi-Function
Notes:
20
EULER’S THEOREM
Euler’s Phi-Function
Theorem 4
If p is a prime and k 0, then
(p k
)=p k
−p k −1
1
= p 1−
k
p
Example.
21
EULER’S THEOREM
Euler’s Phi-Function
Lemma 2
Theorem 5
22
EULER’S THEOREM
Euler’s Phi-Function
23
EULER’S THEOREM
Euler’s Phi-Function
Theorem 7
If the integer n 1 has the prime factorization n = p1k1 p2k2 ... prkr , then
( n ) = ( p1k p2k ... prk ) = ( p1k ) ( p2k ) ... ( prk
1 2 r 1 2 r
)
(
= p −p k1
1
k1 −1
1 ) (p k2
2
k2 −1
−p
2 )... ( p
kr
r
kr −1
−p
r )
1 k2 1 kr 1
= p 1 − p2 1 − ... pr 1 −
k1
1
p1 p2 pr
1 1 1
( 1
k2
2
kr
r )
= p p ... p 1 − 1 − ... 1 −
k1
p1 p2 pr
1 1 1
= n 1 − 1 − ... 1 −
p1 p2 pr
24
EULER’S THEOREM
Euler’s Phi-Function
Example.
25
EULER’S THEOREM
’s Theorem
Recall: Fermat
26
EULER’S THEOREM
Lemma 3
Let n > 1 and gcd(a, n) = 1. If a1, a2, ..., a(n) are the positive integers less than
n and relatively prime to n, then
aa1, aa2, aa3, ... , a a(n)
27
EULER’S THEOREM
Corollary 2
28
EULER’S THEOREM
Example
29
EULER’S THEOREM
Example
30
EULER’S THEOREM
Example (Cont)
31
EULER’S THEOREM
Example
Solution.
Then,
32