Am I proving the following problem correctly?
Prove that the olutions to the congruence $x^2 \equiv x\pmod{p^k}$ are $x$ such that $x \equiv 0$ or $1\pmod{p^k}$, with $p, k \in \mathbb{P}$.
Dividing both sides of the congruence by $x$ gives:
$x \equiv 1\pmod{p^k}$ if $x$ is not 0.
If $x$ is $0$, then $0^2 = 0$ and $0$ mod anything is $0$, so the congruence is also satisfied, correct?