A104313 Numbers n such that the coefficient of x^(2n) in (x^4+x^3+x^2+x+1)^n is prime.
2, 3, 28, 30, 31
Offset: 1
Crossrefs
Cf. A005191 (pentanomial coefficients).
Programs
-
Mathematica
f=1; Do[f=Expand[f*(x^4+x^3+x^2+x+1)]; s=Coefficient[f, x, 2n]; If[PrimeQ[s], Print[{n, s}]], {n, 100}]
Comments