Fermat's Little Theorem

From Notes
(Redirected from Fermat's little theorem)
Jump to navigation Jump to search
ap−1≡1(modp)
where a is an integer and p is a prime number.


Proof 1: Inductive Algebraic

Basis. The assertion holds for a=0 and a=1.

Induction. Assuming the assertion is true for a, we can show that the claim holds for a+1:

(a+1)p=∑k=0p(pk)ak1p−k≡ap+1modp≡a+1modp

Therefore, the claim holds by induction on

a

.

quod erat demonstrandum

Proof 2: Group Theory

ℤp*=ℤp∖{0}

(nonzero integers modulo

p

) forms a group over multiplication modulo

p

with order

p−1

. Therefore,

ap−1

is equal to the identity element

1

for any

a∈ℤp*

.

quod erat demonstrandum


Corollary

ap≡a(modp)