How do you go about systematically solving a Diophantine equation of this form :
$217x^2 + 496y^2 = 15872$ ?
I found that $\gcd(217, 496) = 31$ and reduced that equation to
$7x^2 + 16y^2 = 512$
but then I got stuck there. I want to solve this using the modular arithmetic method, so a solution that takes such an approach will be highly appreciated.
Thanks in advance!
Since $512=7\times 73+1$, we have$$2y^2\equiv 1\pmod 7\Rightarrow y\equiv 2,5\pmod 7.$$
Also, we have $$512-16y^2=7x^2\ge0\Rightarrow y^2\le 32\Rightarrow |y|\le 5.$$
These imply that $y=\pm2,\pm 5.$ Hence, the answer is the followings (any double sign) : $$(x,y)=(\pm8,\pm2),(\pm4,\pm 5).$$