Moderator Note: This is a current contest question on Brilliant.org.
Find the smallest natural number that satisfy:
$$13^N = 1 \pmod {2013}$$
My idea is to use the Fermat's little theorem for prime numbers. First I factorize 2013 as 3*11*61
Then i get using the theorem i get:
$$13^{61-1} = 1 \pmod{ 61}\iff 13^{60} = 1 \pmod {61}$$ $$13^{11-1} = 1 \pmod{11}\iff13^{10} = 1 \pmod{11}$$ $$13^{3-1} = 1 \pmod 3\iff 13^{2} = 1 \pmod{3}$$
But because the modulo bases are different I doesn't know how to continue. And even if they were same, the multiplication won't change the modulo base. Is there any way to achieve this?
Actually my idea is to find the smallest natural nubmer that satisfies
$$13^N = 1 \pmod{ 3\cdot 11\cdot 61}$$
Euler's theorem will give you a candidate positive exponent. But is that the smallest?