OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
MAPLE
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i=1, ithprime(n),
add(b(j, 1)*(t-> b(t, min(t, i-1)))(n-i*j), j=0..n/i)))
end:
a:= n-> b(n$2):
seq(a(n), n=0..40);
MATHEMATICA
b[n_, i_] := b[n, i] = If[n==0, 1, If[i==1,
Prime[n], Sum[b[j, 1]*Function[t,
b[t, Min[t, i-1]]][n-i*j], {j, 0, n/i}]]];
a[n_] := b[n, n];
Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Sep 15 2022, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 24 2019
STATUS
approved