确定所有非负整数对(x,y)使(xy-7)^2=x^2+y^2

问题描述:

确定所有非负整数对(x,y)使(xy-7)^2=x^2+y^2

整理 (xy-6)^2+13=(x+y)^2
(xy-6-x-y)(xy-6+x+y)=-13
只可能为(-1)*13
(-13)*1
解方程组即可
(-3,-4)(3,4)(0,7)(0,-7)(xy反过来也对)