OFFSET
0,2
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
N. J. A. Sloane, Transforms
FORMULA
G.f.: Product_{k>=1} (1-x^k)^-composite(k), where composite(k) = A002808(k) is the k-th composite number.
MAPLE
N:= 100: # to use composites <= N
comps:= remove(isprime, [$4..N]):
M:= nops(comps):
G:= mul((1-x^k)^(-comps[k]), k=1..M):
S:= series(G, x, M+1):
seq(coeff(S, x, j), j=0..M); # Robert Israel, Jan 30 2018
MATHEMATICA
a[ns_Integer?NonNegative, nf_Integer?NonNegative] := CoefficientList[Series[Product[(1 - x^k)^-FixedPoint[k + PrimePi[#] + 1 &, k], {k, 1, nf}], {x, 0, nf}], x][[ns + 1 ;; nf + 1]]; a[0, 30] (* Robert P. P. McKone, Nov 08 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Franklin T. Adams-Watters, Oct 10 2011
STATUS
approved