close
login
A334398
Number of endless self-avoiding walks of length n for the square lattice up to rotation, reflection, and path reversal.
0
1, 2, 3, 7, 16, 39, 96, 245, 631, 1642, 4304, 11272, 29690, 78059, 205805, 542229, 1429948, 3770287, 9944412, 26227636, 69182561, 182488890, 481379260, 1269847657, 3349768007
OFFSET
1,2
COMMENTS
a(n) > A334322(n)/16.
Does not reduce for repetition (e.g. paths XYXY and XXYY both count for n = 4, even though they are respectively a serial and an interleaved repetition of primitive path XY for n = 2), or for congruence of the resultant endless paths (e.g. paths XXYY and XYYX each count even though their resultant endless paths are congruent). - Charles L. Hohn, May 11 2026
LINKS
Nathan Clisby, Endless self-avoiding walks, arXiv:1302.2796 [cond-mat.stat-mech], 2013.
Code Golf Stack Exchange, Infinite Snake game
EXAMPLE
The a(4) = 7 step patterns of length 4 are
---->---->---->---->, ---->---->---->, ---->----> ,
| |
v v---->
---->---->, ----> ^, ----> , and ----> .
| | | | |
v v----> v----> v
| | |
v v v---->
CROSSREFS
Cf. A334322.
Sequence in context: A081207 A383331 A353580 * A027118 A114582 A352816
KEYWORD
nonn,walk,more,changed
AUTHOR
EXTENSIONS
a(11)-a(25) from Charles L. Hohn, May 11 2026
STATUS
approved