OFFSET
0,2
LINKS
MAPLE
with(numtheory):
b:= proc(n) option remember; `if`(n<=1, n, add(add(d*
b(d), d=divisors(j))*b(n-j), j=1..n-1)/(n-1))
end:
t:= proc(n) option remember; `if`(n=0, 1, b(n)-(add(b(k)
*b(n-k), k=0..n)-`if`(irem(n, 2)=0, b(n/2), 0))/2)
end:
g:= proc(n) option remember; `if`(n=0, 1, add(
binomial(n-1, j-1) *t(j-1) *g(n-j), j=1..n))
end:
a:= n-> g(n+1):
seq(a(n), n=0..30); # Alois P. Heinz, Mar 16 2015
MATHEMATICA
b[n_] := b[n] = If[n <= 1, n, Sum[Sum[d*b[d], {d, Divisors[j]}]*b[n-j], {j, 1, n-1}]/(n-1)]; t[n_] := t[n] = If[n==0, 1, b[n] - (Sum[b[k]*b[n-k], {k, 0, n}] - If[ Mod[n, 2] == 0, b[n/2], 0])/2]; g[n_] := g[n] = If[n==0, 1, Sum[Binomial[n-1, j-1] *t[j-1]*g[n-j], {j, 1, n}]]; a[n_] := g[n+1]; Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Mar 30 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved