Sometimes you have to deal with this equation: $X^2+aX+Y^2+bY=Z^2+cZ$
$a,b,c$ - integer coefficients.
I wrote below - to start a particular solution of Diophantine equations.
To do this, use the solutions of Pell's equation: $p^2-2k(k-1)s^2=1$
I turned solutions such.
Probably will have to write a more general formula. But I think that's not a problem.
Here is another question. When trying to solve the more general equation:
Always turns in decisions that need to share the decision itself by type: $w=n+q-j$
That is, the formula is written as a fraction. Certainly at Pell's equation infinitely many solutions. And of course no matter how large the number it was not always a chance that the fraction reduced. But still not clear how all of these decisions to allocate whole? Although there may be another idea to solve this equation and all that there is no need to do?
The coefficients should have this appearance. Because they will appear as unknown for other equations.