(Factoring tricks)$xy+ax+by=c$ is equivalent to $(x+b)(y+a)=c+ab$, and $x^2-y^2=N$ is equivalent to $(x-y)(x+y)=N$, where the two factors have the same parity. If the fixed number on the right is nonzero, it has finitely many integer factor pairs, so there are finitely many cases to check; keep only the pairs that give integer values of the original variables. (If the right side is $0$, there can be infinitely many solutions, e.g.\ $xy=0$.)
← 返回第 1156 题