Find all integral solutions to the equation $x^2 + 4xy - y^2 = m$ with $-5 \leq m \leq 10$.
I know that I can set $m = -5$ to $m = 10$ and solve all of the equations independently. But is there any better method to this question?
Find all integral solutions to the equation $x^2 + 4xy - y^2 = m$ with $-5 \leq m \leq 10$.
I know that I can set $m = -5$ to $m = 10$ and solve all of the equations independently. But is there any better method to this question?
On
Above equation shown below:
$x^2+4xy-y^2=m$ ---$(1)$
"OP' need's many solution's to equation (1).
From a known solution, $(x,y)=(p,q)$ he can get as many
as he likes from the formula which is given below:
$x=(1/2)*(p+q)$
$y=(1/2)*(3p-q)$
It is to be noted that above formula is independent of 'm'
for $m=4$ and $(p,q)=(5,21)$ we get another solution from the
formula above, that is, $(x,y)=(13,-3)$
So instead of computer brute force & instead of trial & error,
from the solution $(13,-3)$ another solution can be arrived at:
This Pell equation $(x + 2 y)^2 - 5 y^2 = m$.
Some solutions $(m,x,y)$:
For $m=-3,-2,2,3,6,7,8,10$ no solutions.