login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A337034
The number of n-step self avoiding walks on a 3D cubic lattice confined inside a box of size 2x2x2 where the walk starts at one of the box's corners.
4
1, 3, 9, 30, 96, 294, 840, 2214, 5796, 14112, 34158, 76062, 167928, 337476, 670626, 1181064, 2067900, 3103404, 4666542, 5758008, 7176144, 6899904, 6743712, 4535916, 3117192, 1098900, 392628, 0
OFFSET
0,2
FORMULA
For n>=27 all terms are 0 as the walk contains more steps than there are available lattice points in the 2x2x2 box.
EXAMPLE
a(1) = 3 as the walk can take a first step in only three directions along the cube's edges.
a(3) = 9. After the first step along the cube's edge the walk can turn toward a face center in two ways. From the face center is has four available directions. If instead the walk takes two steps along the cube's edge to another corner it then has only two directions available for a third step. As the first step can be taken in three ways the total number of 3-step walks is 3*2*4+3*2 = 30.
a(26) = 392628. This is the total number of ways a 26-step walk can completely fill the 2x2x2 box's 26 available lattice points. Unlike the walk which starts at the center of the box, see A337021, all lattice points can be visited in one walk. Note this is larger than the total number of walks when starting at the center of the cube's face, see A337033.
CROSSREFS
Cf. A337035 (other box sizes), A337021 (start at center of box), A337033 (start at center of face), A335806 (start at middle of edge), A001412, A039648.
Sequence in context: A374626 A144817 A337267 * A250128 A199137 A089978
KEYWORD
nonn,walk,fini,full
AUTHOR
Scott R. Shannon, Aug 12 2020
STATUS
approved