For the question $\displaystyle (n^3+2n^2-n-2) / (n^2-1)$

i found the answer to be n+2 using long division

in the book the restrictions on the variable says +or - 1

i think it is just +1

could someone explain to me why the book put this (assuming that it is correct of course)