Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.1.60 (Existence of solutions for $x^2 + 2 y^2 = p$.)
Exercise 2.1.60 (Existence of solutions for $x^2 + 2 y^2 = p$.)
Combine the results of the foregoing problems to show that a prime number can be expressed in the form if and only if the congruence is solvable. (In Chapter 3 we show that this congruence is solvable if and only if or .)
Answers
Proof. We want to prove, combining the results of the foregoing problems, that for any prime ,
If , since , and , the two members are true. Now, we may suppose that is an odd prime.
- Assume that for some integers . If and , then , thus . Since is a prime number, this is impossible, so or , i.e. does not divide both and . By Exercice 59, has a solution in .
- Assume that there is some such that . By Exercise 56, at least one of the equations has a solution. By Exercise 58, if has a solution, then has also a solution. In all cases has a solution.
The equivalence is proven. □
Note: If we know the complements of the law of quadratic reciprocity and the Legendre’s symbol , we obtain for an odd prime
If we list the values of and , we obtain
This shows that, for every odd prime ,
To conclude, for every prime ,