Để x là số nguyên thì 2\(⋮\)2a+1
Hoặc \(2a+1\inƯ\left(2\right)\)
Vậy Ư(2)là:[1,-1,2,-2]
Do đó ta có bảng sau:
2a+1 | -1 | -2 | 1 | 2 |
2a | -2 | -3 | 0 | 1 |
a | -1 | ko TM | 0 | ko TM |
Vậy a=-1;0
\(x=\frac{2}{2a+1}\in Z\)
\(\Rightarrow2a+1\inƯ\left(2\right)\)
\(\Rightarrow2a+1\in\left\{-2;-1;1;2\right\}\)
\(\Rightarrow2a\in\left\{-3;-2;0;1\right\}\)
\(\Rightarrow a\in\left\{-\frac{3}{2};-1;0;\frac{1}{2}\right\}\)
\(a\in Z\)
\(\Rightarrow a\in\left\{-1;0\right\}\)
\(x=\frac{2}{2a+1}\in Z\)
\(\Rightarrow2a-1\inƯ\left(2\right)\)
\(\Rightarrow2a-1\in\left\{-2;-1;1;2\right\}\)
\(\Rightarrow2a\in\left\{-1;0;2;3\right\}\)
\(\Rightarrow a\in\left\{-\frac{1}{2};0;1;\frac{3}{2}\right\}\)
\(a\in Z\)
\(\Rightarrow a\in\left\{0;2\right\}\)
Để x là số nguyên thì 2\(⋮\)2a+1
Hoặc \(2a+1\inƯ\left(2\right)\)
Vậy Ư(2)là:[1,-1,2,-2]
Do đó ta có bảng sau:
2a+1 | -1 | -2 | 1 | 2 |
2a | -2 | -3 | 0 | 1 |
a | -1 | ko TM | 0 | ko TM |
Vậy a=-1;0