# Math Help - number of pair of integers (x,y) satisying an equation

1. ## number of pair of integers (x,y) satisying an equation

The equation is
$
x^2-4xy+5y^2+2y-4=0$

What is the total number of pair of integers (x,y) that satisfy the above equation?

How do I solve it?

2. $(x^2-4xy+4y^2)+(y^2+2y+1)-5=0\Rightarrow(x-2y)^2+(y+1)^2=5$

But $5=1+4=4+1$

Can you continue?

3. Do I have to test pairs like (2,0), (0,2), (6,2), etc. or there is some other methods?

4. $\left\{\begin{array}{ll}(x-2y)^2=1\\(y+1)^2=4\end{array}\right.$

From here you have to solve four systems:

$\left\{\begin{array}{ll}x-2y=1\\y+1=2\end{array}\right., \ \left\{\begin{array}{ll}x-2y=-1\\y+1=2\end{array}\right., \ \left\{\begin{array}{ll}x-2y=1\\y+1=-2\end{array}\right., \ \left\{\begin{array}{ll}x-2y=-1\\y+1=-2\end{array}\right.$

and to keep the integer solutions.

Similarly for $\left\{\begin{array}{ll}(x-2y)^2=4\\(y+1)^2=1\end{array}\right.$