\(\left(2-n\right)\left(n^2-3n+1\right)+n\left(n^2+12\right)+8\)
\(=2n^2-n^3-6n+3n^2+2-n+n^3+12n+8\)
\(=\left(2n^2+3n^2\right)+\left(n^3-n^3\right)+\left(12n-6n-n\right)+\left(8+2\right)\)
\(=5n^2+5n+10\)
\(=5\left(n^2+n+2\right)⋮5\forall n\in Z\left(đpcm\right)\)