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!)
A371408 Number of Dyck paths of semilength n having exactly three (possibly overlapping) occurrences of the consecutive step pattern UDU, where U = (1,1) and D = (1,-1). 1
0, 0, 0, 0, 1, 4, 20, 80, 315, 1176, 4284, 15240, 53295, 183700, 625768, 2110472, 7057505, 23427600, 77271120, 253426752, 827009523, 2686728060, 8693388060, 28026897360, 90058925649, 288516259416, 921755412900, 2937377079000, 9338728806225, 29626186593276 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
FORMULA
a(n) mod 2 = A121262(n) for n >= 1.
EXAMPLE
a(4) = 1: UDUDUDUD.
a(5) = 4: UDUDUDUUDD, UDUDUUDUDD, UDUUDUDUDD, UUDUDUDUDD.
MAPLE
a:= n-> `if`(n<4, 0, binomial(n-1, 3)*add(binomial(n-3, j)*
binomial(n-3-j, j-1), j=0..ceil((n-3)/2))/(n-3)):
seq(a(n), n=0..29);
# second Maple program:
a:= proc(n) option remember; `if`(n<5, [0$4, 1][n+1],
(n-1)*((2*n-7)*a(n-1)+3*(n-2)*a(n-2))/((n-2)*(n-4)))
end:
seq(a(n), n=0..29);
CROSSREFS
Column k=3 of A091869.
Sequence in context: A082138 A074358 A255050 * A292540 A320934 A344063
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Mar 22 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 16 17:27 EDT 2024. Contains 372554 sequences. (Running on oeis4.)