Find the last $2$ digits of $2016^{123}$
So you have that $2016^{123} \equiv \pmod{100}$
then $16^{123}\equiv \pmod{100}$
Now the $gcd(16,100)=4$ so I divide everything by 4 $4^{123} \equiv \pmod{25}$
I know $4^{\varphi(25)} \equiv 1 \pmod{25}$ then $(4^{20})^6*4^{3} \equiv 14 \pmod{25}$
Then multiplying that by $4$ to get it in the original mod I get $56$ but the answer is $96$ so I"m not sure where I"m making a mistake or if this is the right process to use.
so I divide everything by 4
That's not what you did on the LHS. – dxiv Apr 03 '17 at 03:52