Show that if $x$ is an integer, then $x^{10} \equiv \{-1, 0 ,1\} \pmod{25}$
Well, the first case if $(25, x)$ is not 1, so $x$ is a multiple of $5$ and $x^{10} \equiv 0$.
If $(25, x) =1$, $x^{20} \equiv 1$ by Euler's Theorem.
I am just learning number theory, how can we jump from that to $x^{10} \equiv 1$ or $-1$?