Let f(x)=x2n+xn+1, g(x)=x2k−xk+1,
h(x)=x2k+xk+1. The complex number
x1=cos(3kπ)+isin(3kπ) is a root of g(x).
Let α=3kπn. Since g(x) divides f(x),
f(x1)=g(x1)=0. So,
0=x12n+x1n+1=(cos(2α)+isin(2α))+(cosα+isinα)+1=0,
and (2cosα+1)(cosα+isinα)=0. Hence
2cosα+1=0, i.e.\
α=±32π+2πc, where c∈Z.
Let x2 be a root of the polynomial h(x). Since
h(x)=xk−1x3k−1, the roots of the polynomial
h(x) are distinct and they are
x2=cos(3k2πs)+isin(3k2πs), where s=3a±1,
a∈Z. It is enough to prove that f(x2)=0. We have
f(x2)=x22n+x2n+1=(cos(4sα)+isin(4sα))+(cos(2sα)+isin(2sα))+1=(2cos(2sα)+1)(cos(2sα)+isin(2sα))=0
(since 2cos(34πs)+1=2cos(34π(3a±1))+1=0).