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 31-40 of 87 results. Next

A007825 Number of n step self-avoiding walks on 3 X infinity grid starting from (0,1).

Original entry on oeis.org

1, 4, 10, 22, 42, 90, 182, 382, 742, 1486, 2866, 5646, 10878, 21198, 40694, 78758, 151018, 291046, 557746, 1072050, 2053586, 3941038, 7547726, 14471102, 27711106, 53099670, 101675030, 194762778, 372916642, 714195242
Offset: 0

Views

Author

Lauren Williams (lwilliam(AT)MIT.EDU)

Keywords

Crossrefs

Cf. A302408 (starting from (0,0)), A038577, A001411.

Extensions

Title improved and more terms from Sean A. Irvine, Feb 02 2018

A323189 Number of n-step point-symmetrical self-avoiding walks on the square lattice.

Original entry on oeis.org

4, 4, 12, 12, 36, 36, 100, 100, 284, 276, 780, 764, 2148, 2084, 5868, 5692, 15956, 15436, 43300, 41812, 117100, 112916, 316076, 304524, 851612, 819372, 2290932, 2203132, 6154284, 5912572, 16514988, 15859820, 44268460, 42480972, 118562580, 113738396, 317268516
Offset: 1

Views

Author

Bert Dobbelaere, Jan 06 2019

Keywords

Comments

Total number of walks as counted in A001411 that have a point of symmetry.
Note that for k > 4, we observe a(2k) < a(2k-1). This can be understood by considering interference between the parts at both sides of the point of symmetry (see illustration).

Crossrefs

Programs

Formula

A037245(n) = (A001411(n) + A323188(n) + a(n) + 4) / 16.
A151538(n) = (A001411(n) + a(n)) / 8.

A358036 Number of n-step self-avoiding walks on a 2D square lattice where the first visited lattice point is directly visible from the last visited lattice point, and were both the visited lattice points and the path between these points are considered when determining the visibility of points.

Original entry on oeis.org

0, 8, 24, 48, 144, 336, 992, 2344, 6760, 16336, 46432, 113904, 320864, 793136, 2222824, 5524040, 15409704, 38493560, 106895408, 268253720, 742053704, 1869175480, 5154271008, 13022699248, 35816428904, 90722285632, 248960813992, 631978627880, 1730939615552
Offset: 1

Views

Author

Scott R. Shannon, Oct 26 2022

Keywords

Comments

Consider a self-avoiding walk on a 2D square lattice where two visited lattice points are considered to be visible from each other if, on drawing a line directly between these two points, the line neither crosses another lattice point which has been visited by previous steps of the walk, nor crosses any line directly connecting two consecutively visited lattice points that forms a part of the path of the walk. This sequence lists the number of n-step self-avoiding walks for which the first visited lattice point of the walk is directly visible from the last visited point. See the examples below.
For the 29-step walk the ratio of the number of end-to-end visible walks to all walks is a(29)/A001411(29) = 1730939615552/6279396229332 ~ 0.276. The value and behavior of this ratio as n -> infinity is unknown.
See A358046 for the number of walks when only the visited lattice points are considered when determining point visibility.

Examples

			a(1) = 0 as after one step in any of the four available directions the first and last point of the walk are directly connected by a line forming the path, so are not considered mutually visible.
a(2) = 8 as there are 4*3 = 12 2-step SAWs, but the four walks which consist of two steps directly along the axes have a visited lattice point directly between the first and last points of the walk, so those two point are not visible from each other. Thus a(2) = 12 - 4 = 8.
a(3) = 24 as there are thirty-six 3-step SAWs which include four walks directly along the axes which have a first point that is not visible from the last. In the first quadrant there is one other walk whose second-step path is intersected by the line between the first and last points of the walk. This walk is:
.
       .---X
       |
   X---.
.
where the first and last points are shown as 'X'. The above walk can be walked in eight ways on the 2D square lattice, so the total number of walks where the first point is visible from the last is 36 - 4 - 1*8 = 36 - 12 = 24.
a(4) = 48 as there are one hundred 4-step SAWs which include four walks directly along the axes which have a first point that is not visible from the last. In the first quadrant there are six other walks which have either previously visited points directly on the line between the first and last points of the walk, or in which this line intersects the path of previous steps. These walks are:
.
   X           .---X        X
   |           |            |
   @---.       @        @---.      .---.---X     .---.           .---X
       |       |        |          |             |   |           |
   X---.   X---.    X---.      X---.         X---@   X   X---.---.
.
where the visited points on the line between the first and last points are shown as '@'. Each of the above walks can be walked in eight ways on the 2D square lattice, so the total number of walks where the first point is visible from the last is 100 - 4 - 6*8 = 100 - 52 = 48.
		

Crossrefs

A358046 Number of n-step self-avoiding walks on a 2D square lattice where the first visited lattice point is directly visible from the last visited lattice point, and were only visited lattice points are considered when determining the visibility of points.

Original entry on oeis.org

4, 8, 32, 64, 240, 480, 1904, 3832, 13992, 29304, 103088, 219416, 765600, 1609176, 5611680, 11785240, 40641032, 86254960, 293015872, 628547128, 2108574592, 4556118936, 15143701888, 32875906992, 108521571624, 236390241280, 776007097296, 1695412485136, 5538287862344
Offset: 1

Views

Author

Scott R. Shannon, Oct 26 2022

Keywords

Comments

Consider a self-avoiding walk on a 2D square lattice where two visited lattice points are considered to be visible from each other if either no other lattice points exist on the line drawn directly between these two lattice points, or if such points exist, they have not been visited by previous steps of the walk. This sequence lists the number of n-step self-avoiding walks for which the first visited lattice point of the walk is directly visible from the last visited point. See the examples below.
For the walks studied there is a difference in the ratio for the number of end-to-end visible walks to all walks for steps with even-n to odd-n. For example a(28)/A001411(28) ~ 0.72, while a(29)/A001411(29) ~ 0.88. The values and behavior of these ratios as n -> infinity is unknown.
See A358036 for the number of walks where the path between lattice points is also considered when determining point visibility.

Examples

			a(1) = 4 as after one step in any of the four available directions the lattice point stepped to and the starting point have no other points between them, so the first point is visible from the last for all four walks.
a(2) = 8 as there are 4*3 = 12 2-step SAWs, but the four walks which consist of two steps directly along the axes have a visited lattice point directly between the first and last points of the walk, so those two point are not visible from each other. Thus a(2) = 12 - 4 = 8.
a(3) = 32 as there are thirty-six 3-step SAWs, and of those, only the four walks directly along the axes have visited points between the first and last points, so a(3) = 36 - 4 = 32.
a(4) = 64 as there are one hundred 4-step SAWs which include four walks directly along the axes which have a first point that is not visible from the last. In the first quadrant there are four other walks which have points on the line between the first and last point, and these points have been visited by earlier steps. These walks are:
.
     X            .---X          X
     |            |              |
     @---.        @          @---.       .---.
         |        |          |           |   |
     X---.    X---.      X---.       X---@   X
.
where the first and last points are shown as 'X' and where the visited points on the line between these two points are shown as '@'. Each of the above walks can be walked in eight ways on the 2D square lattice, so the total number of walks where the first point is visible from the last is 100 - 4 - 4*8 = 100 - 36 = 64.
		

Crossrefs

A002900 Number of n-step walks on square lattice.

Original entry on oeis.org

2, 6, 18, 50, 142, 390, 1086, 2958, 8134, 22050, 60146, 162466, 440750, 1187222, 3208298, 8622666, 23233338, 62329366, 167558310, 448848582, 1204403014, 3222280242, 8633306906, 23073198658, 61740677454, 164856393110, 440658745814
Offset: 1

Views

Author

Keywords

References

  • 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).

Crossrefs

A001411 is the main entry for this sequence.
Cf. A046661.

Programs

  • Mathematica
    (* b = A001411 *) mo = Tuples[{-1, 1}, 2]; b[0] = 1; b[tg_, p_:{{0, 0}}] := b[tg, p] = Block[{e, mv = Complement[Last[p] + #& /@ mo, p]}, If[tg == 1, Length[mv], Sum[b[tg-1, Append[p, e]], {e, mv}]]];
    a[n_] := b[n]/2;
    Table[an = a[n]; Print[an]; an, {n, 1, 16}] (* Jean-François Alcover, Nov 02 2018, after Giovanni Resta in A001411 *)

Formula

a(n) = (1/2) * A001411(n).

Extensions

More terms from Hugo Pfoertner, Dec 23 2002

A151538 Number of 1-sided strip polyedges with n cells.

Original entry on oeis.org

1, 2, 6, 14, 40, 102, 284, 752, 2069, 5547, 15134, 40712, 110456, 297066, 802808, 2156378, 5810329, 15584271, 41894990, 112217372, 301115391, 805584175, 2158366236, 5768337730, 15435275815, 41214200699, 110164972820, 293922598172, 784925297952, 2092745480990, 5584229143243
Offset: 1

Views

Author

Ed Pegg Jr, May 13 2009

Keywords

Comments

With A001411 as main input and counting the symmetrical shapes separately, higher terms can be computed efficiently (see formula). - Bert Dobbelaere, Jan 07 2019

Crossrefs

Formula

a(n) = (A001411(n) + A323189(n)) / 8. - Bert Dobbelaere, Jan 07 2019

Extensions

a(13)-a(19) from Joseph Myers, Oct 03 2011
More terms using formula by Bert Dobbelaere, Jan 07 2019

A249795 Self-avoiding walks with n steps on the truncated trihexagonal tiling or (4,6,12) lattice.

Original entry on oeis.org

1, 3, 6, 12, 22, 42, 78, 146, 264, 490, 894, 1646, 3012, 5528, 10086, 18476, 33648, 61472, 111702, 203552, 368872, 670538, 1213118, 2201208, 3980380, 7214200, 13044916, 23627064, 42714902, 77316682, 139695536, 252664214, 456138008, 824332804, 1487051098, 2685425808
Offset: 0

Views

Author

Mike Zabrocki, Nov 05 2014

Keywords

Comments

A self-avoiding walk is a sequence of adjacent points in a lattice that are all distinct.
The truncated trihexagonal tiling or (4,6,12) lattice is one of eight semi-regular tilings of the plane. Each vertex of the lattice is adjacent to a square, hexagon and a 12-sided polygon with sides of equal length.
It is also the Cayley graph of the affine G2 Coxeter group generated by three generators {s_0, s_1, s_2} with the relations (s_0 s_2)^2 = (s_0 s_1)^3 = (s_1 s_2)^6 = 1.

Examples

			There are 6 paths of length 2 on the (4,6,12) 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

Cf. A001411 (square lattice), A001334 (hexagonal lattice), A249565 (truncated square tiling), A326743 (dual, degree 12 vertex), A326744 (dual, degree 6 vertex), A326745 (dual, degree 4 vertex).

Extensions

a(15)-a(19) corrected by Mike Zabrocki and Sean A. Irvine, Jul 25 2019
More terms from Sean A. Irvine, Jul 25 2019

A302408 Number of n step self-avoiding walks on 3 X infinity grid starting from (0,0).

Original entry on oeis.org

1, 3, 7, 18, 40, 86, 170, 350, 688, 1394, 2702, 5338, 10278, 20078, 38578, 74820, 143496, 276890, 530626, 1020774, 1955400, 3754560, 7190520, 13790666, 26407852, 50612412, 96911566, 185660272, 355485362, 680860212, 1303623528, 2496462996
Offset: 0

Views

Author

Sean A. Irvine, Apr 07 2018

Keywords

Crossrefs

Cf. A007825 (starting from (0,1)), A038577, A001411.

A322419 Number of n-step self-avoiding walks on L-lattice.

Original entry on oeis.org

1, 2, 4, 8, 12, 20, 32, 52, 84, 136, 220, 356, 564, 904, 1448, 2320, 3684, 5872, 9376, 14960, 23688, 37652, 59912, 95316, 150744, 239080, 379528, 602424, 951788, 1507136, 2388252, 3784344, 5973988, 9447880, 14950796, 23658540, 37321752, 58965260, 93206864, 147333080, 232286272
Offset: 0

Views

Author

Robert FERREOL, Dec 07 2018

Keywords

Comments

The L-lattice is an oriented square lattice in which each step must be followed by a step perpendicular to the preceding one.

Examples

			a(1) = 2 because there are only two possible directions at each intersection; for the same reason a(2) = 2*2 and a(3) = 2*4 ; but a(4) = 12 (not 16) because four paths return to the starting point and are not self-avoiding. See the 12 paths under "links".
		

Crossrefs

Cf. A001411 (square lattice), A117633 (Manhattan lattice), A189722, A004277 (coordination sequence), A151798.

Programs

  • Maple
    walks:=proc(n)
        option remember;
        local i,father,End,X,walkN,dir,u,x,y;
        if n=1 then [[[0,0]]] else
             father:=walks(n-1):
             walkN:=NULL:
             for i to nops(father) do
                u:=father[i]:End:=u[n-1]:if n mod 2 = 0 then
                dir:=[[1,0], [-1, 0]] else dir := [[0,1], [0, -1]] fi:
                for X in dir do
                 if not(member(End+X,u)) then walkN:=walkN,[op(u),End+X] fi;
                 od od:
             [walkN] fi end:
    n:=5:L:=walks(n):N:=nops(L);
    # This program explicitly gives the a(n) walks.
  • Mathematica
    mo = {{1, 0}, {-1, 0}}; moo = {{0, 1}, {0, -1}}; a[0] = 1;
    a[tg_, p_: {{0, 0}}] := Module[{e, mv},
    If[Mod[tg, 2] == 0, mv = Complement[Last[p] + # & /@ mo, p],
    mv = Complement[Last[p] + # & /@ moo, p]];
    If[tg == 1, Length@mv, Sum[a[tg - 1, Append[p, e]], {e, mv}]]];
    a /@ Range[0, 20] (* after the program from Giovanni Resta at A001411 *)
  • Python
    def add(L, x):
        M = [y for y in L]
        M.append(x)
        return M
    plus = lambda L, M: [x + y for x, y in zip(L, M)]
    mo = [[1, 0], [-1, 0]]
    moo = [[0, 1], [0, -1]]
    def a(n, P=[[0, 0]]):
        if n == 0:
            return 1
        if n % 2 == 0:
            mv1 = [plus(P[-1], x) for x in mo]
        else:
            mv1 = [plus(P[-1], x) for x in moo]
        mv2 = [x for x in mv1 if x not in P]
        if n == 1:
            return len(mv2)
        else:
            return sum(a(n - 1, add(P, x)) for x in mv2)
    [a(n) for n in range(21)]

Formula

a(n) = 4*A189722(n) for n >= 2.
It is proved that a(n)^(1/n) has a limit mu called the "connective constant" of the L-lattice; approximate value of mu: 1.5657. It is only conjectured that a(n + 1) ~ mu * a(n).

A323188 Number of n-step mirror-symmetrical self-avoiding walks on the square lattice.

Original entry on oeis.org

4, 12, 12, 28, 28, 76, 76, 188, 196, 516, 524, 1292, 1356, 3500, 3596, 8908, 9380, 23940, 24796, 61500, 64900, 164612, 171244, 424940, 449140, 1134772, 1184204, 2939212, 3109644, 7834764, 8196100, 20345316, 21539420, 54156316, 56762036, 140908948, 149255908
Offset: 1

Views

Author

Bert Dobbelaere, Jan 06 2019

Keywords

Comments

Total number of walks as counted in A001411 that have an axis of symmetry, either parallel to an axis or at a 45-degree angle (the latter only possible for even n).

Crossrefs

Programs

Formula

A037245(n) = (A001411(n) + a(n) + A323189(n) + 4) / 16.
Previous Showing 31-40 of 87 results. Next