login
Number of ON cells after n generations of "Odd-Rule" cellular automaton on hexagonal lattice based on 7-celled neighborhood.
7

%I #53 Dec 31 2020 11:11:15

%S 1,7,7,25,7,49,25,103,7,49,49,175,25,175,103,409,7,49,49,175,49,343,

%T 175,721,25,175,175,625,103,721,409,1639,7,49,49,175,49,343,175,721,

%U 49,343,343,1225,175,1225,721,2863,25,175,175,625

%N Number of ON cells after n generations of "Odd-Rule" cellular automaton on hexagonal lattice based on 7-celled neighborhood.

%C The neighborhood of a cell consists of the cell itself together with its six surrounding cells. A cell is ON at generation n iff an odd number of its neighbors were ON at the previous generation. We start with one ON cell.

%C This is the Run Length Transform of the sequence 1,7,25,103,409,1639,26215,... (almost certainly A102900).

%C This appears to be the same as the number of ON cells in a certain 2-D CA on the square grid in which the neighborhood of a cell is defined by f = 1/(x*y)+1/x+1/x*y+1/y+x/y+x+x*y, and in which a cell is ON iff there was an odd number of ON cells in the neighborhood at the previous generation. Here is the neighborhood:

%C [X, 0, X]

%C [X, 0, X]

%C [X, X, X]

%C which contains a(1) = 7 ON cells.

%C This is the odd-rule cellular automaton defined by OddRule 557 (see Ekhad-Sloane-Zeilberger "Odd-Rule Cellular Automata on the Square Grid" link).

%C Furthermore, this is also the number of ON cells in the 2-D CA on the square grid in which the neighborhood of a cell is defined by f = 1/(x*y)+1/x+1/y+1+y+x+x*y, with the same rule. Here is the neighborhood:

%C [0, X, X]

%C [X, X, X]

%C [X, X, 0]

%C - _N. J. A. Sloane_, Feb 19 2015

%C This is the odd-rule cellular automaton defined by OddRule 376 (see Ekhad-Sloane-Zeilberger "Odd-Rule Cellular Automata on the Square Grid" link).

%C The partial sums are in A253767 in which the structure looks like an irregular stepped pyramid, apparently with a like-hexagonal base. - _Omar E. Pol_, Jan 29 2015

%H Shalosh B. Ekhad, N. J. A. Sloane, and Doron Zeilberger, <a href="http://arxiv.org/abs/1503.01796">A Meta-Algorithm for Creating Fast Algorithms for Counting ON Cells in Odd-Rule Cellular Automata</a>, arXiv:1503.01796 [math.CO], 2015; see also the <a href="http://www.math.rutgers.edu/~zeilberg/mamarim/mamarimhtml/CAcount.html">Accompanying Maple Package</a>.

%H Shalosh B. Ekhad, N. J. A. Sloane, and Doron Zeilberger, <a href="http://arxiv.org/abs/1503.04249">Odd-Rule Cellular Automata on the Square Grid</a>, arXiv:1503.04249 [math.CO], 2015.

%H N. J. A. Sloane, <a href="/A247666/a247666.pdf">Illustrations of generations 0 to 4</a>

%H N. J. A. Sloane, On the No. of ON Cells in Cellular Automata, Video of talk in Doron Zeilberger's Experimental Math Seminar at Rutgers University, Feb. 05 2015: <a href="https://vimeo.com/119073818">Part 1</a>, <a href="https://vimeo.com/119073819">Part 2</a>

%H N. J. A. Sloane, <a href="http://arxiv.org/abs/1503.01168">On the Number of ON Cells in Cellular Automata</a>, arXiv:1503.01168 [math.CO], 2015.

%H <a href="/index/Ce#cell">Index entries for sequences related to cellular automata</a>

%F a(n) = number of terms in expansion of f^n mod 2, where f = 1+1/x+x+1/y+y+1/(x*y)+x*y (mod 2);

%e From _Omar E. Pol_, Jan 29 2015: (Start)

%e May be arranged into blocks of sizes A011782:

%e 1;

%e 7;

%e 7, 25;

%e 7, 49, 25, 103;

%e 7, 49, 49, 175, 25, 175, 103, 409;

%e 7, 49, 49, 175, 49, 343, 175, 721, 25, 175, 175, 625, 103, 721, 409, 1639;

%e 7, 49, 49, 175, 49, 343, 175, 721, 49, 343, 343, 1225, 175, 1225, 721, 2863, 25, 175, 175, 625, ...

%e It appears that right border gives A102900 without repetitions, see Comments section. [This is just a restatement of the fact that this sequence is the run length transform of what is presumably A102900. - _N. J. A. Sloane_, Feb 06 2015]

%e (End)

%e From _Omar E. Pol_, Mar 19 2015: (Start)

%e Also, the sequence can be written as an irregular tetrahedron T(s,r,k) as shown below:

%e 1;

%e ..

%e 7;

%e ..

%e 7;

%e 25;

%e .........

%e 7, 49;

%e 25;

%e 103;

%e ...................

%e 7, 49, 49, 175;

%e 25, 175;

%e 103;

%e 409;

%e ......................................

%e 7, 49, 49, 175, 49, 343, 175, 721;

%e 25, 175, 175, 625;

%e 103, 721;

%e 409;

%e 1639;

%e ...

%e Apart from the initial 1, we have that T(s,r,k) = T(s+1,r,k).

%e (End)

%p C := f->`if`(type(f,`+`),nops(f),1);

%p f := 1+1/x+x+1/y+y+1/(x*y)+x*y;

%p g := n->expand(f^n) mod 2;

%p [seq(C(g(n)),n=0..100)];

%t A247666[n_] := Total[CellularAutomaton[{170, {2, {{1, 1, 0}, {1, 1, 1}, {0, 1, 1}}}, {1, 1}}, {{{1}}, 0}, {{{n}}}], 2]; Array[A247666, 52, 0] (* _JungHwan Min_, Sep 01 2016 *)

%t A247666L[n_] := Total[#, 2] & /@ CellularAutomaton[{170, {2, {{1, 1, 0}, {1, 1, 1}, {0, 1, 1}}}, {1, 1}}, {{{1}}, 0}, n]; A247666L[51] (* _JungHwan Min_, Sep 01 2016 *)

%Y Cf. A102900, A071053, A160239, A247640.

%K nonn

%O 0,2

%A _N. J. A. Sloane_, Sep 22 2014