No solutions to the diophantine equation $x^2 + 2y^2 = 8z + 5.$

diophantine equationsmodular arithmeticnumber theory

Working independently on some practice problems in preparation for my class exam and got stuck on the following question:

Show there are no solutions in integers $x$, $y$, and $z$ to the diophantine equation $x^2 + 2y^2 = 8z + 5.$

I know that we have to prove it using modular arithmetic but I'm not sure how to go about solving this problem. Could anyone help? Thanks!

Best Answer

If you look at the equation mod $8$, note that squares are either $0,1$ or $4$ mod 8. Thus the left hand side can only attain the values $0,1,2,3,4$ or $6$ mod $8$ and hence will never be equal to the right hand side, which is $5$ mod $8$.

Related Question