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