What are the possible remainders when the 100-th power of an
integer is divided by 125? This is a solution from Yatir Halevi,
Maccabim-Reut High School, Israel.
Every integer can be expressed in the following way:
, where
and
are certain integers and
. Expanding
with the aid of the binomial theorem we get the general
term:
All the terms except the last one
are divisible by 125.
What we get is a number of this sort:
. But we know that
so the remainder when
the 100th power is divided by 125 is the same as the remainder for
, with
.
If
then
; if
then
.
Let
; we want the remainder after
is divided by
125, so we work modulo 125. Now
where the
symbol '
' indicates that the numbers have the same
remainder after division by 125. For
it follows that
. Thus
Similarly
If
then
So we can either get 0 or 1 as a remainder and we get 0 if the
original number is a multiple of 5 and 1 otherwise.