I know I'm supposed to use modular arithmetic, but I must be messing up my process somehow. Can someone explain how to do this?
$4^{999}$'s last two digits in other words (What is $4^{999}$'s remainder when divided by $100$)
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityI know I'm supposed to use modular arithmetic, but I must be messing up my process somehow. Can someone explain how to do this?
$4^{999}$'s last two digits in other words (What is $4^{999}$'s remainder when divided by $100$)
Since $\phi(25)=20$, we have: $$ 4^{999}\equiv 4^{-1}\equiv 19\pmod{25} $$ while obviously $4^{999}\equiv 0\pmod{4}$, hence by the Chinese theorem: $$ 4^{999} \equiv 44\pmod{100}. $$
$$ 4^6 = 4096 \equiv -4 \bmod 100 $$
so the cycle must repeat every $2(6-1) = 10$ powers of $4$. Now,
$$ 4^9 = 2^{18} = 262144 $$
so the last two digits are $44$.