Find two natural numbers $m$ and $n$ such that $\gamma_m(n)=2012$
My atempt:
$$\varphi(n)\mid2012$$
$$\Longrightarrow \varphi(n)\in\{1,2,4,503,1006,2012\}$$
I am stuck here
Find two natural numbers $m$ and $n$ such that $\gamma_m(n)=2012$
My atempt:
$$\varphi(n)\mid2012$$
$$\Longrightarrow \varphi(n)\in\{1,2,4,503,1006,2012\}$$
I am stuck here
Wolframalpha says there are no $m$ such that $\phi(m)=2012$ or $\phi(m)=4024$. So, it is natural to try $m=6037$, which is prime and has totient equal to $6035=3\cdot 2012$
$5$ is a primitive root in module $6037$. Thus, $5^3=625$ has order equal to $2012$.