Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 5.4.1 (Equation $x^2 + y^2 = 9z+3$)
Exercise 5.4.1 (Equation $x^2 + y^2 = 9z+3$)
Show that the equation has no integral solution.
Answers
Proof. If reduced modulo , this equation has no solution: for all integers ,
thus
Therefore the congruence
has no solution, thus
has no integral solution. □
With Sagemath:
sage: a = set()
sage: for x in Integers(9):
....: for y in Integers(9):
....: a.add(x^2 + y^2)
....:
sage: a
{0, 1, 2, 4, 5, 7, 8}
2025-04-16 07:42