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.

Showing 1-10 of 39 results. Next

A151724 First differences of A151723.

Original entry on oeis.org

0, 1, 6, 6, 18, 6, 18, 30, 42, 6, 18, 30, 54, 54, 42, 78, 90, 6, 18, 30, 54, 54, 54, 102, 150, 102, 42, 78, 138, 162, 114, 186, 186, 6, 18, 30, 54, 54, 54, 102, 150, 102, 54, 102, 174, 222, 198, 246, 342, 198, 42, 78, 138, 162, 162, 258, 402, 354, 162, 186
Offset: 0

Views

Author

David Applegate and N. J. A. Sloane, Jun 13 2009

Keywords

Examples

			When written as a triangle:
0,
1,
6,
6,18,
6,18,30,42,
6,18,30,54,54,42,78,90,
6,18,30,54,54,54,102,150,102,42,78,138,162,114,186,186,
...
Right border gives 0 together with A068293. - _Omar E. Pol_, Mar 19 2015
		

References

  • S. M. Ulam, On some mathematical problems connected with patterns of growth of figures, pp. 215-224 of R. E. Bellman, ed., Mathematical Problems in the Biological Sciences, Proc. Sympos. Applied Math., Vol. 14, Amer. Math. Soc., 1962 (see Example 6, page 224).

Crossrefs

Cf. A151723, A170898 (after dividing by 6), A170899, A169759.

A170905 Consider the hexagonal cellular automaton defined in A151723, A151724; a(n) = number of cells that go from OFF to ON at stage n, if we only look at a 60-degree wedge (including the two bounding edges).

Original entry on oeis.org

0, 1, 2, 2, 4, 2, 4, 6, 8, 2, 4, 6, 10, 10, 8, 14, 16, 2, 4, 6, 10, 10, 10, 18, 26, 18, 8, 14, 24, 28, 20, 32, 32, 2, 4, 6, 10, 10, 10, 18, 26, 18, 10, 18, 30, 38, 34, 42, 58, 34, 8, 14, 24, 28, 28, 44, 68, 60, 28, 32, 56, 70, 50, 70, 64, 2, 4, 6, 10, 10, 10, 18, 26, 18, 10, 18, 30, 38, 34, 42
Offset: 0

Views

Author

N. J. A. Sloane, Jan 22 2010

Keywords

Examples

			From _Omar E. Pol_, Feb 12 2013: (Start)
When written as a triangle starting from 1, the right border gives A000079 and row lengths give A011782.
1;
2;
2,4;
2,4,6,8;
2,4,6,10,10,8,14,16;
2,4,6,10,10,10,18,26,18,8,14,24,28,20,32,32;
2,4,6,10,10,10,18,26,18,10,18,30,38,34,42,58,34,8,14,24,28,28,44,68,60,28,32,56,70,50,70,64;
2,4,6,10,10,10,18,26,18,10,18,30,38,34,42,...
... (End)
		

Crossrefs

Cf. A151723, A151724, A170898, A169778, A169780 (partial sums).

Formula

a(n) = A170898(n-2) + 1 for n >= 2.
a(n) = 2*A169778(n) for n != 1.

A169780 Total number of ON cells after n-th stage in one-sixth slice of hexagonal CA defined in A151723 (including both boundaries).

Original entry on oeis.org

0, 1, 3, 5, 9, 11, 15, 21, 29, 31, 35, 41, 51, 61, 69, 83, 99, 101, 105, 111, 121, 131, 141, 159, 185, 203, 211, 225, 249, 277, 297, 329, 361, 363, 367, 373, 383, 393, 403, 421, 447, 465, 475, 493, 523, 561, 595, 637, 695, 729, 737, 751, 775, 803, 831, 875, 943, 1003, 1031
Offset: 0

Views

Author

N. J. A. Sloane, May 11 2010

Keywords

Comments

Partial sums of A170905.

Crossrefs

Formula

a(n) = n + (A151723(n) - 1)/6, n >= 1. - Omar E. Pol, Mar 06 2013

A256138 Total number of ON states after n generations of cellular automaton of A151723 based on hexagons, if we only look at two opposite 120-degree wedges, including the central cell.

Original entry on oeis.org

1, 5, 9, 21, 25, 37, 57, 85, 89, 101, 121, 157, 193, 221, 273, 333, 337, 349, 369, 405, 441, 477, 545, 645, 713, 741, 793, 885, 993, 1069, 1193, 1317, 1321, 1333, 1353, 1389, 1425, 1461, 1529, 1629, 1697, 1733, 1801, 1917, 2065, 2197, 2361, 2589, 2721, 2749, 2801, 2893, 3001, 3109, 3281, 3549, 3785, 3893, 4017, 4237, 4513, 4709, 4985, 5237
Offset: 1

Views

Author

Omar E. Pol, Mar 20 2015

Keywords

Comments

First differs from both A169707 and A246335 at a(12).
First differs from the average of A169707 and A246335 at a(13).
Note that the above mentioned cellular automata work on the square grid.
A256139 gives the number of cells turned ON at the n-th stage.

Crossrefs

Formula

a(n) = 1 + 2*(A151723(n) - 1)/3 = 1 - 4*n + 4*A169780(n).
a(n) = 1 + 4*A169779(n-2), n >= 2.
a(n) = A151723(n) - 2*A169779(n-2), n >= 2.

A256537 First differences of corner sequence A256536 associated with A151723.

Original entry on oeis.org

1, 3, 5, 9, 9, 9, 17, 25, 17, 9, 17, 29, 37, 33, 41, 57, 33, 9, 17, 29, 37, 37, 53, 85, 85, 49, 41, 73, 101, 93, 101, 125, 65, 9, 17, 29, 37, 37, 53, 85, 85, 53, 53, 93, 133, 141, 149, 197, 181, 81, 41, 73, 101, 109, 141, 221, 253, 173, 117, 173, 249, 237, 237, 265, 129
Offset: 1

Views

Author

Omar E. Pol, Apr 02 2015

Keywords

Comments

Number of cells turned ON at n-th stage in one of the outside corners of an infinite hexagon-shaped structure on hexagonal grid.
For an animation see "The movie version" in Links section.

Examples

			Written as an irregular triangle in which the row lengths are the absolute values of the terms of A141531, the sequence begins:
  1;
  3;
  5;
  9, 9;
  9, 17, 25, 17;
  9, 17, 29, 37, 33, 41, 57, 33;
  9, 17, 29, 37, 37, 53, 85, 85, 49, 41, 73, 101, 93, 101, 125, 65;
  9, 17, 29, 37, 37, 53, 85, 85, 53, 53, 93, 133, 141, 149, 197, 181, 81, 41, 73, 101, 109, 141, 221, 253, 173, 117, 173, 249, 237, 237, 265, 129;
  ...
It appears that the right border gives A083318, whose representation in base 2 gives A000533.
		

Crossrefs

Formula

a(1) = 1; a(2) = 3.
It appears that a(n) = 1 + (A151724(n) + A151724(n-1))/3, n >= 3.
It appears that a(n) = 1 + (A151723(n) - A151723(n-2))/3, n >= 3.
It appears that a(n) = 1 + 2*(A170898(n-2) + A170898(n-3)), n >= 3.
a(3) = 5.
It appears that a(n) = 1 + 2*(A169779(n-2) - A169779(n-4)), n >= 4.

A256536 Corner sequence associated with A151723.

Original entry on oeis.org

1, 4, 9, 18, 27, 36, 53, 78, 95, 104, 121, 150, 187, 220, 261, 318, 351, 360, 377, 406, 443, 480, 533, 618, 703, 752, 793, 866, 967, 1060, 1161, 1286, 1351, 1360, 1377, 1406, 1443, 1480, 1533, 1618, 1703, 1756, 1809, 1902, 2035, 2176, 2325, 2522, 2703, 2784, 2825, 2898, 2999, 3108, 3249, 3470, 3723, 3896, 4013, 4186, 4435, 4672, 4909, 5174, 5303
Offset: 1

Views

Author

Omar E. Pol, Apr 01 2015

Keywords

Comments

Total number of ON cells after n generations in one of the outside corners of an infinite hexagon-shaped structure on hexagonal grid.
For an animation see "The movie version" in Links section.
Partial sums of A256537.
See also the Formula section in A256537.
Compare A256138.

Crossrefs

A322662 a(n) is to A151723(n+1) as A319018(n+1) is to A147562(n+1), n >= 0.

Original entry on oeis.org

1, 13, 25, 109, 121, 193, 325, 493, 529, 661, 829, 1129, 1189, 1405, 1657, 2101, 2149, 2281, 2533, 3133, 3337, 3709, 4309, 4909, 5065, 5449, 5917, 6757, 6877, 7381, 7873, 8845, 8893, 9025, 9277, 9877, 10165, 10849, 11737
Offset: 0

Views

Author

Bradley Klee, Dec 22 2018

Keywords

Comments

Also the number of ON cells after n generations in a knight's-move, one-neighbor, accumulative cellular automaton on the hexagonal lattice A_2. Define v(m)=2*sqrt(3)*[cos(m*Pi/3+Pi/6), sin(m*Pi/3+Pi/6)], vL(m)=2*v(m)+v(m+1), vR(m)=2*v(m)+v(m-1). The set of "knight's moves", M={vL(m):m=1,2,..6} U {vR(m):m=1,2,..6}, follows from an analogy between Z^2 and A_2. At each generation all ON cells remain ON while an OFF cell turns ON if and only if it has exactly one M-neighbor in the previous generation.
Fractal Structure Theorem (FST). A pair of lattice vectors M={v1,v2} generate a wedge, W = {x*v1 + y*v2 : x>=0, y>=0}. Define W-Subsets T_k such that T_{k+1}= T_k U { 2^n*v1 + v : v in T_k } U {2^n*v2 + v : v in T_k}, T_0 = { [0,0] }. The limit set T_{oo} is a fractal, and acquires the topology of a binary tree when points are connected by either v1 or v2. As a tree, T_k has height 2^k-1, with 2^k vertices at maximum depth, along a line in the direction v1-v2. Assume a one-M-neighbor, accumulative cellular automaton on W, where all vertices in T_k are ON. In the next generation, the front F_k={2^k*v1+m*(v2-v1) : 0<=m<=2^k} contains only two ON cells, {2^k*v1,2^k*v2}. The spacing, 2^k-1, is wide enough to turn ON two copies of T_k, one starting from each of the two ON cells in F_k. Thus T_{k+1} is also ON. Whenever only T_0 is ON as an initial condition, by induction, T_{oo} is ultimately ON.
The FST applies here to 12 distinct wedges: with {v1,v2}={vL(m), vR(m)} or with (v1,v2)={vL(m), vR(m+1)}, and m=1,2,..6. The triangle inequality ensures that paths including other vectors cannot reach the front F_k by generation 2^k. However, other vectors do generate retrogressive growth, which turns ON many additional cells.
The FST applies to a wide range of Cellular Automata. Wolfram's one-dimensional rule 90 gives the most elementary example where T_{oo} determines every ON cell. The tree structure T_{oo} also occurs with two-dimensional, accumulative, one-neighbor C.A. such as A151723, A319018, A147562. Also try: M={[0,1],[0,-1],[2,1],[-2,-1]}.
According to S. Ulam (cf. Links), some version of the FST was already known to J. Holladay circa 1960.
The FST implies scale resonance between this cellular automaton and the arrowed half hexagon tiling (cf. Links).

Crossrefs

Hexagonal: A151723. Square: A319018, A147562. Tree: A006046, A267700, A038573. A322663.

Programs

  • Mathematica
    HexStar=2*Sqrt[3]*{Cos[#*Pi/3+Pi/6],Sin[#*Pi/3+Pi/6]}&/@Range[0,5];
    MoveSet=Join[2*HexStar+RotateRight[HexStar],2*HexStar+RotateLeft[HexStar]];
    Clear@Pts;Pts[0] = {{0, 0}};
    Pts[n_]:=Pts[n]=With[{pts=Pts[n-1]},Union[pts,Cases[Tally[Flatten[pts/.{x_,y_}:> Evaluate[{x,y}+#&/@MoveSet],1]],{x_,1}:>x]]];Length[Pts[#]]&/@Range[0,32]

A334169 a(n) is the number of ON-cells in the n-th full level of ON-cells of a triangular wedge in the hexagonal grid of A151723 (after 2^k >= n generations have been computed).

Original entry on oeis.org

1, 2, 4, 6, 8, 10, 14, 16, 18, 26, 30, 32, 34, 50, 58, 62, 64, 66, 98, 114, 122, 126, 128, 130, 194, 226, 242, 250, 254, 256, 258, 386, 450, 482, 498, 506, 510, 512, 514, 770, 898, 962, 994, 1010, 1018, 1022, 1024, 1026, 1538, 1794, 1922, 1986, 2018, 2034, 2042, 2046, 2048, 2050, 3074, 3586, 3842
Offset: 0

Views

Author

Hartmut F. W. Hoft, Apr 17 2020

Keywords

Comments

a(n) also is the distance of the full level of ON-cells from the apex of the triangular wedge. Note that 7 is the last generation modifying level 6 and, more generally for example, generation 2^m + 2^(m-1) + 1 is the last generation modifying level 2^m + 2, for m >= 1:
Level Generation ON-cells
1 1 1
2 2 1 1
3 3 1 0 1
4 4 1 1 1 1
5 5 1 0 0 0 1
6 7 1 1 1 1 1 1
7 7 1 0 1 0 1 0 1
8 8 1 1 1 1 1 1 1 1
9 9 1 0 0 0 0 0 0 0 1
10 13 1 1 1 1 1 1 1 1 1 1
...

Examples

			The sequence is the triangle below read by rows, where each row contains m-1 full levels of ON-cells from level 2^(m-1) + 2 through level 2^m, for m >= 2:
m\j   0    1    2    3    4    5    6    7    8
0:    1
1:    2
2:    4
3:    6    8
4:   10   14   16
5:   18   26   30   32
6:   34   50   58   62   64
7:   66   98  114  122  126  128
8:  130  194  226  242  250  254  256
9:  258  386  450  482  498  506  510  512
10: 514  770  898  962  994 1010 1018 1022 1024
...
A formula for the m-1 elements in positions (m, j), 0 <= j <= m-2, in each row m >= 2 is: b(m, j) = 2 + Sum_{k=0..j} 2^(m-k-1).
		

Crossrefs

Cf. A151723.

Programs

  • Mathematica
    triangleRow[m_] := Map[2+Sum[2^(m-k-1), {k, 0, #}]&, Range[0, m-2]]/;m>=2
    triangleRow[10] (* last line in triangle in Comments section *)
    a334169[0]=1; a334169[1]=2; a334169[n_] := Module[{k, j}, k=Floor[(3 + Sqrt[1 + 8(n-2)])/2]; j = n - 2 - (k-2)(k-1)/2; 2 + Sum[2^(k-i-1), {i, 0, j}]]/;n>=2
    Map[a334169,Range[0,66]] (* sequence data *)

Formula

a(0) = 1; a(1) = 2, a(n) = 2 + Sum_{i=0..j} 2^(k-i-1), where k = floor((3 + sqrt(1 + 8*(n-2)))/2) and j = n - 2 - (k-2)*(k-1)/2 for n >= 2.

A169785 A151723(2^n).

Original entry on oeis.org

1, 7, 31, 127, 499, 1975, 7855, 31327, 125119, 500083, 1999507, 7996327
Offset: 0

Views

Author

N. J. A. Sloane, May 12 2010

Keywords

Comments

High water marks in A151723.

Crossrefs

Formula

a(n) = 6*A169781(n) -6*2^n + 1.

Extensions

a(11) from Mike Warburton, Jan 31 2019.

A334164 a(n) is the number of ON-cells in the completed n-th level of a triangular wedge in the hexagonal grid of A151723 (i.e., after 2^k >= n generations of the automaton in A151723 have been computed).

Original entry on oeis.org

1, 2, 2, 4, 2, 6, 4, 8, 2, 10, 6, 10, 4, 14, 8, 16, 2, 18, 10, 16, 8, 20, 12, 22, 6, 26, 14, 22, 8, 30, 16, 32, 2, 34, 18, 28, 16, 34, 18, 32, 14, 40, 22, 34, 16, 42, 24, 44, 10, 50, 26, 40, 20, 48, 28, 50, 14, 58, 30, 46, 16, 62, 32, 64
Offset: 1

Views

Author

Hartmut F. W. Hoft, Apr 17 2020

Keywords

Comments

Conjecture 1: Except for a(2^n + 1) = 2, n >= 1, for odd-numbered completed levels a lower bound of the ratio of ON-cells to the length of the level is (2^n + 2)/(3*2^(n+1) + 1) with limit 1/6, determined by the subsequence of levels starting with: 13, 25, 49, 97, 193, 385, 769, 1537, 3073, ..., and the associated ON-cell counts: 4, 6, 10, 18, 34, 66, 130, 258, 514, ..., as listed in the second column of each of the two triangles below.
The ON-cell counts for the indices in each row define a line of slope 1/2. The formula for the indices of levels in row k >= 2 is L(k, i) = 1 + Sum_{j = 0, ..., i} 2^(k-j), 0 <= i <= k - 2, and the formula for the associated numbers of ON-cells is C(k, i) = 2 + Sum_{j = 1..i} 2^(k-1-j), 0 <= i <= k - 2:
Index of the level: L(k, i) number of ON-cells: C(k, i)
k\i 0 1 2 3 4 5 6 k/i 0 1 2 3 4 5 6
2: 5 2: 2
3: 9 13 3: 2 4
4: 17 25 29 4: 2 6 8
5: 33 49 57 61 5: 2 10 14 16
6: 65 97 113 121 125 6: 2 18 26 30 32
7: 129 193 225 241 249 253 7: 2 34 50 58 62 64
8: 257 385 449 481 497 505 509 8: 2 66 98 114 122 126 128
...
The pairs ( L(k, i), C(k, i) ), for 0 <= i <= k-2, define a line of slope 1/2 for each k >= 3.
For triangle L(k, i): column 0 is A000051(n), n >= 2; column 1 is A181565(n), n >= 3; column 2 is A083686(n), n >= 2; columns 3 is A195744(n), n >= 1; column 4 is A206371(n), n >= 2; column 5 is A196657(n), n >= 1; the bounding diagonal is A036563(n), n >= 3.
For triangle C(k, i): column 1 is A052548(n), n >= 1; column 2 is A164094(n), n >= 1.
Conjecture 2: In an even-numbered completed level 2*n the fraction of ON-cells is bounded below by (23 * 2^n - 24)/(2^(n+5) - 36) with limit 23/32, determined by the subsequence of levels starting with: 28, 92, 220, 476, 988, 2012, 4060, ... .
There are 16 numbers less than 1000 that do not occur as the number of ON-cells in a completed level through level 16384: 136, 164, 330, 334, 402, 444, 526, 570, 598, 604, 614, 714, 740, 822, 832, 878.
Sequence A334169 of even-numbered completed levels in which all cells are ON-cells is a subsequence of this sequence.

Crossrefs

Programs

  • Mathematica
    (* a169781[] and support functions are defined in A169781 and create the list nTriangle *)
    a334164[n_] := Module[{k, levels={}}, a169781[n]; For[k=1, k<=n, k++, AppendTo[levels, Count[nTriangle[[k]], 1] - 2]]; levels]/;(n>=3 && IntegerQ[Log[2,n]])
    a334164[64] (* sequence data *)
Showing 1-10 of 39 results. Next