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!)
A288114 Number of Dyck paths of semilength n such that each level has exactly seven peaks or no peaks. 2

%I #10 Jun 02 2018 10:36:24

%S 1,0,0,0,0,0,0,1,1,7,22,48,93,180,331,575,1150,3578,13268,50808,

%T 217173,881980,3064454,9169075,24605669,61450068,147038896,347902716,

%U 860591396,2411664484,8038395295,30845855094,126173520602,513951305502,1996531969713

%N Number of Dyck paths of semilength n such that each level has exactly seven peaks or no peaks.

%H Alois P. Heinz, <a href="/A288114/b288114.txt">Table of n, a(n) for n = 0..1000</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Lattice_path#Counting_lattice_paths">Counting lattice paths</a>

%p b:= proc(n, k, j) option remember; `if`(n=j, 1, add(

%p b(n-j, k, i)*(binomial(j-1, i-1)+binomial(i, k)

%p *binomial(j-1, i-1-k)), i=1..min(j+k, n-j)))

%p end:

%p a:= n-> `if`(n=0, 1, b(n, 7$2)):

%p seq(a(n), n=0..40);

%t b[n_, k_, j_] := b[n, k, j] = If[n == j, 1, Sum[b[n - j, k, i]*(Binomial[j - 1, i - 1] + Binomial[i, k]*Binomial[j - 1, i - 1 - k]), {i, 1, Min[j + k, n - j]}]];

%t a[n_] := If[n == 0, 1, b[n, 7, 7]];

%t Table[a[n], {n, 0, 40}](* _Jean-François Alcover_, Jun 02 2018, from Maple *)

%Y Column k=7 of A288108.

%K nonn

%O 0,10

%A _Alois P. Heinz_, Jun 05 2017

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 April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)