PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: High
Fermat's little theorem (Theorem)
Theorem (Fermat's little theorem)   If % latex2html id marker 196 $ a, p \in \mathbb{Z}$ with $ p$ a prime and $ p \nmid a$, then
$\displaystyle a^{p-1} \equiv 1 \pmod{p}.$
If we take away the condition that $ p\nmid a$, then we have the congruence relation
$\displaystyle a^p\equiv a \pmod{p}$
instead.

Remarks.

  • Although Fermat first noticed this property, he never actually proved it. There are several different ways to directly prove this theorem, but it is really just a corollary of the Euler theorem.
  • More generally, this is a statement about finite fields: if $ K$ is a finite field of order $ q$, then $ a^{q-1}=1$ for all $ 0\ne a\in K$. More succinctly, the group of units in a finite field is cyclic. If $ q$ is prime, then we have Fermat's little theorem.
  • While it is true that $ p$ prime implies the congruence relation above, the converse is false (as hypothesized by ancient Chinese mathematicians). A well-known example of this is provided by setting $ a=2$ and $ p=341=11\times 31$. It is easy to verify that $ 2^{341}\equiv 2 \pmod{341}$. A positive integer $ p$ satisfying $ a^{p-1}\equiv 1 \pmod{p}$ is known as a pseudoprime of base $ a$. Fermat little theorem says that every prime is a pseudoprime of any base not divisible by the prime.

Bibliography

1
H. Stark, An Introduction to Number Theory. The MIT Press (1978)



"Fermat's little theorem" is owned by CWoo. [ full author list (2) | owner history (1) ]
(view preamble | get metadata)

View style:

See Also: Euler-Fermat theorem, proof of Euler-Fermat theorem using Lagrange's theorem, Fermat's theorem proof, polynomial congruence

Other names:  Fermat's theorem
Keywords:  number theory

Attachments:
Fermat's theorem proof (Proof) by drini
inductive proof of Fermat's little theorem proof (Proof) by mathcam
computation of powers using Fermat's little theorem (Example) by basseykay
proof of Fermat's little theorem using Lagrange's theorem (Proof) by alozano
Log in to rate this entry.
(view current ratings)

Cross-references: divisible, base, pseudoprime, integer, positive, converse, implies, cyclic, group of units, order, finite fields, Euler theorem, property, congruence relation, prime
There are 19 references to this entry.

This is version 8 of Fermat's little theorem, born on 2001-10-15, modified 2008-05-30.
Object id is 195, canonical name is FermatsLittleTheorem.
Accessed 15957 times total.

Classification:
AMS MSC11-00 (Number theory :: General reference works )

Pending Errata and Addenda
None.
[ View all 3 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | prove | add result | add corollary | add example | add (any)