OFFSET
0,5
COMMENTS
A Motzkin meander is a lattice path with steps from the set {D=-1, H=0, U=1} that starts at (0,0), and never goes below the x-axis.
A peak is an occurrence of the pattern UD.
A hump is an occurrence of the pattern UHH...HD (the number of Hs in the pattern is not fixed, and can be 0).
LINKS
Andrei Asinowski, Axel Bacher, Cyril Banderier, Bernhard Gittenberger, Analytic combinatorics of lattice paths with forbidden patterns, the vectorial kernel method, and generating functions for pushdown automata, Algorithmica (2019).
FORMULA
G.f.: (1/4)*(t^3-4*t^2+4*t-1+sqrt(t^6-4*t^5+4*t^4-2*t^3+4*t^2-4*t+1))/((-t^3+4*t^2-4*t+1)*t)-(1/4)*(-t^3-4*t^2+4*t-1+sqrt(t^6+4*t^5-4*t^4+2*t^3+4*t^2-4*t+1))/((t^3+4*t^2-4*t+1)*t).
EXAMPLE
For n = 4 the a(4) = 5 paths are UUHD, UHHD, UHDU, UHDH, HUHD.
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrei Asinowski, Jun 25 2019
STATUS
approved