Fermat's Little Theorem and Wilson's Theorem
Fermat's Little Theorem and Wilson's Theorem
Fermat's Little Theorem and Wilson's Theorem
Theorem and
Wilson’s Theorem
Introduction
Pierre de Fermat (1601-1665)
Born in France
AFrench lawyer and Mathematician
University of Orleans
“Fermat’s Conjecture”
a(p - 1) = 1 mod p.
11-1=10,
210=1 mod 11
(210)200 (23)
(1) 200 (23)= 8 mod 11= 8
3. 52018 mod 7.
Solution:
Using FLT, 7 - 1 = 6, therefore, 56 = 1
mod 7. Then divide the exponent by 6
and get the remainder. 2018 mod 6 =
2. [Since 2018/6 = 336 remainder 2].
We reduce then the exponent to 2. 52
mod 7 = 25 mod 7 = 4.
4. 43929 mod 13.
Solution:
Using FLT, 13 - 1 = 12, therefore, 412 =
1 mod 13. Then divide the exponent by
12 and get the remainder. 3929 mod 6
= 5. [Since 3929/12 = 327 remainder
5]. We reduce then the exponent to 5.
45 mod 13 = 1024 mod 13 = 10.
5. 32105 mod 17.
Solution:
Using FLT, 17 - 1 = 16, therefore, 316 =
1 mod 17. Then divide the exponent by
16 and get the remainder. 2105 mod
17 = 9. [Since 2015/16 = 131
remainder 9]. We reduce then the
exponent to. 39 mod 17 = 19683 mod
17 = 14.
Method of Successive Squaring for
a k MOD m
Idea is to break the exponent k into a
0
sum of powers of 2 (starting with 2)
k
and break a
in terms of exponential terms as these
powers of 2, computing the powers of 2
by “successively squaring” the previous
term.
85
Example : Compute 7 MOD 41
7
26 64 2 128 85.
We can stop at since
We now decompose the exponent k into powers
of 2.
85 64 21 64 16 5 64 16 4 1 1 4 16 64
We next write
Solution:
Using FLT, 41 - 1 = 40, therefore, 740 = 1
mod 41. Then divide the exponent by 40
and get the remainder. 85 mod 41 = 5.
[Since 85/40 = 2 remainder 5]. We reduce
then the exponent to 5. 75 mod 41 = 16807
mod 41 = 38 .
Use FLT to calculate
Solution:
Number Theory
If p is prime
then 1 + (p - 1)! is
divisible by p.
WILSON’S THEOREM
WILSON’S THEOREM
Wilson Prime
In Number Theory, a Wilson Prime is a
prime number such that
Divides ,It bears a striking
resemblance to Wilson's Theorem.
Although conjectured to be infinite in
number, no other Wilson primes have
been discovered besides 5, 13, and 563.
Case 1