Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.4.10 (Representations of $0$ by a quadratic form)
Exercise 3.4.10 (Representations of $0$ by a quadratic form)
Let be a quadratic form with integral coefficients. Show that there exist integers , not both , such that , if and only if the discriminant of is a perfect square, possibly .
Answers
Proof. Suppose that , where .
If , then the equality
shows that is the square of a rational , where . Then , thus where , so , therefore and is a perfect square.
Similarly, if , we prove that is a perfect square, using the equality
Conversely, suppose that is a perfect square. If , then , where . Suppose now .
By Problem 9, there are integers such that
Note that , otherwise . Then , and .
There exist integers , not both , such that , if and only if the discriminant of is a perfect square □