ta có : \(\dfrac{n^2+4n+5}{n+4}=\dfrac{n\left(n+4\right)+5}{n+4}=n+\dfrac{5}{n+4}\)
\(\Rightarrow x+4\inước_5\) \(\Rightarrow\) \(x+4\in\left\{\pm1;\pm5\right\}\) \(\Rightarrow\) \(\left[{}\begin{matrix}x+4=1\\x+4=-1\\x+4=5\\x+4=-5\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-3\\x=-5\\x=1\\x=-9\end{matrix}\right.\) (tmđk)
vậy \(x=-9;x=-5;x=-3;x=1\)