What is Fermat's little theorem

  • Context: Graduate 
  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
  • Tags Tags
    Theorem
Click For Summary
SUMMARY

Fermat's Little Theorem asserts that if p is a prime number, then for any integer a, the expression a^p - a is divisible by p. The theorem can be expressed mathematically as a^{p-1} ≡ 1 (mod p) for a not congruent to 0 modulo p, and a^p ≡ a (mod p). The proof involves demonstrating that the first p-1 positive multiples of a are distinct modulo p, leading to the conclusion that a^{p-1}(p-1)! ≡ (p-1)! (mod p). This theorem is foundational in number theory and has implications in fields such as cryptography.

PREREQUISITES
  • Understanding of prime numbers and their properties
  • Familiarity with modular arithmetic
  • Basic knowledge of group theory, particularly Lagrange's theorem
  • Experience with mathematical proofs and congruences
NEXT STEPS
  • Study modular arithmetic in depth, focusing on applications in number theory
  • Explore the implications of Fermat's Little Theorem in cryptography, particularly in RSA encryption
  • Learn about the proof techniques used in number theory, including induction and group theory
  • Investigate other theorems related to prime numbers, such as Wilson's theorem and the Chinese Remainder Theorem
USEFUL FOR

Mathematicians, computer scientists, cryptographers, and students studying number theory or discrete mathematics will benefit from this discussion on Fermat's Little Theorem.

Messages
19,865
Reaction score
10,859
Definition/Summary

Fermat's little theorem states that if p is a prime number, then for any integer a, a^{p}-a will be divisible by

Equations

a^{p-1}\equiv1\pmod p \quad (\text{for\ }a \not\equiv 0 \pmod p)

a^p\equiv a\pmod p

Extended explanation

Fermat's Little Theorem
If p is a prime number and a an integer, then
a^p\equiv a\ (p)


In order to prove Fermat's Little theorem, we will start by proving a superficially slightly weaker result, which is also referred to as Fermat's Little Theorem, on occasion. The two results imply each other, however.

Theorem
Let a and p be coprime, then

a^{p-1}-1 \equiv 0\ (p).

Proof
Start by listing the first p-1 positive multiples of a:

a, 2a, 3a, \ldots, (p -1)a

Suppose that ra and sa are the same modulo p, with 0 <r,s < p. Since a is nonzero mod p, we can cancel, giving r \equiv s\ (p). So the p-1 multiples of a above are distinct and nonzero; that is, they must be congruent to 1, 2, 3, \ldots, p-1 in some order. Multiply all these congruences together and we find

a2a3a\ldots (p-1)a \equiv 1.2.3\ldots(p-1)\ (p)

or better,

a^{p-1}(p-1)! \equiv\ (p-1)! (mod p).

Divide both side by (p-1)! to complete the proof.

Remark
This result can be proven by appeal to Lagrange's theorem, since the non-zero residues form a group modulo p. Although we haven't proven, they are a group, we are explicitly using that multiplicative inverses modulo p exist, which is an elementary application of Euclid's algorithm.



Corollary
Let p be a prime and a any integer, then a^p \equiv a\ (p).
Proof
The result is trival (both sides are zero) if p divides a. If not then we need only multiply the congruence in Fermat's Little Theorem by a to complete the proof.

* This entry is from our old Library feature. If you know who wrote it, please let us know so we can attribute a writer. Thanks!
 
Mathematics news on Phys.org

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
8K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
1
Views
2K
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K