OFFSET
0,3
COMMENTS
Number of compositions (ordered partitions) of n into prime parts (1 included) (A008578).
LINKS
FORMULA
G.f.: 1/(1 - x - Sum_{k>=1} x^prime(k)).
EXAMPLE
a(4) = 7 because we have [3, 1], [2, 2], [2, 1, 1], [1, 3], [1, 2, 1], [1, 1, 2] and [1, 1, 1, 1].
MATHEMATICA
nmax = 39; CoefficientList[Series[1/(1 - x - Sum[x^Prime[k], {k, 1, nmax}]), {x, 0, nmax}], x]
PROG
(PARI) Vec(1 / (1 - x - sum(k=1, 100, x^prime(k))) + O(x^100)) \\ Indranil Ghosh, Mar 09 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jan 10 2017
STATUS
approved