if $n$ is primitive root for odd prime $p$, then $-n$ is also a primitive root for $p$ $\iff p = 1 \text{ mod } 4$

I am having trouble solving this question, can someone show to me how to solve it?

Thank you.

  • $\begingroup$ If $n$ is a primitive root, then $-1\equiv n^{(p-1)/2}\pmod p$. $\endgroup$ – Lord Shark the Unknown Nov 1 '18 at 20:16
  • $\begingroup$ I know that $1 = n^{(p-1)} \text{ mod p}$, but why $-1 = n^{(p-1)/2} \text{ mod p}$ ? $\endgroup$ – Enllwx Nov 1 '18 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.