login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A114713 Number of ascents in all peakless Motzkin paths of length n+3. 1
1, 3, 7, 18, 46, 116, 294, 746, 1894, 4816, 12262, 31258, 79777, 203833, 521337, 1334690, 3420039, 8770891, 22510949, 57817420, 148599626, 382165858, 983430962, 2532082308, 6522876601, 16811813391, 43350264107, 111830286218 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
A Motzkin path of length n is a lattice path from (0,0) to (n,0) consisting of U=(1,1), D=(1,-1) and H=(1,0) steps and never going below the x-axis. An ascent in a Motzkin path is a maximal sequence of consecutive U steps.
LINKS
I. L. Hofacker, P. Schuster and P. F. Stadler, Combinatorics of RNA secondary structures, Discrete Appl. Math., 88, 1998, 207-237.
P. R. Stein and M. S. Waterman, On some new sequences generalizing the Catalan and Motzkin numbers, Discrete Math., 26 (1979), 261-272.
M. Vauchassade de Chaumont and G. Viennot, Polynômes orthogonaux et problèmes d'énumération en biologie moléculaire, Sem. Loth. Comb. B08l (1984) 79-86.
FORMULA
a(n) = Sum(k*A114712(n+3,k),k=0..1+floor(n/3)).
G.f.: (1-2z+z^2-2z^3+z^4-(1-z+z^2)sqrt(1-2z-z^2-2z^3+z^4))/(2z^4*sqrt(1-2z-z^2-2z^3+z^4)).
D-finite with recurrence n^2*(n+4)*a(n) -n*(n+2)*(2*n+3)*a(n-1) -(n+4)*(n-2)*(n+1)*a(n-2) -n*(n+2)*(2*n+1)*a(n-3) +(n-2)*(n+2)^2*a(n-4)=0. - R. J. Mathar, Jul 24 2022
EXAMPLE
a(2)=7 because in the 8 (=A004148(5)) peakless Motzkin paths of length 5, namely HHHHH, (U)HDHH, (U)HHDH, (U)HHHD, H(U)HDH, H(U)HHD, HH(U)HD and (UU)HDD, we have altogether 7 ascents (shown between parentheses).
MAPLE
G:=(1-2*z+z^2-2*z^3+z^4-(1-z+z^2)*sqrt(1-2*z-z^2-2*z^3+z^4))/2/z^4/(1-2*z-z^2-2*z^3+z^4)^(1/2): Gser:=series(G, z=0, 40): 1, seq(coeff(Gser, z^n), n=1..32);
CROSSREFS
Sequence in context: A191652 A191826 A318899 * A078058 A116413 A052960
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Dec 27 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 11 11:39 EDT 2024. Contains 372409 sequences. (Running on oeis4.)