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
KEYWORD
nonn,walk,fini,full
AUTHOR
Scott R. Shannon, Aug 12 2020
STATUS
approved