What is the remainder when $2^{2016}$ is divided by $47$?
I have done Fermat's little theorem and I have now this:
$2^{2016} \equiv 2^{38} \pmod{47}$
My issue is that $2^{38}$ is too large of a number to work with, how do I continue?
What is the remainder when $2^{2016}$ is divided by $47$?
I have done Fermat's little theorem and I have now this:
$2^{2016} \equiv 2^{38} \pmod{47}$
My issue is that $2^{38}$ is too large of a number to work with, how do I continue?
Hint $\,\ \underbrace{2^{38}\equiv 2^{-8}}_{\large 2^{\Large 46}\equiv 1\text{ by F$\ell$T}}\!\!\! \equiv (2^{-4})^2\equiv \underbrace{(\color{#c00}{16^{-1}})^2\equiv \color{#c00}{3}^2}_{\large 16(3)\ \equiv\ 48\ \equiv\ 1}\equiv 9\pmod{47},\ $ all trivial mental arithmetic
Remark $ $ As in the example above, generally it is trivial to invert $\,a\pmod n\ $ if $\ a\mid n+1 $ since if $\ ab = n+1\,$ then $\ {\rm mod}\ n\!:\ ab\equiv 1\,\Rightarrow\, a^{-1}\equiv b.\ $ Similarly if $\ a\mid n-1.\ $ These trivial inversions are special cases of computing inverses using the extended Euclidean algorithm (cases where the algorithm terminates in $1$ or $2$ steps).
You can say $2^{38}=(2^{10})^32^8$ and take each factor $\bmod 47$, then multiply them out.