0

I would like to calculate $ 2^{5^{77}}\bmod 113 $. I solved similar problems but with smaller exponent e.g. $ 2^{185}\bmod 113 $ with successive squaring method. Is there any way to use this method to solve it?

Bernard
  • 175,478

1 Answers1

0

Rather than successive squaring, try successive raising to the $5^{th}$ power:

$2^{5^0}\equiv2\bmod 113$

$2^{5^1}\equiv32\bmod113$

$2^{5^2}\equiv32^5\equiv99\bmod113$

$2^{5^3}\equiv99^5\equiv56\bmod113$

$2^{5^4}\equiv56^5\equiv60\bmod113$

$2^{5^5}\equiv60^5\equiv105\bmod113$

$2^{5^6}\equiv105^5\equiv\color{red}2\bmod113$.

Can you take it from here? $\;$ Note that $77\equiv5\bmod6$.

J. W. Tanner
  • 60,406