OFFSET
0,3
COMMENTS
First differences of A001970.
FORMULA
G.f.: exp(Sum_{j>=1} Sum_{k>=2} p(k)*x^(j*k)/j).
MAPLE
with(numtheory): with(combinat):
b:= proc(n) option remember; `if`(n=0, 1, add(add(d*
numbpart(d), d=divisors(j))*b(n-j), j=1..n)/n)
end:
a:= n-> b(n)-b(n-1):
seq(a(n), n=0..40); # Alois P. Heinz, Aug 10 2018
MATHEMATICA
nmax = 37; CoefficientList[Series[Product[1/(1 - x^k)^PartitionsP[k], {k, 2, nmax}], {x, 0, nmax}], x]
nmax = 37; CoefficientList[Series[Exp[Sum[Sum[PartitionsP[k] x^(j k)/j, {k, 2, nmax}], {j, 1, nmax}]], {x, 0, nmax}], x]
b[n_] := b[n] = If[n == 0, 1, Sum[Sum[d PartitionsP[d], {d, Divisors[k]}] b[n - k], {k, 1, n}]/n]; Differences[Table[b[n], {n, -1, 37}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Aug 10 2018
STATUS
approved