OFFSET
0,6
COMMENTS
Invert transform of A111133.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..4371
N. J. A. Sloane, Transforms
FORMULA
G.f.: 1/(1 - Sum_{k>=1} A111133(k)*x^k).
MAPLE
seq(coeff(series(1/(1+1/(1-x)-mul(1+x^k, k=1..n)), x, n+1), x, n), n=0..50); # Muniru A Asiru, Jul 30 2018
# second Maple program:
b:= proc(n) option remember; `if`(n=0, 1, add(b(n-j)*add(
`if`(d::odd, d, 0), d=numtheory[divisors](j)), j=1..n)/n)
end:
a:= proc(n) option remember; `if`(n<1, 1,
add(a(n-i)*(b(i)-1), i=1..n))
end:
seq(a(n), n=0..42); # Alois P. Heinz, Dec 16 2022
MATHEMATICA
nmax = 42; CoefficientList[Series[1/(1 + 1/(1 - x) - Product[(1 + x^k), {k, 1, nmax}]), {x, 0, nmax}], x]
nmax = 42; CoefficientList[Series[1/(1 - Sum[(PartitionsQ[k] - 1) x^k, {k, 1, nmax}]), {x, 0, nmax}], x]
a[0] = 1; a[n_] := a[n] = Sum[(PartitionsQ[k] - 1) a[n - k], {k, 1, n}]; Table[a[n], {n, 0, 42}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jul 30 2018
STATUS
approved