The question states:
Let $g$ by a primitive root of the odd prime $p$. Show that $-g$ is a primitive root , or not, according as $p \equiv 1 \pmod 4$ or not.
For me, I cannot see any connection between the type of primes and the primitive root. Any Hint is highly appreciated.
Thanks
Hint: $-g$ is a primitive root iff $-g = g^k$ with $\gcd(k,p-1)=1$. Connect this with the key fact:
Partial solution:
If $-g$ is a primitive root, then $-g \equiv g^k$ with $\gcd(k,p-1)=1$ and so $-1 \equiv g^{k-1}$. Now $k$ is odd because $\gcd(k,p-1)=1$. Therefore, $k-1$ is even and $-1$ is a square mod $p$. Write $-1 \equiv a^2$. Then $a$ has order $4$ mod $p$ and so $4$ divides $p-1$, that is $p \equiv 1 \bmod 4$.