\(a,n^3-2n^2+3n+3=n^3-n^2-n^2+n+2n-2+5\\ =\left(n-1\right)\left(n^2-n+2\right)+5\\ \Leftrightarrow n^3-2n^2+3n+3⋮\left(n-1\right)\\ \Leftrightarrow5⋮n-1\\ \Leftrightarrow n-1\in\left\{-5;-1;1;5\right\}\\ \Leftrightarrow n\in\left\{-4;0;2;6\right\}\)
\(b,\Leftrightarrow x^4+6x^3+7x^2-6x+a\\ =x^4+3x^3-x^2+3x^3+9x^2-3x-x^2-3x+1-1+a\\ =\left(x^2+3x-1\right)\left(x^2+3x-1\right)-1+a\\ =\left(x^2+3x-1\right)^2+a-1\)
Để \(x^4+6x^3+7x^2-6x+a⋮x^2+3x-1\)
\(\Leftrightarrow a-1=0\Leftrightarrow a=1\)