What is the remainder when dividing the polynomial $$P(x)=x^n+x^{n-1}+\cdots+x+1$$ with the polynomial $$x^3-x$$ if $n$ is a natural odd number?
So, what I know so far is:
$$P(x)=Q(x)D(x)+R(x)$$
In this case I'll call $Q(x) = x^3-x$
$$Q(x) = 0 \iff x=\pm1$$
So from here:
$\begin{array} {l}P(1):\qquad&1^n+1^{n-1}+\cdots+1^1+1=R(1)\\P(-1):&(-1)^n+(-1)^{n-1}+\cdots+(-1)^1+1=R(-1)\end{array}$
Here is where I assumed that $R(x)=ax^2+b$ since $Q(x)=x^3-x$
And from the equations (assuming $n = \{2k+1 \mid k\in\mathbb{N}\}$):
$\begin{array}{l}P(1):\\&R(1)=n\\P(-1):\\&R(-1)=0\end{array}$
And here I get to:
$$\left\{ \begin{array}{ll} ax^2+by &=n \\ ax^2+by &=0 \\ \end{array} \right.$$
I would like to know where did I go wrong? Is my assumption for $R(x)$ incorrect, my calculation of the $P(1)$ and $P(-1)$ wrong or is there something else I didn't think about?