State Fermat's Theorem and Wilson's Theorem.
Let p be a prime.
(a) Show that if p≡3(mod4) then the equation x2≡−1(modp) has no solution.
(b) By considering (2p−1) !, or otherwise, show that if p≡1(mod4) then the equation x2≡−1(modp) does have a solution.
(c) Show that if p≡2(mod3) then the equation x3≡−1(modp) has no solution other than −1(modp).
(d) Using the fact that 142≡−3(mod199), find a solution of x3≡−1(mod199) that is not −1(mod199).
[Hint: how are the complex numbers −3 and 3−1 related?]