We present two proofs of the first statement in Fermat's little theorem. The second statement follows easily, as each nonzero element in Z/pZ has an inverse.
Let x
Z.
Then (x + 1)p equals
|
|
|
Since p is a prime, we find that p divides
|
|
|
|
for all 0 < k < p. Hence we have
Now with induction on x we easily obtain the theorem.
For a = 0 mod p or a = 1 mod p , the statement is clear.
Let S = {1, 2, ..., p - 1}
Z/pZ.
By a previous theorem, for 1 < a < p
the map
h: S -> S, h(x) = a · x
is bijective (because a is invertible, the map x -> a-1x is the inverse map of h).
This implies
S
x =
S
h(x) =
ap-1
S
x .
It follows that p | ap-1 - 1.