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!)
A287776 Number of Dyck paths of semilength n such that every peak at level y > 1 is preceded by (at least) one peak at level y-1 and is followed by (at least) one peak at level y-1. 4
1, 1, 1, 1, 2, 4, 8, 17, 39, 95, 241, 629, 1679, 4572, 12684, 35812, 102774, 299371, 883848, 2641121, 7978262, 24337821, 74908008, 232451921, 726831776, 2288799963, 7255401745, 23143158678, 74256591422, 239582207959, 777047305709, 2532730030266, 8293970682858 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
Axel Bacher, Progressive and rushed Dyck paths, arXiv:2403.08120 [math.CO], 2024. See p. 7.
EXAMPLE
a(4) = 2: /\
/\/\/\/\ /\/ \/\ .
a(5) = 4: /\ /\ /\/\
/\/\/\/\/\ /\/\/ \/\ /\/ \/\/\ /\/ \/\ .
MAPLE
b:= proc(x, y, k, h, t) option remember; `if`(x=0, `if`(h<2, 1, 0),
`if`(y<=k and y<x-1, b(x-1, y+1, k, h, 1), 0) +`if`(y>0,
b(x-1, y-1, max(y, k), `if`(t=1 and h<=y+1, y, h), 0), 0))
end:
a:= n-> b(2*n, 0$4):
seq(a(n), n=0..35);
MATHEMATICA
b[x_, y_, k_, h_, t_] := b[x, y, k, h, t] = If[x == 0, If[h < 2, 1, 0], If[y <= k && y < x - 1, b[x - 1, y + 1, k, h, 1], 0] + If[y > 0, b[x - 1, y - 1, Max[y, k], If[t == 1 && h <= y + 1, y, h], 0], 0]];
a[n_] := b[2n, 0, 0, 0, 0];
Table[a[n], {n, 0, 35}] (* Jean-François Alcover, Jun 01 2018, from Maple *)
CROSSREFS
Sequence in context: A371726 A054199 A054197 * A137856 A304970 A090375
KEYWORD
nonn
AUTHOR
Alois P. Heinz, May 31 2017
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 June 5 19:33 EDT 2024. Contains 373110 sequences. (Running on oeis4.)