\(xy+3x-y=6\\ \Rightarrow x\left(y+3\right)-y-3=3\\ \Rightarrow x\left(y+3\right)-\left(y+3\right)=3\\ \Rightarrow\left(x-1\right)\left(y+3\right)=3\)
Vì \(x,y\in Z\Rightarrow\left\{{}\begin{matrix}x-1,y+3\in Z\\x-1,y+3\inƯ\left(3\right)\end{matrix}\right.\)
Ta có bảng:
x-1 | -1 | -3 | 1 | 3 |
y+3 | -3 | -1 | 3 | 1 |
x | 0 | -2 | 2 | 4 |
y | -6 | -4 | 0 | -2 |
Vậy \(\left(x,y\right)\in\left\{\left(0;-6\right);\left(-2;-;\right);\left(2;0\right);\left(4;-2\right)\right\}\)
\(xy+3x-y=6\)
⇒ \(x\left(y+3\right)-\left(y+3\right)=3\)
⇒ \(\left(x-1\right)\left(y+3\right)=3\)
Đến đây em tự xét các trường hợp nha