Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.2.7 (Find all $p$ such that $x^2 \equiv 13 \pmod p$)
Exercise 3.2.7 (Find all $p$ such that $x^2 \equiv 13 \pmod p$)
Find all primes such that has a solution.
Answers
Proof. This is true for , because is a solution of the congruence .
Suppose now that . We search the primes such that . Since , the law of quadratic reciprocity shows that this is equivalent to
The quadratic residues modulo are , thus is equivalent to . To conclude, has a solution if and only if , or .
(The first possible values of , except , are ) □