\(x^2-\left(y-3\right)x-2y-1=0\)
\(\Leftrightarrow y\left(x+2\right)=x^2+3x-1\)
Dễ thây \(x\ne-2\)
\(\Rightarrow y=\frac{x^2+3x-1}{x+2}=x+1-\frac{3}{x+2}\)
Để y nguyên thì x + 2 là ươc của 3 hay
\(\left(x+2\right)=\left\{-3;-1;1;3\right\}\)
\(x^2-\left(y-3\right)x-2y-1=0\)
\(\Leftrightarrow x^2-xy+3x-2y-1=0\)
\(\Leftrightarrow\left(x^2-xy\right)+\left(2x-2y\right)+x-1=0\)
\(\Leftrightarrow x\left(x-y\right)+2\left(x-y\right)+\left(x+2\right)-3=0\)
\(\Leftrightarrow\left(x+2\right)\left(x-y\right)+\left(x+2\right)=3\)
\(\Leftrightarrow\left(x+2\right)\left(x-y+1\right)=3\)
Ta có x, y \(\in\) Z nên x + 2 là ước của 3 \(\Rightarrow x+2\in\left\{1;3;-1;-3\right\}\). Ta có bảng sau:
x + 2 | x - y + 1 | x | y |
1 | 3 | -1 | -3 |
3 | 1 | 1 | 1 |
-1 | -3 | -3 | 1 |
-3 | -1 | -5 | -3 |
gwdhj HJxucLXZJvl.dmq
e Ư 7DTSpttttttttppsipqX888888