The roots of polynomial $ p(x) $ are:
$$ \begin{aligned}x_1 &= 0.382\\[1 em]x_2 &= 2.618\\[1 em]x_3 &= -0.167+0.312i\\[1 em]x_4 &= -0.167-0.312i\\[1 em]x_5 &= -1.3331+2.4915i\\[1 em]x_6 &= -1.3331-2.4915i \end{aligned} $$Polynomial $ x^6+x^4-21x^3+x^2+1 $ has no rational roots that can be found using Rational Root Test, so the roots were found using Newton method.