-2

Find all numbers $n\geq1$ for which the polynomial $x^{n+1}+x^n+1$ is divisible by

(a) $x^2+x+1$

(b) $x^2-x+1$.

I tried to do long division, but I didn't really seem to be going anywhere. Any suggestions? thanks

doingmath
  • 419

2 Answers2

0

Hint $ $ mod $\,x^2+x+1\!:\,\ x^3\equiv 1\,\Rightarrow\, x^n\equiv x^{n\bmod 3}$ and similarly for the other (negate $x)$

Bill Dubuque
  • 272,048
0

Hint:

It is divisible by $x^2+x+1$ if and only the (complex) roots of $x^2+x+1$ are roots of $x^{n+1}+x^n+1$. Now the complex roots of the quadratic polynomial are the non-real cube roots of unity, $j$ and $j^2$. Calculate the successive powers of $j$ and plug them in $x^{n+1}+x^n+1$ to check.

Similarly, the roots of $x^2-x+1$ are the cube roots of $-1$, namely $-j$ and $-j^2$.

Bernard
  • 175,478