The roots of polynomial $ p(n) $ are:
$$ \begin{aligned}n_1 &= 1\\[1 em]n_2 &= -1 \end{aligned} $$The solutions of $ n^2-1 = 0 $ are: $ n = -1 ~ \text{and} ~ n = 1$.
You can use step-by-step quadratic equation solver to see a detailed explanation on how to solve this quadratic equation.