I can't do this last question of my homework that's due in tomorrow. Can anyone hint me on what to do?
Suppose $p$ is prime and $k$ is a positive integer
Show that if $p$ is odd and $x$ is an integer such that $x^2\equiv 1\mod p^k$ , then $x\equiv \pm 1\mod p^k$
We have $p^k \mid x^2 - 1 = (x+1)(x-1)$. Notice that $p$ divides at most one of $x+1$ and $x-1$ as $(x+1)-(x-1)=2$ is not divisible by $p$. It follows that one of $x+1$ and $x-1$ is in fact divisible by $p^k$, hence $x \equiv \pm1 \mod p^k$.