a) \(\left(n+6\right)⋮\left(n+1\right)\Rightarrow\left(n+1\right)+5⋮\left(n+1\right)\)
\(\Rightarrow\left(n+1\right)\inƯ\left(5\right)=\left\{-5;-1;1;5\right\}\)
Do \(n\in N\)
\(\Rightarrow n\in\left\{0;4\right\}\)
b) \(\left(4n+9\right)⋮\left(2n+1\right)\Rightarrow2\left(2n+1\right)+7⋮\left(2n+1\right)\)
\(\Rightarrow\left(2n+1\right)\inƯ\left(7\right)=\left\{-7;-1;1;7\right\}\)
Do \(n\in N\)
\(\Rightarrow n\in\left\{0;3\right\}\)