a: ĐKXĐ: \(x\notin\left\{-\dfrac{3}{2}\right\}\)
Để A là số nguyên thì \(x+3⋮2x+3\)
=>\(2x+6⋮2x+3\)
=>\(2x+3+3⋮2x+3\)
=>\(3⋮2x+3\)
=>\(2x+3\in\left\{1;-1;3;-3\right\}\)
=>\(2x\in\left\{-2;-4;0;-6\right\}\)
=>\(x\in\left\{-1;-2;0;-3\right\}\)
b: ĐKXĐ: x<>2
Để B là số nguyên thì \(x^2+3x+5⋮x-2\)
=>\(x^2-2x+5x-10+15⋮x-2\)
=>\(15⋮x-2\)
=>\(x-2\in\left\{1;-1;3;-3;5;-5;15;-15\right\}\)
=>\(x\in\left\{3;1;5;-1;7;-3;17;-13\right\}\)