Find the remainder when $ 5^{(5^{31})} $ is divided by $ 17 $.
So I know that by applying the Fermat's little theorem, we have $ 5^{17-1}=5^{16}\equiv 1\pmod {17} $. But from here, how should I proceed and find the correct answer?
Find the remainder when $ 5^{(5^{31})} $ is divided by $ 17 $.
So I know that by applying the Fermat's little theorem, we have $ 5^{17-1}=5^{16}\equiv 1\pmod {17} $. But from here, how should I proceed and find the correct answer?