Euler's Theorem
Lesson · Intermediate
Number Theory
Let be a positive integer. If ,
Let
be all the integers from 1 to that are relatively prime to .
Since
the numbers
are also relatively prime to .
Moreover, no two of them are congruent modulo . Indeed, if
then, since , we can cancel , giving
Therefore,
are just a rearrangement modulo of
Hence
Thus
Since every is relatively prime to , we can cancel
Therefore,
Find the remainder when
is divided by 40.
Since
and
Euler’s theorem gives
Since
we get
Now
Therefore
so the remainder is
Find the last two digits of
We work modulo 100.
Since
and
Euler’s theorem gives
Since
Thus the last two digits are
Find
Since 13 is prime,
Thus
We need
Since
and multiplying by 10 preserves the remainder 4,
Therefore
If is prime and
then
Euler’s theorem becomes
This is Fermat’s Little Theorem.