\(x\cdot\left(y-1\right)+y=2\\ xy-x+y=2\\ y\cdot\left(x+1\right)-x-1=2-1\\ y\cdot\left(x+1\right)-\left(x+1\right)=1\\ \left(x+1\right)\left(y-1\right)=1\)
mà `x;y in ZZ => x+1;y-1 in ZZ`
nên `x+1;y-1` thuộc ước nguyên của `1`
`=>x+1;y-1 in {1;-1}`
`=>x in {0;-2}; y in {2;0}`
\(x.\left(y-1\right)+y=2\)
\(x.\left(y-1\right)+\left(y-1\right)=2-1\)
\(\left(y-1\right)\left(x-1\right)=1\)
(y-1) ; (x-1) có 2 cặp: \(y-1=1;x-1=1\) hoặc \(y-1=-1;x-1=-1\)
\(x;y\) có 2 cặp: \(y=2;x=2\) hoặc \(y=0;x=0\)