OFFSET
0,3
MAPLE
b:= proc(l) option remember; `if`(l[-1]=0, 1, add(add(b(subsop(
i=j, l)), j=`if`(i=1, 0, l[i-1])..l[i]-1), i=1..nops(l)))
end:
a:= n-> `if`(n=0, 1, b([n$10])):
seq(a(n), n=0..10);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jul 17 2013
STATUS
approved