Famous Theorems of Mathematics/Number Theory/Fermat's Little Theorem

From testwiki
Jump to navigation Jump to search

Statement

If p is a rational prime, for all integers a ≠ 0,

ap11modp

Proofs

There are many proofs of Fermat's Little Theorem.

Proof 1 (Bijection)

Define a function f(x)=ax (mod p). Let S={1,2,...,p-1} and T=f(S)={a,2a,...,(p-1)a}. We claim that these two sets are identical mod p.

Since all integers not equal to 0 have inverses mod p, for any integer m with 1≤m<p, f(a1m)=m. Then f is surjective.

In addition, if f(x)=f(y), then axay and a1axxya1ay. Then f is injective, and is bijective between S and T.

Then, mod p, the product of all of the elements of S will be equal to the product of elements of T, meaning that

k=1p1kk=1p1ak(modp) and that
k=1p1kap1k=1p1k(modp).

Then

ap11modp.

Template:BookCat