OFFSET
0,4
COMMENTS
The Motzkin step set is U=(1,1), H=(1,0) and D=(1,-1). An excursion is a path starting at (0,0), ending on the x-axis and never crossing the x-axis, i.e., staying at nonnegative altitude.
FORMULA
G.f.: (1+t)*(1+t-2t^3-(1+t)*sqrt(1-4t^3))/(2t^4).
D-finite with recurrence: -(n+4)*(5*n^2-11*n-6)*a(n) +36*(-n+1)*a(n-1) +36*(n-2)*a(n-2) +2*(2*n-5)*(5*n^2-n-12)*a(n-3)=0. - R. J. Mathar, Jan 09 2020
a(n) ~ (sqrt(3)*(4 + 2^(1/3) + 2^(5/3)) - sqrt(3)*(-8 + 2^(1/3) + 2^(5/3)) * cos(2*Pi*n/3) + 3*(2^(1/3) - 2^(5/3)) * sin(2*Pi*n/3)) * 2^(2*n/3 - 1) / (sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Nov 19 2021
EXAMPLE
a(5)=2 since we have 2 such excursions of length 5, namely UHUDD and UDHUD.
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Valerie Roitner, Nov 29 2019
STATUS
approved