cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A337021 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 the center of the box.

Original entry on oeis.org

1, 6, 24, 72, 168, 456, 1032, 2712, 5784, 14640, 29760, 71136, 133344, 291696, 479232, 950880, 1343088, 2375808, 2774832, 4266240, 3909792, 5046672, 3230400, 3316704, 1122000, 808128, 0
Offset: 0

Views

Author

Scott R. Shannon, Aug 11 2020

Keywords

Examples

			a(1) = 6 as the walk is free to move one step in all six axial directions.
a(2) = 24 as after a step in one of the six axial directions the walk must turn along the face of the box; this eliminates the 2-step straight walk in all directions, so the total number of walks is 6*5-6 = 24.
a(26) = 0 as it is not possible to visit all 26 available lattice points when the walk starts from the middle of the box.
		

Crossrefs

Cf. A337023 (other box sizes), A337033 (start at center of face), A335806 (start at middle of edge), A337034 (start at corner of box), A001412, A039648.

Formula

For n>=27 all terms are 0 as the walk contains more steps than there are available lattice points in the 2x2x2 box.