Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 5.4.2 (Equation $x^2 + 2y^2 = 8z+5$ )
Exercise 5.4.2 (Equation $x^2 + 2y^2 = 8z+5$ )
Show that the equation has no integral solution.
Answers
Proof. If we reduce this equation modulo 8, we obtain no solution: for all integers ,
thus
Therefore
This shows that the equation
has no integral solution. □
With Sagemath:
sage: A = set()
sage: for x in Integers(8):
....: for y in Integers(8):
....: A.add(x^2 + 2 * y^2)
....:
sage: A
{0, 1, 2, 3, 4, 6}
2025-04-16 07:44