login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons 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

Alois P. Heinz, Table of n, a(n) for n = 0..1000

Wikipedia, Lattice path

Wikipedia, Self-avoiding walk

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 A002747

Adjacent sequences:  A328278 A328279 A328280 * A328282 A328283 A328284

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 24 21:09 EDT 2021. Contains 345425 sequences. (Running on oeis4.)