OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
MAPLE
b:= proc(n, i) option remember; local p, q;
if n<0 then [0, 0]
elif n=0 then [1, 0]
elif i<2 then [0, 0]
else p, q:= b(n, i-1), b(n-i, i);
[p[1]+q[1], p[2]+q[2]+q[1]]
fi
end:
a:= n-> b(2*n+1, 2*n+1)[2]:
seq(a(n), n=0..35); # Alois P. Heinz, Dec 03 2010
MATHEMATICA
b[n_, i_] := b[n, i] = Module[{p, q}, Which[n<0, {0, 0}, n == 0, {1, 0}, i < 2, {0, 0}, True, {p, q} = {b[n, i-1], b[n-i, i]}; {p[[1]] + q[[1]], p[[2]] + q[[2]] + q[[1]]}]]; a[n_] := b[2*n+1, 2*n+1][[2]]; Table[a[n], {n, 0, 35}] (* Jean-François Alcover, Oct 29 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Dec 03 2010
EXTENSIONS
More terms from Alois P. Heinz, Dec 03 2010
STATUS
approved