inductive proof of Fermat’s little theorem proof
We will show
with prime. The equivalent![]()
statement
when does not divide follows by cancelling both sides (which can be done since then are coprime![]()
).
When , we have
Now assume the theorem holds for some positive and we want to prove the statement for . We will have as a direct consequence that
Let’s examine . By the binomial theorem![]()
, we have
However, note that the entire bracketed term is divisible by , since each element of it is divsible by . Hence
Therefore by induction![]()
it follows that
for all positive integers .
It is easy to show that it also holds for whenever it holds for , so the statement works for all integers .