This is a continuation of the question
Factorization of polynomial with prime coefficients from earlier today.
As in the linked question we are interested in the possibility of a polynomial of the form $$ f(x)=p_0+p_1x+\cdots+p_{n-1}x^{n-1} $$ having a common factor with $x^n-1$ in the ring $\Bbb{Z}[x]$. Here the coefficients $p_i$ are constrained to be distinct primes.
Gerry Myerson and I provided examples of such polynomials $f(x)$ as answers to the linked question. All those examples took advantage of low degree factors of $x^n-1$, and were based on $f$ having a root of unity of order $d, d\mid n, d<n$, as a zero.
This leaves open the more difficult possibility of whether such a polynomial $f(x)$ can have as a zero a primitive $n$th root of unity. In other words,
is it possible to find a polynomial $f(x)$ of the prescribed form such that $\gcd(f(x),\Phi_n(x))\neq1$?
Preliminary thoughts:
- I'm not sure this is possible. A proof of impossibility of this is obviously a great answer, but may be asking a lot.
- As $\Phi_n(x)$ is irreducible, we need $\Phi_n(x)$ to be a factor of $f(x)$.
- To have enough elbow room to search for $f(x)=g(x)\Phi_n(x)$ we probably want $\Phi_n(x)$ to have a degree a lot less than $n$.
- However, selecting $n$ to be a prime power is a non-starter. If $n=p^m$, then we must have $\deg g(x)<p^{m-1}$, and the coefficients of $g(x)$ will just repeat in the product $g(x)\Phi_n(x)$.
- In case it makes a difference, I would relax the constraints and allow a negative prime as a coefficient of $f$ as long as $p_i\neq\pm p_j$ whenever $i\neq j$.