OFFSET
1,4
COMMENTS
a(n) is also the number of walks of length n-1 in the quadrant, starting and ending at the origin, with step-set {0,E,S,NW,SE} (where 0 is the stay-step).
LINKS
Éric Fusy, Erkan Narmanli, and Gilles Schaeffer, On the enumeration of plane bipolar posets and transversal structures, arXiv:2105.06955 [math.CO], 2021-2022.
MAPLE
A:=proc(n, i, j) option remember:
if n=0 and i=0 and j=0 then return 1:
elif n<=0 or j<0 or i<0 then return 0:
else
return A(n-1, i, j)+A(n-1, i-1, j)+A(n-1, i, j+1)+A(n-1, i+1, j-1)+A(n-1, i-1, j+1):
fi:
end proc:
seq(A(n-1, 0, 0), n=1..20);
CROSSREFS
KEYWORD
nonn
AUTHOR
Éric Fusy, Jun 16 2023
STATUS
approved