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!)
A328281 Total number of nodes in all n-step walks on cubic lattice starting at (0,0,0), ending at (0,floor(n/2),ceiling(n/2)), remaining in the first (nonnegative) octant and using steps (0,0,1), (0,1,0), (1,0,0), (-1,1,1), (1,-1,1), and (1,1,-1). 2
1, 2, 9, 28, 130, 492, 2401, 10056, 50346, 224110, 1141030, 5284200, 27222364, 129582278, 673340265, 3270171504, 17104148290, 84342959172, 443406172278, 2212675109180, 11680186909062, 58844537998598, 311667574680190, 1582458820299408, 8404755004516300 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
Wikipedia, Lattice path
FORMULA
a(n) = (n+1) * A328280(n).
MAPLE
b:= proc(l) option remember; `if`(l[-1]=0, 1, (r-> add(
add(add(`if`(i+j+k=1, (h-> `if`(h[1]<0, 0, b(h)))(
sort(l-[i, j, k])), 0), k=r), j=r), i=r))([$-1..1]))
end:
a:= n-> (t-> (n+1)*b([0, t, n-t]))(iquo(n, 2)):
seq(a(n), n=0..31);
MATHEMATICA
b[l_] := b[l] = If[Last[l] == 0, 1, Function[r, Sum[If[i + j + k == 1, Function[h, If[h[[1]] < 0, 0, b[h]]][Sort[l - {i, j, k}]], 0], {i, r}, {j, r}, {k, r}]][{-1, 0, 1}]];
a[n_] := Function[t, (n + 1) b[{0, t, n - t}]][Quotient[n, 2]];
a /@ Range[0, 31] (* Jean-François Alcover, May 13 2020, after Maple *)
CROSSREFS
Cf. A328280.
Sequence in context: A323682 A086511 A291632 * A324372 A138912 A374827
KEYWORD
nonn,walk
AUTHOR
Alois P. Heinz, Oct 10 2019
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 August 20 22:38 EDT 2024. Contains 375340 sequences. (Running on oeis4.)