Sửa đề síu hén ;-;
\(P=\dfrac{n^3-2n^2+3}{n-2}\\ \Rightarrow\left(n^3-2n^2+3\right)⋮\left(n-2\right)\\ \Rightarrow n^3-2n^2+3=n^2\left(n+2\right)+3\\ \Rightarrow n+2\in\text{Ư}\left(3\right)=\left\{\pm1;\pm3\right\}\\ \Rightarrow n=\left\{1;-1;3;4\right\}\)