OFFSET
0,2
COMMENTS
Rule 6 is the smallest rule which is even (otherwise infinitely many bits would be switched on at step 1, for any finite starting value) and nontrivial (i.e., does not lead to extinction nor simple reproduction, possibly shifted left or right, of a single-bit initial state).
In the context of elementary cellular automata, one would usually consider one further bit of output (i.e., the cell which has bit 0 of the input as left neighbor). This leads to A292680 which has all terms even, so it is natural to consider this variant.
LINKS
Eric Weisstein's World of Mathematics, Elementary Cellular Automaton
EXAMPLE
n | a(n)
0 = 0[2] | 0[2] = 0
1 = 1[2] | 11[2] = 3 (bits below 001 and 01(0) are on)
2 = 10[2] | 110[2] = 6 (1 below 001 and 010, 0 below 10(0))
3 = 11[2] | 100[2] = 4 (1 below 001, 0 below 011 and 11(0))
4 = 100[2] | 1100[2] = 12 (as n = 1 and n = 2, shifted right once more)
5 = 101[2] | 1101[2] = 13 (1 below 001 and 010 (twice), 0 below 101)
6 = 110[2] | 1000[2] = 8 (as n = 3, shifted right once)
7 = 111[2] | 1000[2] = 8 (1 below 001, 0 below 011, 111 and 11(0)).
PROG
(PARI) apply( A292681(n, r=6)=sum(i=0, logint(!n+n<<=1, 2)+1, bittest(r, (n>>i)%8)<<i), [0..60])
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Oct 09 2017
STATUS
approved