Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.1.56* (If $x^2 \equiv -2 \pmod p$, then $a^2 + 2b^2=p$ or $a^2 + 2b^2 = 2p$ has a solution)
Exercise 2.1.56* (If $x^2 \equiv -2 \pmod p$, then $a^2 + 2b^2=p$ or $a^2 + 2b^2 = 2p$ has a solution)
Let be a prime number, and suppose that is an integer such that . By considering the numbers for various pairs , show that at least one of the equations , has a solution.
Answers
Proof. (similar to the proof of Lemma 2.13.)
Let be a prime number, and suppose that is an integer such that .
We consider the set of ordered pairs of integers for which :
where
and define
where denotes the class of in .
The cardinality of is
therefore cannot be injective (one to one). So there are two distinct ordered pairs and in such that (this is the pigeonhole principle described in the proof of lemma 2.13).
Then , where . Take and . Then , thus , so since .
Since , it follows that not both and vanish, so that .
Moreover, and , thus . On the other hand, and , thus . This shows that . We obtain similarly .
But is never an integer, so , therefore
This gives , thus :
This implies
At least one of the equations , has a solution. □