Đặt \(A=\dfrac{a^2+a+3}{a+1}\\ \) ta có:
\(A=\dfrac{a^2+a+3}{a+1}=\dfrac{a\left(a+1\right)+3}{a+1}=a+\dfrac{3}{a+1}\)
để A nguyên => \(3⋮a+1\\ \)
\(\Rightarrow3⋮a+1\\ \Rightarrow a+1\inƯ_{\left(3\right)}=\left\{1;-1;3;-3\right\}\)
ta có bảng sau:
a+1 | 1 | -1 | 3 | -3 |
a | 0 | -2 | 2 | -4 |
vậy a = {0;-2;2;-4}