1

Find $n \in N$, such that: $$(x^2+x+1)^2 | x^n+(x+1)^n+1 = P(x)$$

If I let $Q(x) = x^2 + x + 1$, I have that $x^3 \equiv 1$ mod$Q(x)$, so I can work out the cases for remainder of $n$ when divided by $3$ .. But what to do next, because I need $Q^2(x)$ dividing $P(x)$ ? I suppose this could be done with complex zeroes, but is there a faster way ?

4 Answers4

1

Since $(x^2+x+1)^2$ divides $P(x):=x^n+(x+1)^n+1$, we get that $Q(x):=x^2+x+1$ divides its derivative $P'(x)=n(x^{n-1}+(x+1)^{n-1})$.

Let us see when $n(x^{n-1}+(x+1)^{n-1})$ is divisible by $Q$ by working modulo $Q(x)$. Since $x^2+x+1=0$ we get $x^2=-(x+1)$ and $$x^3=x^2x=-(x+1)x=-x^2-x=(x+1)-x=1,$$ hence $$x^{3k}=1, x^{3k+1}=x, x^{3k+2}=x^2=-(x+1)$$ for all $k\in\mathbb{N}$, and similarly $$(x+1)^k=(-1)^kx^{2k}.$$

Then we get $$n(x^{3k}+(x+1)^{3k})=n(1+(-1)^{3k}),$$ so it is $0$ iff $k$ is odd, i.e., if $3k=6k'+3$, and $$n(x^{3k+1}+(x+1)^{3k+1})=n(x+(-1)^{3k+1}x^2),$$ $$n(x^{3k+2}+(x+1)^{3k+2})=n(x^2+(-1)^{3k+2}x),$$ which can never be zero.

Hence $Q(x)^2$ divides $P(x)$ iff $n\equiv 4\pmod{6}$.

Jose Brox
  • 4,856
  • How come that $Q(x)$ divides derivative of $P(x)$ ? –  Jan 24 '19 at 17:15
  • @someone Since $Q(x)^2$ divides $P(x)$, we have $P(x)=Q(x)^2R(x)$ for some polynomial $R$. Then by the product rule we get $P'(x)=2Q(x)Q'(x)R(x)+Q(x)^2R'(x)=Q(x)(2Q'(x)R(x)+Q(x)R'(x))$, so $Q$ divides $P'$. – Jose Brox Jan 24 '19 at 17:33
  • I thought you somehow derived that from this theorem: "If a is a root of multiplicity k of a polynomial, then it is a root of multiplicity k – 1 of its derivative". (This is completely different thing, right ?) Thanks! –  Jan 24 '19 at 17:39
  • @someone No, it is the same thing, for the particular case $k=2$! The proof of the theorem is the same, just considering $k$ instead of $2$. I'll let it to you as a practising exercise! – Jose Brox Jan 24 '19 at 19:28
  • I was somehow thinking that root of a polynomial is $a \in C$ and not a polynomial –  Jan 24 '19 at 19:45
  • @someone Well, you know the Factor Lemma: $a\in\mathbb{C}$ is a root of $P(x)$ if and only if $x-a$ divides $P$. What I mean is that the two proofs are analogous and equivalent, since a polynomial is a product of its linear factors, and the proof works for linear factors, so it works for polynomials more in general. – Jose Brox Jan 24 '19 at 20:02
0

Since the LHS is $(x-w)^{2}(x-w^{2})^{2}$ where $w = e^{2\pi i /3}$, we need to find $n$ such that $P(w) = P(w^{2}) = 0$ and $P'(w) = P'(w^{2}) = 0$. You may use the identity $w^{2} + w + 1 = 0$ for this.

Seewoo Lee
  • 15,137
  • 2
  • 19
  • 49
0

Let's call your polynomial $P_n(x)$, to indicate the dependence on $n$. If $\omega$ is a root of $x^2 + x + 1$, we want $\omega$ to be a root of $P_n(x)$ of multiplicity $\ge 2$, which means both $P_n(\omega) = \omega^n + (\omega+1)^n + 1 = 0$ and $P_n'(\omega) = n \omega^{n-1} + n (\omega+1)^{n-1} = 0$. This last simplifies to $$\left(1 + \frac{1}{\omega}\right)^{n-1} = -1$$ Now if $\omega^2 + \omega+1 = 0$ we have $\omega + 1 + 1/\omega = 0$, i.e. $1+1/\omega = -\omega$. Since the powers of $\omega$ repeat $1, \omega, \omega^2$, we see that this is true if and only if $n-1 \equiv 3 \mod 6$, i.e. $n \equiv 4 \mod 6$. For such $n$ we also have $P_n(\omega) = \omega^n + (-\omega^2)^n + 1 = \omega + \omega^2 + 1 = 0$, so both conditions are true.

Robert Israel
  • 448,999
0

Hint $ $ A double root is a root of $P,P'$ so also $\, \frac{1}{n}(x\!+\!1)P'\!-\!P = x^{\large n-1}\!-\!1\,\Rightarrow\, 3\mid n\!-\!1,\,$ by $\,x^{\large 3}\!=1$

Bill Dubuque
  • 272,048