\(xy+y+x=2\\ \Rightarrow y\left(x+1\right)+\left(x+1\right)=3\\ \Rightarrow\left(x+1\right)\left(y+1\right)=3\)
Vì \(x,y\in Z\Rightarrow\left\{{}\begin{matrix}x+1,y+1\in Z\\x+1,y+1\inƯ\left(3\right)\end{matrix}\right.\)
Ta có bảng:
x+1 | -1 | -3 | 1 | 3 |
y+1 | -3 | -1 | 3 | 1 |
x | -2 | -4 | 0 | 2 |
y | -4 | -2 | 2 | 0 |
Vậy \(\left(x,y\right)\in\left\{\left(-2;-4\right);\left(-4;-2\right);\left(0;2\right);\left(2;0\right)\right\}\)