Fermat's Little Theorem

From Notes
Jump to navigation Jump to search
ap11(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)ak1pkap+1modpa+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

p1

. Therefore,

ap1

is equal to the identity element

1

for any

ap*

.

quod erat demonstrandum


Corollary

apa(modp)