login
A266384
Total number of OFF (white) cells after n iterations of the "Rule 22" elementary cellular automaton starting with a single ON (black) cell.
1
0, 0, 3, 4, 11, 16, 25, 28, 43, 56, 73, 84, 105, 120, 141, 148, 179, 208, 241, 268, 305, 336, 373, 396, 441, 480, 525, 556, 605, 640, 685, 700, 763, 824, 889, 948, 1017, 1080, 1149, 1204, 1281, 1352, 1429, 1492, 1573, 1640, 1717, 1764, 1857, 1944, 2037, 2116
OFFSET
0,3
REFERENCES
S. Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 55.
MATHEMATICA
rule = 22; rows = 60; ca = CellularAutomaton[rule, {{1}, 0}, rows - 1, {All, All}]; (* Start with single black cell *) catri = Table[Take[ca[[k]], {rows - k + 1, rows + k - 1}], {k, 1, rows}]; (* Truncated list of each row *) nbc =
Table[Total[catri[[k]]], {k, 1, rows}]; (* Number of Black cells in stage n *) nwc = Table[Length[catri[[k]]] - nbc[[k]], {k, 1, rows}]; (* Number of White cells in stage n *) Table[Total[Take[nwc, k]], {k, 1, rows}] (* Number of White cells through stage n *)
CROSSREFS
Cf. A071029.
Sequence in context: A041020 A041527 A290493 * A248825 A001641 A374712
KEYWORD
nonn,easy
AUTHOR
Robert Price, Dec 28 2015
STATUS
approved