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-8 of 8 results.

A160239 Number of "ON" cells in a 2-dimensional cellular automaton ("Fredkin's Replicator") evolving according to the rule that a cell is ON in a given generation if and only if there was an odd number of ON cells among the eight nearest neighbors in the preceding generation, starting with one ON cell.

Original entry on oeis.org

1, 8, 8, 24, 8, 64, 24, 112, 8, 64, 64, 192, 24, 192, 112, 416, 8, 64, 64, 192, 64, 512, 192, 896, 24, 192, 192, 576, 112, 896, 416, 1728, 8, 64, 64, 192, 64, 512, 192, 896, 64, 512, 512, 1536, 192, 1536, 896, 3328, 24, 192, 192, 576, 192, 1536, 576, 2688, 112, 896, 896, 2688, 416, 3328, 1728, 6784
Offset: 0

Views

Author

John W. Layman, May 05 2009

Keywords

Comments

This is the odd-rule cellular automaton defined by OddRule 757 (see Ekhad-Sloane-Zeilberger "Odd-Rule Cellular Automata on the Square Grid" link). - N. J. A. Sloane, Feb 25 2015
The partial sums are in A245542, in which the structure also looks like an irregular stepped pyramid. - Omar E. Pol, Jan 29 2015

Examples

			From _Omar E. Pol_, Jul 22 2014 (Start):
Written as an irregular triangle in which row lengths is A011782 the sequence begins:
1;
8;
8, 24;
8, 64, 24, 112;
8, 64, 64, 192, 24, 192, 112, 416;
8, 64, 64, 192, 64, 512, 192, 896, 24, 192, 192, 576, 112, 896, 416, 1728;
8, 64, 64, 192, 64, 512, 192, 896, 64, 512, 512, 1536, 192, 1536, 896, 3328, 24, 192, 192, 576, 192, 1536, 576, 2688, 112, 896, 896, 2688, 416, 3328, 1728, 6784;
(End)
Right border gives A246030. - _Omar E. Pol_, Jan 29 2015 [This is simply a restatement of the theorem that this sequence is the Run Length Transform of A246030. - _N. J. A. Sloane_, Jan 29 2015]
.
From _Omar E. Pol_, Mar 18 2015 (Start):
Also, the sequence can be written as an irregular tetrahedron as shown below:
1;
..
8;
..
8;
24;
.........
8,    64;
24;
112;
...................
8,    64,  64, 192;
24,  192;
112;
416;
.....................................
8,    64,  64, 192, 64, 512,192, 896;
24,  192, 192, 576;
112, 896;
416;
1728;
.......................................................................
8,    64,  64, 192, 64, 512,192, 896,64,512,512,1536,192,1536,896,3328;
24,  192, 192, 576,192,1536,576,2688;
112, 896, 896,2688;
416,3328;
1728;
6784;
...
Apart from the initial 1, we have that T(s,r,k) = T(s+1,r,k). On the other hand, it appears that the configuration of ON cells of T(s,r,k) is also the central part of the configuration of ON cells of T(s+1,r+1,k).
(End)
		

Crossrefs

Cf. A122108, A147562, A164032, A245180 (gives a(n)/8, n>=2).
Cf. also A245542 (Partial sums), A245543, A083424, A245562, A246030, A254731 (an "even-rule" version).

Programs

  • Haskell
    import Data.List (transpose)
    a160239 n = a160239_list !! n
    a160239_list = 1 : (concat $
       transpose [a8, hs, zipWith (+) (map (* 2) hs) a8, tail a160239_list])
       where a8 = map (* 8) a160239_list;
             hs = h a160239_list; h (_:x:xs) = x : h xs
    -- Reinhard Zumkeller, Feb 13 2015
    
  • Maple
    # From N. J. A. Sloane, Jan 19 2015:
    f:=proc(n) option remember;
    if n=0 then RETURN(1);
    elif n mod 2 = 0 then RETURN(f(n/2))
    elif n mod 4 = 1 then RETURN(8*f((n-1)/4))
    else RETURN(f(n-2)+2*f((n-1)/2)); fi;
    end;
    [seq(f(n),n=0..255)];
  • Mathematica
    A160239[n_] :=
    CellularAutomaton[{52428, {2, {{2, 2, 2}, {2, 1, 2}, {2, 2, 2}}}, {1, 1}}, {{{1}}, 0}, {{n}}][[1]] // Total@*Total (* Charles R Greathouse IV, Aug 21 2014 *)
    ArrayPlot /@ CellularAutomaton[{52428, {2, {{2, 2, 2}, {2, 1, 2}, {2, 2, 2}}}, {1, 1}}, {{{1}}, 0}, 30] (* Charles R Greathouse IV, Aug 21 2014 *)
  • PARI
    A160239=[];a(n)={if(n>#A160239,A160239=concat(A160239,vector(n-#A160239)),n||return(1);A160239[n]&&return(A160239[n]));A160239[n]=if(bittest(n,0),if(bittest(n,1),a(n-2)+2*a(n\2),a(n\4)*8),a(n\2))} \\ M. F. Hasler, May 10 2016

Formula

a(0) = 1; a(2t)=a(t), a(4t+1)=8*a(t), a(4t+3)=2*a(2t+1)+8*a(t) for t >= 0. (Conjectured by Hrothgar, Jul 11 2014; proved by N. J. A. Sloane, Oct 04 2014.)
For n >= 2, a(n) = 8^r * Product_{lengths i of runs of 1 in binary expansion of n} R(i), where r is the number of runs of 1 in the binary expansion of n and R(i) = A083424(i-1) = (5*4^(i-1)+(-2)^(i-1))/6. Note that row i of the table in A245562 lists the lengths of runs of 1 in binary expansion of i. Example: n=7 = 111 in binary, so r=1, i=3, R(3) = A083424(2) = 14, and so a(7) = 8^1*14 = 112. That is, this sequence is the Run Length Transform of A246030. - N. J. A. Sloane, Oct 04 2014
The Run Length Transform of a sequence {S(n), n>=0} is defined to be the sequence {T(n), n>=0} given by T(n) = Product_i S(i), where i runs through the lengths of runs of 1's in the binary expansion of n. E.g. 19 is 10011 in binary, which has two runs of 1's, of lengths 1 and 2. So T(19) = S(1)*S(2). T(0)=1 (the empty product). - N. J. A. Sloane, Aug 25 2014

Extensions

Offset changed to 1 by Hrothgar, Jul 11 2014
Offset reverted to 0 by N. J. A. Sloane, Jan 19 2015

A319018 Number of ON cells after n generations of two-dimensional automaton based on knight moves (see Comments for definition).

Original entry on oeis.org

0, 1, 9, 17, 57, 65, 121, 145, 265, 273, 329, 377, 617, 657, 865, 921, 1201, 1209, 1265, 1313, 1553, 1617, 2001, 2121, 2689, 2745, 3009, 3153, 3841, 3953, 4513, 4649, 5297, 5305, 5361, 5409, 5649, 5713, 6097, 6233, 6881, 6953, 7353, 7585, 8713, 8913, 9961
Offset: 0

Views

Author

Rémy Sigrist, Sep 08 2018

Keywords

Comments

The cells are the squares of the standard square grid.
Cells are either OFF or ON, once they are ON they stay ON forever.
Each cell has 8 neighbors, the cells that are a knight's move away.
We begin in generation 1 with a single ON cell.
A cell is turned ON at generation n+1 if it has exactly one ON neighbor at generation n.
(Since cells stay ON, an equivalent definition is that a cell is turned ON at generation n+1 if it has exactly one neighbor that has been turned ON at some earlier generation. - N. J. A. Sloane, Dec 19 2018)
This sequence has similarities with A151725: here we use knight moves, there we use king moves.
This is a knight's-move version of the Ulam-Warburton cellular automaton (see A147562). - N. J. A. Sloane, Dec 21 2018
The structure has dihedral D_8 symmetry (quarter-turn rotations plus reflections, which generate the dihedral group D_8 of order 8), so A319019 is a multiple of 8 (compare A322050). - N. J. A. Sloane, Dec 16 2018
From Omar E. Pol, Dec 16 2018: (Start)
For n >> 1 (for example: n = 257) the structure of this sequence is similar to the structure of both A194270 and of A220500, the D-toothpick cellular automata of the second kind and of the third kind respectively. The animations of both CAs are in the Applegate's movie version.
Also, the graph of A319018 is a bit similar to the graph of A245540, which is essentially a 45-degree-3D-wedge of A245542 (a pyramid) which is the partial sums of A160239 (Fredkin's replicator). See "Plot 2": A319018 vs. A245540. (End)
The conjecture that A322050(2^k+1)=1 also suggests a fractal geometry. Let P_k be the associated set of eight points. It appears that P_k may be written as the intersection of four fixed lines, y = +-2*x and x = +-2*y, with a circle, x^2 + y^2 = 5*4^k (see linked image "Log-Periodic Coloring"). - Bradley Klee, Dec 16 2018
In many of these toothpick or cellular automata sequences it is common to see graphs which look like some version of the famous blancmange curve (also known as the Takagi curve). I expect that is what we are seeing when we look at the graph of A322049, although we probably need to go a lot further out before the true shape becomes apparent. - N. J. A. Sloane, Dec 17 2018
The graph of A322049 (related to first differences of this sequence) appears to have rather a self-similar structure which repeats at powers of 2, and more specifically at 2^10 = 1024. There is no central symmetry or continuity, which are characteristic properties of the blancmange curve. - M. F. Hasler, Dec 28 2018
The 8 points added in generation n = 2^k + 1 are P_k = 2^k*K where K = {(+-2, +-1), (+-1, +-2)} is the set of the initial 8 knight moves. So P_k is indeed the intersection of the rays of slope +-1/2 resp. +-2 and a circle of radius 2^k*sqrt(5). In the subsequent generation n = 2^k + 2, the new cells switched on are exactly the 7 "new" knight move neighbors of these 8 cells, (P_k + K) \ (2^k - 1)*K. The 8th neighbor, lying one knight move closer to the origin, has been switched on in generation 2^k, together with an octagonal "wall" consisting of every other cell on horizontal and vertical segments between these points (2^k - 1)*K, and all cells on the diagonal segments between these points, as well as 2 more diagonals just next to these (on the inner side) and shorter by 2 cells (so they are empty for k = 1). This yields 4*(2 + (2^k - 2)*(1+3)) new ON cells in generation 2^k, plus 8*(2^(k-1) - 2) more new ON cells on horizontal, vertical and diagonal lines 4 units closer to the origin for k > 2, and similar additional terms for k > 4 etc. - M. F. Hasler, Dec 28 2018

Crossrefs

Cf. A151725, A319019 (first differences).
For further analysis see A322048, A322049, A322050, A322051.
See A322055, A322056 for a variation.

Programs

Formula

No formula or recurrence is presently known. See A322049 for a promising attack. - N. J. A. Sloane, Dec 16 2018
a(n) = Sum_{k=1..n} A319019(n) = 1 + 8*Sum_{k=2..n} A322050(n) for n >= 1. In particular, a(n) - 1 is divisible by 8 for all n >= 1. - M. F. Hasler, Dec 28 2018

Extensions

Deleted an incorrect illustration. - N. J. A. Sloane, Dec 17 2018

A253908 Partial sums of A072272.

Original entry on oeis.org

1, 6, 11, 28, 33, 58, 75, 136, 141, 166, 191, 276, 293, 378, 439, 656, 661, 686, 711, 796, 821, 946, 1031, 1336, 1353, 1438, 1523, 1812, 1873, 2178, 2395, 3168, 3173, 3198, 3223, 3308, 3333, 3458, 3543, 3848, 3873, 3998, 4123, 4548, 4633, 5058, 5363, 6448, 6465, 6550, 6635, 6924, 7009, 7434, 7723, 8760, 8821, 9126, 9431, 10468
Offset: 0

Views

Author

Omar E. Pol, Jan 27 2015

Keywords

Comments

Also, total number of cubic ON cells after n generations in a three-dimensional cellular automaton where A072272(n) gives the number of cubic ON cells in the n-th level of the structure starting from the top. An ON cell remains ON forever. The structure looks like an irregular stepped pyramid.

Crossrefs

Extensions

Offset changed to 0 by N. J. A. Sloane, Feb 06 2015

A245540 Partial sums of A245180.

Original entry on oeis.org

1, 2, 5, 6, 14, 17, 31, 32, 40, 48, 72, 75, 99, 113, 165, 166, 174, 182, 206, 214, 278, 302, 414, 417, 441, 465, 537, 551, 663, 715, 931, 932, 940, 948, 972, 980, 1044, 1068, 1180, 1188, 1252, 1316, 1508, 1532, 1724, 1836, 2252, 2255, 2279, 2303, 2375, 2399, 2591, 2663, 2999, 3013, 3125, 3237
Offset: 1

Views

Author

N. J. A. Sloane, Jul 26 2014

Keywords

Crossrefs

Programs

  • Mathematica
    b[n_] := b[n] = Which[n == 1, 1, Mod[n, 2] == 0, b[n/2], Mod[n, 4] == 3, 2b[(n-1)/2] + b[n-2], True, 8b[(n-1)/4]];
    Accumulate[Array[b, 58]] (* Jean-François Alcover, Oct 01 2018 *)

Formula

a(n) = (A245542(n) - 1)/8. - Omar E. Pol, Mar 07 2015

A253767 Partial sums of A247666.

Original entry on oeis.org

1, 8, 15, 40, 47, 96, 121, 224, 231, 280, 329, 504, 529, 704, 807, 1216, 1223, 1272, 1321, 1496, 1545, 1888, 2063, 2784, 2809, 2984, 3159, 3784, 3887, 4608, 5017, 6656, 6663, 6712, 6761, 6936, 6985, 7328, 7503, 8224, 8273, 8616, 8959, 10184, 10359, 11584, 12305, 15168, 15193, 15368, 15543, 16168
Offset: 0

Views

Author

Omar E. Pol, Jan 29 2015

Keywords

Comments

Also, total number of ON cells after n generations in a three-dimensional cellular automaton where A247666(n) gives the number of ON cells in the n-th level of the structure starting from the top. An ON cell remains ON forever. An ON cell is an hexagonal prism of height 1. We start with a single ON cell. The structure looks like an irregular stepped pyramid, apparently with a like-hexagonal base.

Crossrefs

A245543 First differences of A160239.

Original entry on oeis.org

7, 0, 16, -16, 56, -40, 88, -104, 56, 0, 128, -168, 168, -80, 304, -408, 56, 0, 128, -128, 448, -320, 704, -872, 168, 0, 384, -464, 784, -480, 1312, -1720, 56, 0, 128, -128, 448, -320, 704, -832, 448, 0, 1024, -1344, 1344, -640, 2432, -3304, 168, 0, 384, -384, 1344, -960, 2112, -2576, 784, 0
Offset: 0

Views

Author

N. J. A. Sloane, Jul 26 2014

Keywords

Comments

The increase in number of ON cells in A160239 in going from one step to the next.
a(n) = A160239(n+1) - A160239(n).

Crossrefs

Programs

  • Haskell
    a245542 n = a245542_list !! n
    a245542_list = scanl1 (+) a160239_list
    -- Reinhard Zumkeller, Feb 13 2015

A255150 Partial sums of A253086.

Original entry on oeis.org

1, 5, 10, 22, 26, 42, 62, 110, 127, 151, 187, 267, 279, 327, 387, 531, 571, 627, 735, 935, 991, 1063, 1203, 1403, 1559, 1735, 1967, 2335, 2475, 2707, 3043, 3483, 3799, 4103, 4491, 5035, 5351, 5695, 6059, 6523, 6983, 7407, 7915, 8499, 8947, 9435, 10215, 11023, 11711, 12335, 13127, 14247, 14983, 15767, 16627, 17867, 18743, 19831, 20931
Offset: 0

Views

Author

Omar E. Pol, Feb 15 2015

Keywords

Comments

Also, total number of cubic ON cells after n generations in a three-dimensional cellular automaton in which A253086(n) gives the number of cubic ON cells in the n-th level of the structure starting from the top. An ON cell remains ON forever. The structure looks like an irregular stepped pyramid.

Crossrefs

A255364 Partial sums of A246031.

Original entry on oeis.org

1, 27, 53, 177, 203, 879, 1003, 2403, 2429, 3105, 3781, 7005, 7129, 10353, 11753, 21753, 21779, 22455, 23131, 26355, 27031, 44607, 47831, 84231, 84355, 87579, 90803, 106179, 107579, 143979, 153979, 243483, 243509, 244185, 244861, 248085, 248761, 266337, 269561, 305961, 306637, 324213, 341789, 425613, 428837, 512661, 549061, 809061
Offset: 0

Views

Author

Omar E. Pol, Feb 21 2015

Keywords

Comments

Total number of cubic ON cells after n generations in a three-dimensional structure in which A246031(n) gives the number of cubic ON cells in the n-th cubic layer of the structure. A cubic ON cell remains ON forever. The structure looks like an irregular cube (or hexahedron).

Crossrefs

Showing 1-8 of 8 results.