Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A095981
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A095981 Number of plateau-free Motzkin paths of length n. +0
1
0, 0, 1, 2, 5, 11, 26, 61, 147, 357, 879, 2183, 5471, 13811, 35100, 89724, 230562, 595237, 1543191, 4016038, 10487553, 27473602, 72178312, 190127740, 502044221, 1328667241, 3523684572, 9363119781, 24924679832, 66461841934, 177501561659 (list; graph; listen)
OFFSET

0,4

COMMENT

A plateau in a Motzkin path is a sequence of contiguous flatsteps that is either the entire path or of length >=1 and preceded by an up step and followed by a down step. a(n) = number of plateau-free Motzkin paths of length n.

FORMULA

a(n) = a(n-1) + a(n-2) + 1 + a(2)(1 + a(n-4) )+a(3)(1 + a(n-5)) + ... + a(n-2)(1 + a(0)) for n>=3. This recurrence counts plateau-free Motzkin n-paths by location of first return to ground level. G.f.: (-1 + 2*x + x^2 - x^3 + (1 - 4*x + 2*x^2 + 6*x^3 - 7*x^4 + 2*x^5 + x^6)^(1/2))/(2*(-1 + x)*x^2). Satisfies x^2*(1-x)*A(x)^2-(1-2*x-x^2+x^3)*A(x)+x^2=0.

EXAMPLE

The middle two steps of UFFD form a plateau and a(4) counts the 5 paths FFUD,FUDF,UDFF,UDUD,UUDD.

MATHEMATICA

a[0] = 0; a[1] = 0; a[2] = 1; a[n_]/; n>=3 := a[n] = a[n-1] + a[n-2] + 1 + Sum[(a[k])(1+a[n-2-k]), {k, 2, n-2}]; Table[a[n], {n, 0, 15}]

CROSSREFS

Sequence in context: A064416 A006138 A124217 this_sequence A082397 A051286 A025245

Adjacent sequences: A095978 A095979 A095980 this_sequence A095982 A095983 A095984

KEYWORD

nonn

AUTHOR

David Callan (callan(AT)stat.wisc.edu), Jul 16 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 10 12:37 EST 2009. Contains 170569 sequences.


AT&T Labs Research