login
A266383
Total number of ON (black) cells after n iterations of the "Rule 22" elementary cellular automaton starting with a single ON (black) cell.
1
1, 4, 6, 12, 14, 20, 24, 36, 38, 44, 48, 60, 64, 76, 84, 108, 110, 116, 120, 132, 136, 148, 156, 180, 184, 196, 204, 228, 236, 260, 276, 324, 326, 332, 336, 348, 352, 364, 372, 396, 400, 412, 420, 444, 452, 476, 492, 540, 544, 556, 564, 588, 596, 620, 636
OFFSET
0,2
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 *) Table[Total[Take[nbc, k]], {k, 1, rows}] (* Number of Black cells through stage n *)
CROSSREFS
Cf. A071029.
Sequence in context: A136415 A310596 A247456 * A217948 A059891 A020213
KEYWORD
nonn,easy
AUTHOR
Robert Price, Dec 28 2015
STATUS
approved