Suppose $p$ is odd prime.
If $x^2 \equiv_p -1$, show $(x^2)^{\frac{p-1}{2}} \equiv_p 1$, and conclude that $p \equiv_4 1$ ( I cannot get to this part for some stupid reason)
Here is what I have,
We wish to show
$(x^2)^{\frac{p-1}{2}} \equiv_p 1$
if we square both sides we have
$(x^2)^{p-1} \equiv_p 1$ **
but $x^2 \equiv_p -1$ hence ** becomes
$(-1)^{p-1} \equiv_p 1$ and $p - 1$ is even, we get
$1 \equiv_p 1$ which clearly holds.
Now how do I go from assuming
$(x^2)^{\frac{p-1}{2}} \equiv_p 1$
and concluding that $p \equiv_4 1$?
I tried saying $p \vert (x^{\frac{p-1}{2}} - 1)(x^{\frac{p-1}{2}} + 1)$
and since $p$ is prime is has to divide one of the two?