1322.11 – Giant Powers of 3


What is the remainder when 320203^{2020} is divided by 1313?


Solution

There is a pattern to the remainders when powers of 3 are divided by 13:

Power  Remainder31=3332=9933=27134=81335=243936=7291\begin{array}{cc}\textbf{Power } & \textbf{ Remainder} \\3^1 = 3 & 3 \\3^2 = 9 & 9 \\3^3 = 27 & 1 \\3^4 = 81 & 3 \\3^5 = 243 & 9 \\3^6 = 729 & 1\end{array}

And so it goes. We observe that the remainder is 11 when the exponent is a multiple of 33, 33 when the exponent is 11 more than a multiple of 33, and 99 when the exponent is 22 more than a multiple of 33. Now, 2020=3×673+12020 = 3 \times 673 + 1, i.e., 20202020 is 11 more than a multiple of 33. So 320203^{2020} goes with 313^1 and 343^4. The remainder is 33.