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.

Previous Showing 51-60 of 87 results. Next

A006816 Related to self-avoiding walks on square lattice.

Original entry on oeis.org

1, 6, 29, 108, 393, 1298, 4271, 13312, 41469, 125042, 376747, 1111144, 3274475, 9505054, 27573041, 79086964, 226727667, 644301026, 1830188555, 5162408200, 14556754485, 40811281170
Offset: 1

Views

Author

Keywords

Comments

After constructing a self-avoiding walk, bridge together all adjacent neighboring sites on the walk. This sequence is sum of the total number of links after adding bridges across all walks of length n. - Sean A. Irvine, Aug 09 2017

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Extensions

a(19)-a(22) from Sean A. Irvine, Aug 09 2017

A046171 Number of inequivalent self-avoiding walks of length n on a 2-D lattice which start at origin, take first step in {+1,0} direction and if any steps are vertical, a step up is taken before a step down.

Original entry on oeis.org

1, 2, 5, 13, 36, 98, 272, 740, 2034, 5513, 15037, 40617, 110188, 296806, 802075, 2155667, 5808335, 15582342, 41889578, 112212146, 301100754, 805570061, 2158326727, 5768299665, 15435169364, 41214098278, 110164686454
Offset: 1

Views

Author

Keywords

Crossrefs

Formula

a(n) = (A001411(n)+4)/8.

Extensions

More terms from Stephen A. Silver

A249565 Number of self-avoiding walks on the truncated square tiling with n steps.

Original entry on oeis.org

1, 3, 6, 12, 22, 42, 80, 152, 284, 536, 988, 1848, 3412, 6352, 11724, 21718, 39952, 73808, 135668, 250188, 459172, 844888, 1548608, 2845186, 5211548, 9563768, 17501272, 32079524, 58660712, 107425356, 196320596, 359232144, 656099656, 1199676412, 2189995764
Offset: 0

Views

Author

Mike Zabrocki, Nov 01 2014

Keywords

Comments

A self-avoiding walk is a sequence of adjacent points in a lattice that are all distinct. The truncated square tiling is a semiregular tiling by regular polygons of the Euclidean plane with one square and two octagons on each vertex. The edge lattice is also referred to as (4,8^2) lattice. It is also the Cayley graph of the Coxeter group generated by three generators {s_0, s_1, s_2} with the relations s_i^2 = 1, s_0 s_2 = s_2 s_0, (s_i s_{i+1})^4 = 1 for i=0,1.
It is conjectured that a(n) is approximately mu^n*n^{11/32} for large n where mu is the connective constant and mu is approximately 1.80883001(6).

Examples

			There are 6 paths of length 2 in the truncated square lattice corresponding to the reduced words in the Coxeter group s_0 s_2, s_0 s_1, s_1 s_2, s_1 s_0, s_2 s_0, s_2 s_1.
		

Crossrefs

Extensions

a(20)-a(21) from Mike Zabrocki, Nov 08 2014
a(19)-a(21) corrected based on Alm (2005) and Lin & Chang (2002), more terms added by Andrey Zabolotskiy, Oct 18 2024

A336818 Table read by antidiagonals: T(b,n) is the number of n-step self avoiding walks on a 2D square grid confined inside a square box of size 2b X 2b where the walk starts at the middle of the box.

Original entry on oeis.org

4, 8, 4, 8, 12, 4, 8, 32, 12, 4, 8, 64, 36, 12, 4, 8, 104, 96, 36, 12, 4, 8, 176, 240, 100, 36, 12, 4, 8, 296, 520, 280, 100, 36, 12, 4, 0, 496, 1048, 728, 284, 100, 36, 12, 4, 0, 848, 2104, 1816, 776, 184, 100, 36, 12, 4, 0, 1392, 4168, 4176, 2112, 780, 284, 100, 36, 12, 4
Offset: 1

Views

Author

Scott R. Shannon, Aug 06 2020

Keywords

Examples

			T(1,3) = 8. The one 3-step walk taking a first step to the right followed by a step upward is:
.
+--+
   |
*--+
.
This walk can take a downward second step, and also have a first step in the four possible directions, given a total of 1*2*4 = 8 total walks.
.
The table begins:
.
4  8  8   8   8   8    8    8     0     0      0      0      0       0       0...
4 12 32  64 104 176  296  496   848  1392   2280   3624   5472    8200   10920...
4 12 36  96 240 520 1048 2104  4168  8288  16488  32536  64680  126560  248328...
4 12 36 100 280 728 1816 4176  9304 20400  44216  95680 206104  442984  953720...
4 12 36 100 284 776 2112 5448 13704 32824  77232 178552 409144  932152 2113736...
4 12 36 100 284 780 2168 5848 15672 40472 102816 252992 615328 1472808 3501200...
4 12 36 100 284 780 2172 5912 16192 43360 115328 298856 765864 1919328 4770784...
4 12 36 100 284 780 2172 5916 16264 44016 119392 318328 843848 2194920 5664648...
4 12 36 100 284 780 2172 5916 16268 44096 120200 323856 872920 2321600 6146400...
4 12 36 100 284 780 2172 5916 16268 44100 120288 324832 880232 2363520 6344240...
4 12 36 100 284 780 2172 5916 16268 44100 120292 324928 881392 2372968 6402928...
4 12 36 100 284 780 2172 5916 16268 44100 120292 324932 881496 2374328 6414896...
4 12 36 100 284 780 2172 5916 16268 44100 120292 324932 881500 2374440 6416472...
4 12 36 100 284 780 2172 5916 16268 44100 120292 324932 881500 2374444 6416592...
4 12 36 100 284 780 2172 5916 16268 44100 120292 324932 881500 2374444 6416596...
...
		

Crossrefs

Cf. A001411 (b->infinity), A336872 (start on edge of box), A116903, A038373.

Formula

For n <= b, T(b,n) = A001411(n).
For n >= b^2, T(b,n) = 0 as the walks have more steps than there are free grid points inside the box.

A337317 The number of stable vertically balanced self-avoiding walks of length n on the upper half-plane of a 2D square lattice where the nodes and connecting rods have equal mass.

Original entry on oeis.org

2, 4, 10, 24, 60, 138, 348, 832, 2104, 5192, 13178, 32662, 82890, 207888, 529738, 1339188, 3424526, 8698382, 22294906, 56836056, 145982928, 373363770, 960834764, 2463930512, 6351046936, 16322104184, 42131167144, 108478565772, 280360764620
Offset: 1

Views

Author

Scott R. Shannon, Sep 28 2020

Keywords

Comments

This is a variation of A337860 where only walks which are stable against a small perturbation from either left or right are counted. This means any walks which have their center-of-mass directly above the extrema of the nodes touching the y=0 starting line are not counted, e.g. a walk directly up from the first node.
See A337860 for further details and examples of the walks in this sequence.

Examples

			a(1) = 2. The two stable walks are a single step left or right from the first node. The walk consisting of a single vertical step is not counted, as it has its center-of-mass directly above the single node touching the y=0 line and will thus topple with a slight perturbation from either the left or right directions.
a(3) = 10. The stable 3-step walks with a first step up or to the right are:
.
                                            +
+---+                         +  +---+      |
|   |  X---+---+---+          |      |      +
X   +                 X---+---+  X---+      |
                                        X---+
.
These walks can also be taken with a first or second step to the left, giving a total number of stable walks of 2*5 = 10.
The semi-stable 3-step walks which are not counted in this sequence, but are counted in A337860, are:
.
                        +
                        |
    +---+   +---+       +
    |           |       |
X---+           +---X   +
                        |
                        X
.
as a slight perturbation from the left, right, and left or right would topple the first, second and third structure respectively.
		

Crossrefs

Cf. A337860 (count semi-stable walks), A335780, A337761, A116903, A116904, A001411.

A337860 The number of vertically balanced self-avoiding walks of length n on the upper half-plane of a 2D square lattice where the nodes and connecting rods have equal mass.

Original entry on oeis.org

3, 5, 13, 27, 65, 145, 361, 855, 2163, 5303, 13419, 33195, 84159, 210765, 536871, 1356153, 3466533, 8799247, 22541583, 57428441, 147423495, 376838119, 969292869, 2484478265, 6401330591, 16445203213, 42434086359, 109225591309, 282209330237
Offset: 1

Views

Author

Scott R. Shannon, Sep 27 2020

Keywords

Comments

Consider a self-avoiding walk in the upper half-plane on a 2D square lattice where each visited node is given a fixed mass and each node is connected by a rod of the same mass. Let the resulting lattice structure be free to move in a downward gravitational field. This sequence gives the number of walks of length n such that the structure will remain in place and will not topple given no sideways perturbations.
For a walk to be stable requires the center-of-mass of the resulting structure to be above or inside the extrema of the horizontal positions of the nodes that are on the y=0 line where the walk begins. Here we assume no perturbations so allow walks which would topple if either a left or right perturbation acts, for example we allow a directly vertical walk above the starting node. For the number of walks where such semi-stable structures are not counted see A337317.
We also assume the nodes and the rods are of equal mass. This is required as some structures exist which are either stable or would topple depending on the relative mass of the nodes and rods. For example the 8-step walk:
.
+---+---+
|
+
|
+---+
|
X---+---+
.
Considering only the nodes the center-of-mass is at position 17/9 (~1.88) relative to the starting x=0 'X' position - this is between the x=0 and x=2 extrema of the nodes at y=0 and is thus stable. Considering only the rods the center-of-mass is at position 33/16 (~2.06) relative to 'X' - this is to the right of the node at x=2 and thus the structure would topple to the right. To avoid such issues we assume both rods and nodes are of equal mass. Given that, the center-of-mass of this walk is at 67/34 (~1.97) and is thus stable.
The number of stable walks in this sequence does not decrease as rapidly as compared to the number of hanging 2D stable walks of A335780. For example the total number of 2D self-avoiding walks on a square lattice in the upper half plane for n=29 is A116903(27) = 1577923781445. The total number of vertically stable walks here for n=29 is 282209330237, indicating about 1 in 6 walks are stable. This is expected as many otherwise unstable walks becomes stable if some node touches the y=0 line away from the starting node; this becomes relatively common as n increases. Any of the symmetrical walks in A335780 which have no nodes above the starting node will also be in this sequence, inverted from top to bottom.

Examples

			a(3) = 13. The stable 3-step walks with a first step upward or to the right are:
.
                                                              +
                                                          +   |
                        +      +---+   +---+   +---+      |   +
                        |      |           |   |   |      +   |
X---+---+---+   X---+---+  X---+       X---+   X   +      |   +
                                                      X---+   |
                                                              X
.
The first six walks can also be taken with a first or second step to the left, giving a total number of stable walks of 2*6 + 1 = 13. Note that the third walk would topple with a perturbation to the right, and the final walk would topple with a perturbation to either the left or right.
The three non-stable 3-step walks in the first quadrant are:
.
    +               +---+
    |               |
+---+   +---+---+   +
|       |           |
X       X           X
.
These can also be taken with a second step to the left, giving six unstable walks.
a(23) = 969292869. An example of a stable 23-step walk with a base of 1 unit is:
.
                        +---+
                        |   |
    +---+---+---+---+---+   +
    |                       |
+---+               +---+   +
|                   |   |   |
+---+---+---+   +---+   +---+
            |   |
            +   X
.
		

Crossrefs

Cf. A337317 (do not count semi-stable walks), A335780, A337761, A116903, A116904, A001411.

A359073 Sum of square end-to-end displacements over all n-step self-avoiding walks of A359709.

Original entry on oeis.org

0, 4, 16, 44, 160, 556, 1744, 12252, 15840, 98876, 138160, 709900, 1155616, 5098260, 11820656, 37085908, 111147104, 281078764, 932893104, 2255139900, 7295211968, 18928121236, 54864568720, 160016686500, 404167501888, 1331607134172, 2945597090384, 10805511468852, 21448743511648
Offset: 0

Views

Author

Scott R. Shannon, Jan 12 2023

Keywords

Crossrefs

A359709 Number of n-step self-avoiding walks on a 2D square lattice whose end-to-end distance is an integer.

Original entry on oeis.org

1, 4, 4, 12, 28, 76, 164, 732, 1044, 4924, 6724, 30636, 43972, 190516, 313996, 1197908, 2284260, 7678188, 16257604, 50524252, 113052396, 341811828, 773714436, 2358452388, 5245994292, 16447462492, 35395532236, 115129727188, 238542983748, 804980005276
Offset: 0

Views

Author

Scott R. Shannon, Jan 12 2023

Keywords

Comments

The walks counted are all those directly along and x or y axes, and all walks whose final (|x|,|y|) lattice point are the two legs of a Pythagorean triple.

Examples

			a(3) = 12 as, in the first quadrant, there is one 3-step SAW whose end-to-end distance is an integer (1 unit):
.
     X---.
         |
     X---.
.
This can be walked in 8 different ways on a 2D square lattice. There are also the four walks directly along the x and y axes, giving a total of 8 + 4 = 12 walks.
		

Crossrefs

A078526 Probability P(n) of the occurrence of a 2D self-trapping walk of length n.

Original entry on oeis.org

1, 5, 31, 173, 1521, 4224, 33418, 184183, 1370009, 3798472, 26957026, 150399317, 1034714947, 2897704261, 19494273755, 109619578524, 724456628891
Offset: 7

Views

Author

Hugo Pfoertner, Nov 27 2002

Keywords

Comments

This is a cleaner representation than the one given by A077483 and A077484, using the upper bound for the denominator A077484 given in A076874.

Examples

			See under A077483; the inclusion of a(7)=1 is somewhat artificial due to the occurrence of 2^(-1) in the denominator: P(7)=a(7)/(3^6 *2^(7-floor(sqrt(29))-3))= 1/(729*2^(7-5-3))=1/(729*2*(-1))=2/729 See also: "Count self-trapping walks up to length 23" provided at given link.
		

References

Crossrefs

Programs

  • Fortran
    c Program provided at given link

Formula

P(n) = a(n) / ( 3^(n-1) * 2^(n-floor((4*n+1)^(1/2))-3) ) = a(n) / ( 3^(n-1) * 2^(A076874(n)-3) )

A078527 Number of maximally 2-constrained walks on square lattice trapped after n steps.

Original entry on oeis.org

0, 1, 9, 7, 3, 36, 26, 13, 1, 100, 54, 19, 7, 247, 147, 68, 27, 12, 552, 294, 151
Offset: 7

Views

Author

Hugo Pfoertner, Nov 27 2002

Keywords

Comments

In a 2D self-avoiding walk there may be steps, where the number of free target positions is less than 3. A step is called k-constrained, if only k<3 neighbors were not visited before. Self-trapping occurs at step n (the next step would have k=0). A maximally 2-constrained n-step walk contains n-floor((4*n+1)^(1/2))-2 steps with k=2 (conjectured). The first step is chosen fixed (0,0)->(1,0), all other steps have k=3. This sequence counts those walks among all possible self-trapping n-step walks A077482(n).

Examples

			a(7)=0 because the unique shortest possible self-trapping walk has no constrained steps. Of the A077482(10)=25 self-trapping walks of length n=10, there are A078528(10)=5 unconstrained walks (9 steps with free choice of direction). a(10)=7 walks are maximally 2-constrained containing 2 steps with k=2. Among the remaining 13 walks there are 11 walks having 1 step with k=2 and 2 walks have 1 forced step k=1. An illustration of all unconstrained and all maximally 2-constrained 10-step walks is given in the first link under "5 Unconstrained and 7 maximally 2-constrained walks of length 10". a(15)=1 is a unique ("perfectly constrained") walk visiting all lattice points of a 4*4 square, see "Examples for walks with the maximum number of constrained steps" provided at the given link.
		

Crossrefs

Programs

  • Fortran
    c Program provided at given link

Extensions

a(24)-a(27) from Sean A. Irvine, Jul 04 2025
Previous Showing 51-60 of 87 results. Next