During some free time I had, I was wondering how to find the integer solutions $(x,y,z)$ to this generalized equation: $$z^2=axy+bx+cy+d$$ I am specifically looking for ways that do no involve factoring. And $a,b,c,d$ are all non-zero integers. I have no idea if it is easier or harder that for solving in two variables.

Edit: I have done some research and have concluded that it is a two-sheeted hyperboloid. I don't know if this helps with solving my question.

  • $\begingroup$ Solving Diophantine equations without factoring? Good luck! $\endgroup$ – Gerry Myerson May 5 at 4:17

$$z^2=axy+bx+cy+d$$ Use another equation. $$q=\frac{A^2-d}{b}$$

And we use solutions to the Pell equation. $k,t -$ any number.


Decisions then write down so.




  • $\begingroup$ Can you give a specific example and solve. And the way you wrote your answer makes it seem that there are infinite solutions, when I know that is not true. But still, very good. +1 $\endgroup$ – Quote Dave May 5 at 19:13
  • $\begingroup$ For anyone $A$ you can choose an infinite number of coefficients. The Pell equation has an infinite number of solutions... $\endgroup$ – individ May 6 at 5:12
  • $\begingroup$ So how would you solve an equation like this: $z^2=2xy-6y-12x+3$? $\endgroup$ – Quote Dave May 6 at 15:06

Change the odds.... write it down....



Let's pick some numbers...... like this. $k=3$ ; $t=2$ ; $A=3$



Knowing the first solution.... $p=7$ ; $s=2$

The rest find on formula..



Solutions then write using the formula....




$p=97$ ; $s=28$




  • $\begingroup$ That is not what Wolfram says: wolframalpha.com/input/?i=z%5E2%3D2xy-6y-12x%2B3 $\endgroup$ – Quote Dave May 6 at 20:03
  • $\begingroup$ Wolfram says there are 3 solutions only. But in fact, they are infinitely many. Choose other coefficients and you will receive those decisions which are mentioned there. $\endgroup$ – individ May 7 at 4:12
  • $\begingroup$ Have you checked the solutions you got to make sure they are right, and for what coefficients do you get those answers? $\endgroup$ – Quote Dave May 7 at 15:14
  • $\begingroup$ Also, Wolfram says you're wrong for the solution you got: wolframalpha.com/input/… $\endgroup$ – Quote Dave May 7 at 15:17
  • $\begingroup$ You need to be careful when carrying out arithmetic operations.... You made mistakes. I won't answer any more arithmetic questions.... $\endgroup$ – individ May 7 at 16:34

Above equation shown below:

$z^2=axy+bx+cy+d$ -----------$(1)$

Equation (1) has parametric solution for $(a,b,c,d)= (3,9,2,25)$

By the way "Quote Dave" has made a mistake in claiming

that numerical solution given by "Individ" is incorrect.

The solution $(x,y,z)=(-157081,-104720,181387)$ satisfies

equation $(1)$ for $(a,b,c,d)=(2,-6,-12,3)$.

For, $(a,b,c,d)= (3,9,2,25)$ the solution is:




For $k=2$, we get:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.