I want to find the number of solutions to the congruence $$x^{k} \equiv 1\bmod \ p.$$ I know the answer is $$\gcd(k,p-1)$$ but I need proof for it.
thanks
I want to find the number of solutions to the congruence $$x^{k} \equiv 1\bmod \ p.$$ I know the answer is $$\gcd(k,p-1)$$ but I need proof for it.
thanks
Let $d=\gcd(k,p-1)$. Write $d=ku+(p-1)v$. Fermat's theorem then implies that $x^{k} \equiv 1\bmod \ p$ iff $x^{d} \equiv 1\bmod \ p$.
The non-zero classes mod $p$ form a cyclic group. The set of solutions of $x^{d} \equiv 1\bmod \ p$ corresponds to the subgroup of order $d$.