OFFSET
0,8
LINKS
FORMULA
G.f.: Sum_{m>=0} Product_{k=1..m} Sum_{i=1..k} x^prime(i).
a(n) ~ c*A078974^n, where c = 0.094587447... .
EXAMPLE
The 7 such compositions of n = 11 are:
[ 1] (2, 2, 2, 2, 3);
[ 2] (2, 2, 2, 3, 2);
[ 3] (2, 2, 3, 2, 2);
[ 4] (2, 3, 2, 2, 2);
[ 5] (2, 2, 2, 5);
[ 6] (2, 2, 5, 2);
[ 7] (2, 3, 3, 3).
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1, add(
b(n-ithprime(j), i+1), j=1..min(i, numtheory[pi](n))))
end:
a:= n-> b(n, 1):
seq(a(n), n=0..50); # Alois P. Heinz, Dec 29 2022
MATHEMATICA
a[n_]:=Coefficient[Expand[Sum[Product[Sum[x^Prime[i], {i, k}], {k, m}], {m, 0, Floor[n/2]}]], x, n]; Array[a, 48, 0]
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Dec 29 2022
STATUS
approved