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!)
A371726 Number of Dyck paths of semilength n such that neighboring peaks differ in height by at most one and first and last peak are at height one. 2
1, 1, 1, 1, 2, 4, 8, 17, 39, 93, 227, 567, 1447, 3760, 9917, 26492, 71567, 195256, 537397, 1490614, 4163508, 11702411, 33078992, 93986117, 268294604, 769171970, 2213834911, 6395017291, 18534987580, 53887644375, 157121564325, 459351495858, 1346290327899 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
EXAMPLE
a(4) = 2: /\
/\/\/\/\ /\/ \/\ .
MAPLE
b:= proc(x, y, h, t) option remember; `if`(y<0 or y>x, 0,
`if`(x=0, `if`(h>1, 0, 1), `if`(t=1 and abs(y-h)>1, 0,
b(x-1, y-1, `if`(t=1, y, h), 0))+b(x-1, y+1, h, 1)))
end:
a:= n-> b(2*n, 0$3):
seq(a(n), n=0..32);
CROSSREFS
Sequence in context: A000598 A003008 A185352 * A054199 A054197 A287776
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 04 2024
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 12 06:47 EDT 2024. Contains 372432 sequences. (Running on oeis4.)