OFFSET
1,1
COMMENTS
The polynomials having coefficients in {0,1} are enumerated at A206073. They include the following:
p(1,x) = 1
p(2,x) = x
p(3,x) = x + 1
p(9,x) = x^3 + 1 = (x + 1)(x^2 - x + 1)
p(18,x) = x(x + 1)(x^2 - x + 1)
p(33,x) = (x + 1)(x^4 - x^3 + x^2 - x + 1).
EXAMPLE
The first few polynomial factors having a negative
coefficients are as follows:
x^2 - x + 1 divides p(n,x) for n=9,18,21,27,36,42,...
x^4 - x^3 + x^2 - x + 1 divides p(n,x) for n=33,66,...
x^3 - x^2 + 1 divides p(n,x) for n=35,70,...
x^4 - x^3 + x^2 + 1 divides p(n,x) for n=39,...
x^3 - x + 1 divides p(n,x) for n=49,...
x^4 + x^2 - x + 1 divides p(n,x) for n=57,...
In A208136, the duplicates (such as 18, 21, 27, 36,
42, ...) are omitted.
MATHEMATICA
t = Table[IntegerDigits[n, 2], {n, 1, 3000}];
b[n_] := Reverse[Table[x^k, {k, 0, n}]];
p[n_, x_] := p[n, x] = t[[n]].b[-1 + Length[t[[n]]]];
TableForm[Table[{n, p[n, x], Factor[p[n, x]]}, {n, 1, 250}]];
Map[#[[1]] &, DeleteCases[Table[{z,
Select[Flatten[Table[CoefficientList[#[[n]], x],
{n, 1, Length[#]}]] &[Factor[p[z, x]]], # < 0 &]},
{z, 1, 250}], {_, {}}]]
(* Peter J. C. Moses, Feb 22 1012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Feb 23 2012
STATUS
approved