Để M là số nguyên thì \(x^5+3x^3-x^2+3x-7⋮x^2+2\)
\(\Leftrightarrow x^5+2x^3+x^3+2x-x^2-2+x-5⋮x^2+2\)
\(\Leftrightarrow x-5⋮x^2+2\)
\(\Leftrightarrow x^2-25⋮x^2+2\)
\(\Leftrightarrow x^2+2\inƯ\left(-27\right)\)
\(\Leftrightarrow x^2+2\in\left\{1;-1;3;-3;9;-9;27;-27\right\}\)
hay \(x\in\left\{1;5\right\}\)