Find the sum of last three digits of the number $89^{23}$ I arrived to calculate this expression by taking mod 1000.
$89^{23}$ $\mod{1000}$ but what to do next .i stopped . help to sort out this.
Find the sum of last three digits of the number $89^{23}$ I arrived to calculate this expression by taking mod 1000.
$89^{23}$ $\mod{1000}$ but what to do next .i stopped . help to sort out this.
$$89^{23}=(90-1)^{23}=-1+\binom{23}190-\binom{23}290^2\pmod{1000}$$
Now $\binom{23}29^2=23\cdot11\cdot81\equiv3\pmod{10}\implies\binom{23}290^2\equiv3\cdot100\pmod{10\cdot100}$
and $\binom{23}190=23\cdot90\equiv2070\equiv70\pmod{1000}$
So,$$89^{23}\equiv-1+70-300\pmod{1000}\equiv-1+70+700\equiv?$$