Để D là số nguyên thì \(2x+4⋮3x-1\)
=>\(6x+12⋮3x-1\)
=>\(6x-2+14⋮3x-1\)
=>\(14⋮3x-1\)
=>\(3x-1\in\left\{1;-1;2;-2;7;-7;14;-14\right\}\)
=>\(3x\in\left\{2;0;3;-1;8;-6;15;-13\right\}\)
=>\(x\in\left\{\dfrac{2}{3};0;1;-\dfrac{1}{3};\dfrac{8}{3};-2;5;-\dfrac{13}{3}\right\}\)
mà x nguyên
nên \(x\in\left\{0;1;-2;5\right\}\)