OFFSET
0,5
COMMENTS
OFF cells outside the triangle of active cells are ignored.
EXAMPLE
The Rule-30 1D cellular automaton started from a single ON (.) cell generates the following triangle:
1 . a(1)= (0)
2 . . . a(2)= (0)
3 . . 0 0 . a(3)= (1)
4 . . 0 . . . . a(4)= (1)
5 . . 0 0 . 0 0 0 . a(5)= (2)
6 . . 0 . . . . 0 . . . a(6)= (2)
7 . . 0 0 . 0 0 0 0 . 0 0 . a(7)= (3)
8 . . 0 . . . . 0 0 . . . . . . a(8)= (2)
9 . . 0 0 . 0 0 0 . . . 0 0 0 0 0 . a(9)= (3)
10 . . 0 . . . . 0 . . 0 0 . 0 0 0 . . . a(10)=(4)
11 . . 0 0 . 0 0 0 0 . 0 . . . . 0 . . 0 0 . a(11)=(5)
12 . . 0 . . . . 0 0 . . 0 . 0 0 0 0 . 0 . . . . a(12)=(5)
13 . . 0 0 . 0 0 0 . . . 0 0 . . 0 0 . . 0 . 0 0 0 . a(13)=(6)
MATHEMATICA
CellularAutomaton[30, {{1}, 0}, 200];
(Reverse[Internal`DeleteTrailingZeros[
Reverse[Internal`DeleteTrailingZeros[#]]]]) & /@ %;
Table[
Length /@ Select[%[[i]] // Split, Total[#] == 0 &] // Length,
{i, 1, % // Length}
]
CROSSREFS
KEYWORD
nonn
AUTHOR
Philipp O. Tsvetkov, Sep 24 2018
STATUS
approved