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!)
A277922 Number of positive walks with n steps {-4,-3,-2,-1,1,2,3,4} starting at the origin, ending at altitude 1, and staying strictly above the x-axis. 1
0, 1, 3, 13, 71, 405, 2501, 15923, 104825, 704818, 4827957, 33549389, 235990887, 1676907903, 12019875907, 86804930199, 630999932585, 4613307289260, 33900874009698, 250257489686870, 1854982039556397, 13800559463237465, 103017222722691145, 771348369563479705 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
C. Banderier, C. Krattenthaler, A. Krinik, D. Kruchinin, V. Kruchinin, D. Nguyen, and M. Wallner, Explicit formulas for enumeration of lattice paths: basketball and the kernel method, arXiv:1609.06473 [math.CO], 2016.
MAPLE
b:= proc(n, y) option remember; `if`(n=0, `if`(y=1, 1, 0), add
((h-> `if`(h<1, 0, b(n-1, h)))(y+d), d=[$-4..-1, $1..4]))
end:
a:= n-> b(n, 0):
seq(a(n), n=0..23); # Alois P. Heinz, Nov 12 2016
MATHEMATICA
b[n_, y_] := b[n, y] = If[n == 0, If[y == 1, 1, 0], Sum[Function[h, If[h < 1, 0, b[n - 1, h]]][y + d], {d, Join[Range[-4, -1], Range[4]]}]];
a[n_] := b[n, 0];
Table[a[n], {n, 0, 23}] (* Jean-François Alcover, Apr 03 2017, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A284217 A213690 A227117 * A182189 A198447 A318223
KEYWORD
nonn,walk
AUTHOR
David Nguyen, Nov 04 2016
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 April 19 06:44 EDT 2024. Contains 371782 sequences. (Running on oeis4.)