A320421
Number of closed self-avoiding paths on square lattice with 2*n steps, A010566(n)/8.
Original entry on oeis.org
0, 1, 3, 14, 70, 372, 2058, 11752, 68706, 409130, 2472646, 15127620, 93504944, 583032968, 3662883960, 23163461280, 147329432094, 941880843108, 6049001532148, 39007700026460, 252477751201074, 1639657957610596, 10680997864879592, 69772819359471480, 456959583009324200
Offset: 1
A002931
Number of self-avoiding polygons of length 2n on square lattice (not allowing rotations).
Original entry on oeis.org
0, 1, 2, 7, 28, 124, 588, 2938, 15268, 81826, 449572, 2521270, 14385376, 83290424, 488384528, 2895432660, 17332874364, 104653427012, 636737003384, 3900770002646, 24045500114388, 149059814328236, 928782423033008, 5814401613289290, 36556766640745936
Offset: 1
At length 8 there are 7 polygons, consisting of the 2, 1, 4 resp. rotations of:
._. .___. .___.
| | | . | | ._|
| | |___| |_|
|_|
Let p(k,n) be the number of 2k-cycles in the n X n grid graph for n >= k-1. p(k,n) are quadratic polynomials in n, with the first few given by:
p(1,n) = 0,
p(2,n) = 1 - 2*n + n^2,
p(3,n) = 4 - 6*n + 2*n^2,
p(4,n) = 26 - 28*n + 7*n^2,
p(5,n) = 164 - 140*n + 28*n^2,
p(6,n) = 1046 - 740*n + 124*n^2,
p(7,n) = 6672 - 4056*n + 588*n^2,
p(8,n) = 42790 - 22904*n + 2938*n^2,
p(9,n) = 275888 - 132344*n + 15268*n^2,
...
The quadratic coefficients give a(n), so the first few are 0, 1, 2, 7, 28, 124, .... - _Eric W. Weisstein_, Apr 05 2018
- N. Clisby and I. Jensen: A new transfer-matrix algorithm for exact enumerations: self-avoiding polygons on the square lattice, J. Phys. A: Math. Theor. 45 (2012). Also arXiv:1111.5877, 2011. [Extends sequence to a(65)]
- I. G. Enting: Generating functions for enumerating self-avoiding rings on the square lattice, J. Phys. A: Math. Gen. 13 (1980). pp. 3713-3722. See Table 2.
- A. J. Guttmann, Asymptotic analysis of power-series expansions, pp. 1-234 of C. Domb and J. L. Lebowitz, editors, Phase Transitions and Critical Phenomena. Vol. 13, Academic Press, NY, 1989.
- B. D. Hughes, Random Walks and Random Environments, Oxford 1995, vol. 1, p. 461.
- I. Jensen: A parallel algorithm for the enumeration of self-avoiding polygons on the square lattice, J. Phys. A: Math. Gen. 36 (2003). [Extends sequence to a(55)]
- I. Jensen and A. J. Guttmann: Self-avoiding polygons on the square lattice, J. Phys. A: Math. Gen. 32 (1999). Also arXiv:cond-mat/9905291. [Extends sequence to a(45)]
- N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
- N. J. A. Sloane, Table of n, a(n) for n = 1..65 [Formed from tables in several references, the most recent being Clisby-Jensen, 2011/2012]
- Jérôme Bastien, Construction and enumeration of circuits capable of guiding a miniature vehicle, arXiv:1603.08775 [math.CO], 2016. Cites this sequence.
- Nathan Clisby, Lattice enumeration, Slides of talk at Enting fest, CSIRO, Aspendale, 2015; Lattice enumeration [Local copy].
- M. E. Fisher and D. S. Gaunt, Ising model and self-avoiding walks on hypercubical lattices and high density expansions, Phys. Rev. 133 (1964) A224-A239.
- M. E. Fisher and M. F. Sykes, Excluded-volume problem and the Ising model of ferromagnetism, Phys. Rev. 114 (1959), 45-58.
- P. Flajolet and R. Sedgewick, Analytic Combinatorics, 2009; see page 364.
- A. J. Guttmann, Asymptotic analysis of power-series expansions, pp. 1-13, 56-57, 142-143, 150-151 from of C. Domb and J. L. Lebowitz, editors, Phase Transitions and Critical Phenomena. Vol. 13, Academic Press, NY, 1989. (Annotated scanned copy)
- A. J. Guttmann and I. G. Enting, The size and number of rings on the square lattice, J. Phys. A 21 (1988), L165-L172.
- Brian Hayes, How to avoid yourself, American Scientist 86 (1998) 314-319.
- B. J. Hiley and M. F. Sykes, Probability of initial ring closure in the restricted random-walk model of a macromolecule, J. Chem. Phys., 34 (1961), 1531-1537.
- I. Jensen, A parallel algorithm for the enumeration of self-avoiding polygons on the square lattice, Journal of Physics A, Vol. 36 (2003), pp. 5731-5745.
- I. Jensen, More terms
- G. S. Rushbrooke and J. Eve, On Noncrossing Lattice Polygons, Journal of Chemical Physics, 31 (1959), 1333-1334.
- S. G. Whittington and J. P. Valleau, Figure eights on the square lattice: enumeration and Monte Carlo estimation, J. Phys. A 3 (1970), 21-27. See Table 2.
Cf.
A302335 (constant coefficients in p(k,n)).
Cf.
A302336 (linear coefficients in p(k,n)).
A266549
Number of 2n-step 2-dimensional closed self-avoiding paths on square lattice, reduced for symmetry, i.e., where rotations and reflections are not counted as distinct.
Original entry on oeis.org
0, 1, 1, 3, 6, 25, 86, 414, 1975, 10479, 56572, 316577, 1800363, 10419605, 61061169, 361978851
Offset: 1
A334720
Number of 2-dimensional closed-loop self-avoiding paths on a square lattice where each path consists of steps with incrementing length from 1 to n.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 8, 24, 0, 0, 40, 112, 0, 0, 1376, 2008, 0, 0, 21720, 60848, 0, 0, 635544, 1517368, 0, 0, 20008456, 46010640, 0, 0, 640819936, 1571759136, 0, 0, 22704325648, 55436103264
Offset: 1
a(1) to a(6) = 0 as no closed-loop is possible.
a(7) = 8 as there is one path which forms a closed loop which can be walked in 8 different ways on a 2D square lattice. The path is:
.
5
*---.---.---.---.---*
| |
. .
| |
. . 4
| |
6 . .
| | 3
. *---.---.---*
| |
. . 2
| |
*---.---.---.---.---.---.---X---*
7 1
.
See the attached link for text images of the closed loops for other n values.
A001413
Number of 2n-step self-avoiding cycles on the cubic lattice.
Original entry on oeis.org
0, 24, 264, 3312, 48240, 762096, 12673920, 218904768, 3891176352, 70742410800, 1309643747808, 24609869536800, 468270744898944, 9005391024862848, 174776445357365040, 3419171337633496704
Offset: 1
- B. D. Hughes, Random Walks and Random Environments, Oxford 1995, vol. 1, p. 462.
- N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
- M. E. Fisher and M. F. Sykes, Excluded-volume problem and the Ising model of ferromagnetism, Phys. Rev. 114 (1959), 45-58.
- B. J. Hiley and M. F. Sykes, Probability of initial ring closure in the restricted random-walk model of a macromolecule, J. Chem. Phys., 34 (1961), 1531-1537.
- M. F. Sykes, D. S. McKenzie, M. G. Watts, and J. L. Martin, The number of self-avoiding walks on a lattice, J. Phys. A 5 (1972), 661-666.
Cf.
A010566 (for square lattice equivalent).
Cf.
A002896 (without self-avoidance restriction).
-
def A001413(n): # For illustration; becomes slow for n >= 5.
if not hasattr(A:=A001413, 'terms'): A.terms=[]; A.paths=((0,0,0),),
while n > len(A.terms):
for L in (0,1):
new = []; cycles = 0
for path in A.paths:
end = path[-1]
for i in (0,1,2):
for s in (1,-1):
t = tuple(end[j]if j!=i else end[j]+s for j in (0,1,2))
if t not in path: new.append(path+(t,))
elif L and t==path[0]: cycles += 1
A.paths = new
A.terms.append(cycles)
return A.terms[n-1] if n > 1 else 0 # M. F. Hasler, Jun 17 2025
A334756
Irregular table read by rows: T(n,k) is the number of 2n-step closed self-avoiding paths on a 2D square lattice with area k, where k >= n-1.
Original entry on oeis.org
0, 8, 24, 96, 16, 360, 160, 40, 1320, 960, 528, 144, 24, 4872, 4704, 3752, 2016, 840, 224, 56, 18112, 21632, 20992, 15424, 9920, 4832, 2176, 704, 192, 32, 67248, 96192, 107712, 93312, 75096, 50112, 31104, 16416, 7848, 3168, 1080, 288, 72
Offset: 1
For n = 2, total steps = 4, there are 8 different paths with an area of 1. These are the 8 possible ways to walk the polygon:
+---+
| |
+---+
.
For n = 3, total steps = 6, there are 24 different paths with an area of 2. These are the 24 possible ways to walk the polygon:
+---+---+
| |
+---+---+
.
For n = 4, total steps = 8, there are 96 different paths with an area of 3 and 16 different paths with an area of 4. These are the possible ways to walk the polygons:
+---+ +---+---+
| | | |
+ +---+ + +
| | | |
+---+---+ for area = 3 +---+---+ for area = 4
.
For n = 5, total steps = 10, there are 360 different paths with an area of 4, 160 paths with an area of 5 and 40 different paths with an area of 6. These are the possible ways to walk the polygons:
+---+---+---+---+ +---+ +---+ +---+---+
| | | | | | | |
+---+---+---+---+ + +---+---+ +---+ +---+ +---+ +---+
| | | | | |
+---+---+---+ +---+---+---+ +---+---+ for area = 4
.
+---+---+ +---+---+---+
| | | |
+ +---+ + +
| | | |
+---+---+---+ for area = 5 +---+---+---+ for area = 6
.
Table begins:
0;
8;
24;
96,16;
360,160,40;
1320,960,528,144,24;
4872,4704,3752,2016,840,224,56;
18112,21632,20992,15424,9920,4832,2176,704,192,32;
67248,96192,107712,93312,75096,50112,31104,16416,7848,3168,1080,288,72;
249480,415040,526400,514480,468680,373280,281280,189920,120400,69120,36560,17040,7480,2720,880,240,40;
Row sums = A010566.
- A. J. Guttmann and I. G. Enting, The size and number of rings on the square lattice, J. Phys. A 21 (1988), L165-L172.
- Brian Hayes, How to avoid yourself, American Scientist 86 (1998) 314-319.
- B. J. Hiley and M. F. Sykes, Probability of initial ring closure in the restricted random-walk model of a macromolecule, J. Chem. Phys., 34 (1961), 1531-1537.
- Iwan Jensen, Series Expansions for Self-Avoiding Walks
- G. S. Rushbrooke and J. Eve, On Noncrossing Lattice Polygons, Journal of Chemical Physics, 31 (1959), 1333-1334.
- Scott R. Shannon, Data for n=1..12.
A335305
Number of 2-dimensional closed-loop self-avoiding paths on a square lattice where each path consists of steps of length 1 to n which can be taken in any order.
Original entry on oeis.org
0, 0, 0, 0, 0, 0, 16128, 287232, 0, 0, 1843367680, 45589291776, 0, 0
Offset: 1
a(1) to a(6) = 0 as no closed loop paths are possible.
a(7) = 16128. Given the first step has length 1 and is to the right, with the next non-right step being upward, there are 84 different loops. Each of these can be walked in at least 2 ways, with the single perfect square having 48 different possible walks. Each of these in turn can be started with a first step of length 1 to n, and each of these can then be walked in 8 different ways on a 2D square grid. This gives a total number of 7-step paths of 16128. This should be compared with A334720 where for n=7 only 8 paths are possible. See the attached link text file for more details of n=7.
A010567
Number of 2n-step self-avoiding closed paths (or cycles) on the 3-dimensional cubic lattice.
Original entry on oeis.org
6, 24, 264, 3312, 48240, 762096, 12673920, 218904768, 3891176352, 70742410800, 1309643747808, 24609869536800, 468270744898944, 9005391024862848, 174776445357365040, 3419171337633496704
Offset: 1
Cf.
A010568 (analog in 4 dimensions),
A010569 (in 5D),
A010570 (in 6D),
A130706 (in 1D),
A010566 (in 2D, different convention for n=1),
A002896 (closed walks, not necessarily self-avoiding),
A001412 (self-avoiding walks, not necessarily closed),
A039618,
A038515.
-
def A010567(n): # For illustration - becomes slow for n > 5
if not hasattr(A:=A010567, 'terms'):
A.terms=[6]; O=0,; A.paths=[(O*3, (1,)+O*2, t+O)for t in((2,0),(1,1))]
while n > len(A.terms):
for L in (0,1):
new = []; cycles = 0
for path in A.paths:
end = path[-1]
for i in (0,1,2):
for s in (1,-1):
t = tuple(end[j]if j!=i else end[j]+s for j in (0,1,2))
if t not in path: new.append(path+(t,))
elif L and t==path[0]: cycles += 24 if path[2][1] else 6
A.paths = new
A.terms.append(cycles)
return A.terms[n-1] # M. F. Hasler, Jun 17 2025
Name edited and "self-avoiding" added by
M. F. Hasler, Jun 17 2025
A010568
Number of 2n-step self-avoiding closed paths on the 4-dimensional cubic lattice.
Original entry on oeis.org
8, 48, 912, 22944, 652320, 20266368, 669756192, 23146172544, 827460518688, 30378237727200, 1139447186954208, 43501453488658368, 1685588678025512832
Offset: 1
- Nathan Clisby, Richard Liang, and Gordon Slade, Self-avoiding walk enumeration via the lace expansion, J. Phys. A: Math. Theor. 40 (2007), 10973-11017. Table A6 "Enumeration results for d = 4", column p_n, row 2*n gives a(n)/(4*n) for n>1.
- Nathan Clisby, Richard Liang, and Gordon Slade, Self-avoiding walk enumeration via the lace expansion. [Tables in machine-readable format on separate pages.]
- M. E. Fisher and D. S. Gaunt, Ising model and self-avoiding walks on hypercubical lattices and high density expansions, Phys. Rev. 133 (1964) A224-A239.
-
def A010568(n): # For illustration - becomes slow for n > 5
if not hasattr(A:=A010568, 'r'):
A.terms = [8]; O = 0,; I = O*4, (1,*O*3)
A.paths = (*I, (2,*O*3)), (*I, (1,1,0,0))
while n > len(A.terms):
for L in (0, 1):
new=[]; cycles = 0; O=(0,)*4; I = 0,1,2,3
for path in A.paths:
end = path[-1]; weight = 48 if path[2][1] else 8
for i in I:
for s in (1, -1):
t = tuple(end[j]if j!=i else end[j]+s for j in I)
if t not in path: new.append(path+(t,))
elif L and t==O: cycles += weight
A.paths = new
A.terms.append(cycles)
return A.terms[n-1] # M. F. Hasler, Jun 17 2025
"Self-avoiding" inserted in definition by
M. F. Hasler, Jun 18 2025
A337550
Number of closed-loop self-avoiding paths of length 4n on a 2D square lattice where no step can be in the same direction as the previous step.
Original entry on oeis.org
8, 0, 24, 64, 360, 1728, 8624, 43776, 225216, 1173280, 6182704, 32905536, 176657000, 955629920, 5204178360, 28509374976, 157005901896, 868756900608, 4827586102216, 26929911745600, 150750954809952, 846588050093632, 4768197762850608
Offset: 1
a(1) = 8. The single walk of length 4 is:
.
+---+
| |
+---+
.
This can be taken in 8 different ways on a square lattice, giving a total 1*8 = 8.
a(2) = 0 as there is no closed-loop path consisting of 8 steps.
a(3) = 24. There is one walk, ignoring reflection and rotations, with a length of 12. The walk is:
.
+---+
| |
+---+ +---+
| |
+---+ +---+
| |
+---+
.
This can be walked in 3 different ways if the first steps are right and then upward. This path can be then taken in 8 ways on a square lattice, giving a total number of 3*8 = 24.
a(4) = 64. There is one walk, with indistinct reflections and rotations, with a length of 16. The walk is:
.
+---+
| |
+---+ +---+
| |
+---+ +---+
| |
+---+ +---+
| |
+---+
.
This can be walked in 8 different ways if the first steps are right and then upward. This path can be then taken in 8 ways on a square lattice, giving a total number of 8*8 = 64.
.
a(5) = 360. There are four walks, with indistinct reflections and rotations, with a length of 20. The walks, and the different ways they can be taken, are:
.
+---+ +---+
| | | |
+---+ +---+ +---+ +---+
| | | |
+---+ +---+ +---+ +---+
| | | |
+---+ +---+ +---+ +---+
| | | |
+---+ +---+ +---+ +---+
| | x 10 | | x 20
+---+ +---+
+---+ +---+
| | | |
+---+ +---+ +---+ +---+
| | | |
+---+ +---+ +---+ +---+
| | | |
+---+ +---+ +---+ +---+
| | | |
+---+ +---+ +---+ +---+
| | x 5 | | x 10
+---+ +---+
.
Each of these can be walked in 8 different ways on a square lattice, giving a total number of 8*(10+20+5+10) = 360.
See the attached text file for images of the closed-loops for n=1 to n=11.
Showing 1-10 of 17 results.
Comments