OFFSET
0,3
COMMENTS
Invert transform of A008578.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2327
N. J. A. Sloane, Transforms
FORMULA
G.f.: 1/(1 - Sum_{k>=1} A008578(k)*x^k).
MAPLE
a:= proc(n) option remember; `if`(n=0, 1, add(
`if`(j=1, 1, ithprime(j-1))*a(n-j), j=1..n))
end:
seq(a(n), n=0..35); # Alois P. Heinz, Mar 10 2018
MATHEMATICA
nmax = 30; CoefficientList[Series[1/(1 - x - Sum[Prime[k - 1] x^k, {k, 2, nmax}]), {x, 0, nmax}], x]
p[1] = 1; p[n_] := p[n] = Prime[n - 1]; a[n_] := a[n] = Sum[p[k] a[n - k], {k, 1, n}]; a[0] = 1; Table[a[n], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Mar 10 2018
STATUS
approved