Để B là số nguyên thì \(-3x+6⋮2x+2\)
=>-6x+12 chia hết cho 2x+2
=>-6x-6+18 chia hết cho 2x+2
=>\(2x+2\in\left\{1;-1;2;-2;3;-3;6;-6;9;-9;18;-18\right\}\)
hay \(x\in\left\{-\dfrac{1}{2};-\dfrac{3}{2};0;-2;\dfrac{1}{2};-\dfrac{5}{2};2;-4;\dfrac{7}{2};-\dfrac{11}{2};8;-10\right\}\)
`-> -6x + 12 vdots 2x + 2`
`-> -6x- 6 + 18 vdots 2x + 2`
`18 vdots 2x + 2`
`-> x + 1 in Ư(9)`
`-> x in {0, -2, 8, -10, 2, -4}`