![]() |
VOOZH | about |
Fermat's Little Theorem, also known as Fermat's remainder theorem, is a fundamental result in number theory that deals with properties of prime numbers and modular arithmetic.
Fermat’s Little Theorem states that
"if p is a prime number and a is an integer such that a is not divisible by p, then ."
This means that when ap−1 is divided by p, the remainder is 1.
This also can be written as ap ≡ a (mod p).
For Example,
Let's take p = 7 (a prime number), and a = 3. According to the Fermat's Little Theorem :
This means when you calculate 36 and divide it by 7, the remainder is 1.
Fermat’s Little Theorem is a special case of Euler’s Theorem, which states:
If a is coprime to n, then:
Where is Euler’s totient function (count of numbers less than n and coprime to it).
For a prime number p, . So:
This completes the proof of Fermat’s Little Theorem in a concise and clear manner, without needing Wilson’s Theorem.
If you want to explore a more involved proof, it goes like this:
Let:
Modulo p, this set contains p−1 distinct values (none repeat), because if:
So:
By Wilson’s Theorem:
So:
Divide both sides by (p - 1)! (valid since it’s not divisible by p):
Cryptography
Primality Testing
Algorithmic Optimizations
Hash Functions
Example 1: Find the remainder when 7100 is divided by 13.
Solution:
Since 13 is a prime number, we can apply Fermat's Little Theorem, which states:
Now, 100= 12 ×8 +4 , so:
Calculate :
Result: Remainder when is divided by 13 is 9.
Example 2: Find the remainder of 3100,000 when divided by 53.
Solution:
Since 53 is a prime number, we can apply Fermat's Little Theorem.
Now:
Result: Remainder when is divided by 53 is 28.
1. Find the remainder when 5123 is divided by 13.
2. Compute the remainder when 1150 is divided by 17.
3. What is the remainder when 7300 is divided by 19?
4. Calculate the remainder of 2200 modulo 31.
5. Find the remainder when 875 is divided by 29.
6. Determine the remainder when 9100 is divided by 23.
7. What is the remainder when 42024 is divided by 7?
8. Compute the remainder of 699 modulo 37.
9. Find the remainder when 10500 is divided by 43.
10. What is the remainder when 364 is divided by 41?
Answer Keys
- 8
- 2
- 1
- 1
- 2
- 9
- 2
- 31
- 9
- 1