I am a little confused about how to start a proof like this. Any pointers are appreciated. Thank you.
Let $p$ be a prime. Prove that $x^2\equiv 1\mbox{ mod }p$ if and only if $x\equiv 1\mbox{ mod }p$ or $x\equiv p-1\mbox{ mod }p$. Useful note aside: $p-1\equiv -1\mbox{ mod }p. Why?$
$x^2\equiv1\bmod p$ means $p|x^2-1=(x-1)(x+1)$, which means $p|x-1$ or $p|x+1$,
which means $x\equiv1\bmod p$ or $x\equiv-1\bmod p$.
$-1\equiv p-1\bmod p$, because the difference of $p-1$ and $-1$ is $p$, which is divisible by $p$.