The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A371705 Number of Dyck paths of semilength n such that neighboring peaks have different heights. 3
1, 1, 1, 3, 6, 16, 43, 116, 329, 947, 2762, 8176, 24469, 73896, 224960, 689623, 2126947, 6595273, 20548732, 64298032, 201969823, 636639087, 2013174695, 6384574754, 20302081620, 64716553655, 206764068578, 661983640080, 2123573339921, 6824597707820, 21969711674581 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
EXAMPLE
a(3) = 3: /\
/ \ /\ /\
/ \ / \/\ /\/ \ .
MAPLE
b:= proc(x, y, h, t) option remember;
`if`(y<0 or y>x, 0, `if`(x=0, 1, b(x-1, y+1, h, 1)+
`if`(t=0 or y<>h, b(x-1, y-1, `if`(t=1, y, h), 0), 0)))
end:
a:= n-> b(2*n, 0$3):
seq(a(n), n=0..30);
CROSSREFS
Sequence in context: A019497 A091488 A202839 * A007561 A274295 A192676
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 03 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 20 19:00 EDT 2024. Contains 372720 sequences. (Running on oeis4.)