OFFSET
0,2
COMMENTS
The Motzkin step set is U=(1,1), H=(1,0) and D=(1,-1). A meander is a path starting at (0,0) and never crossing the x-axis, i.e., staying at nonnegative altitude.
FORMULA
G.f.: ((-t-1)*sqrt(4*t^4-4*t^3+t^2-2*t+1)-2*t^3-3*t^2+1)/(4*t^3-2*t^2).
EXAMPLE
a(3)=6 as one has 6 meanders of length 3, namely: UUU, UUH, UHU, UHD, HUU, HUH.
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Valerie Roitner, Nov 19 2019
STATUS
approved