OFFSET
0,3
COMMENTS
a(n) is the number of times the k-th cell from the left is different from the k-th cell from the right, at the generation n of Rule 30 1-D cellular automaton, when it is started from a single alive cell.
All terms are even.
LINKS
FORMULA
EXAMPLE
The evolution of one-dimensional cellular automaton rule 30 proceeds as follows, when started from a single alive (1) cell:
---------------------------------------------- a(n)
0: (1) 0
1: 1(1)1 0
2: 11(0)01 2
3: 110(1)111 2
4: 1100(1)0001 2
5: 11011(1)10111 4
6: 110010(0)001001 6
7: 1101111(0)0111111 4
8: 11001000(1)11000001 8
9: 110111101(1)001000111 10
10: 1100100001(0)1111011001 10
11: 11011110011(0)10000101111 8
12: 110010001110(0)110011010001 12
13: 1101111011001(1)1011100110111 8
When we count the times the k-th cell from the left is different from the k-th cell from the right, we obtain a(n). Note that the central cells (indicated with parentheses) do not affect the count, as the central cell is always equal to itself.
PROG
(PARI)
A030101(n) = if(n<1, 0, subst(Polrev(binary(n)), x, 2));
\\ Use this one for writing b-files:
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 05 2019
STATUS
approved