What is the remainder when 32020 is divided by 13?
Solution
There is a pattern to the remainders when powers of 3 are divided by 13:
Power 31=332=933=2734=8135=24336=729 Remainder391391 (!) (!!)
And so it goes. We observe that the remainder is 1 when the exponent is a multiple of 3, 3 when the exponent is 1 more than a multiple of 3, and 9 when the exponent is 2 more than a multiple of 3. Now, 2020=3×673+1, i.e., 2020 is 1 more than a multiple of 3. So 32020 goes with 31 and 34. The remainder is 3.