\(xy+x+y=4\)
\(\Leftrightarrow xy+x+y+1=4+1\)
\(\Leftrightarrow x\left(y+1\right)+\left(y+1\right)=5\)
\(\Leftrightarrow\left(x+1\right)\left(y+1\right)=5\)
\(\Leftrightarrow x+1;y+1\inƯ\left(5\right)\)
\(\Leftrightarrow\left[{}\begin{matrix}\left\{{}\begin{matrix}x+1=1\\y+1=5\end{matrix}\right.\\\left\{{}\begin{matrix}x+1=5\\y+1=1\end{matrix}\right.\\\left\{{}\begin{matrix}x+1=-1\\y+1=-5\end{matrix}\right.\\\left\{{}\begin{matrix}x+1-5\\y+1=-1\end{matrix}\right.\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}\left\{{}\begin{matrix}x=0\\y=4\end{matrix}\right.\\\left\{{}\begin{matrix}x=4\\y=0\end{matrix}\right.\\\left\{{}\begin{matrix}x=-2\\y=-6\end{matrix}\right.\\\left\{{}\begin{matrix}x=-6\\y=-2\end{matrix}\right.\end{matrix}\right.\)
Vậy ...