Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory intermediate

Problem

What is the remainder when 5 to the 999,999th power is divided by 7?
Solution
To find the remainder when is divided by 7, we look at the first few powers of 5 modulo 7: Since , the remainders become periodic, with period 6. Since , .
Final answer
6