login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A328777
Product_{n>=1} (1 + x^n)^a(n) = 1 + Sum_{n>=1} x^prime(n).
2
0, 1, 1, 0, 0, 0, 1, 0, -1, -1, 2, 1, 0, -2, 0, 1, 3, -3, -1, -1, 4, -1, -1, -4, 6, 2, 2, -13, 4, 4, 13, -15, -5, -5, 30, -11, -7, -34, 42, 7, 16, -78, 27, 18, 95, -117, -21, -49, 223, -76, -40, -262, 326, 48, 135, -642, 242, 103, 752, -938, -105, -408, 1826, -732, -240
OFFSET
1,11
COMMENTS
Inverse weigh transform of A010051.
MATHEMATICA
b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 1, 0, Sum[Binomial[a[i], j] b[n - i j, i - 1], {j, 0, n/i}]]]; a[n_] := a[n] = Boole[PrimeQ[n]] - b[n, n - 1]; Array[a, 65]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Oct 27 2019
STATUS
approved