OFFSET
0
COMMENTS
This is a kind of "Thue-Morse-Morse" construction (cf. A010060)! Start with A_0 = 0, then extend by setting B_k = complement of A_k and A_{k+1} = A_k B_k B_k. Sequence is limit of A_k as k -> infinity. Thus A_0 = 0; A_1 = 0,1,1; A_2 = 0,1,1,1,0,0,1,0,0; A_3 = 0,1,1,1,0,0,1,0,0,1,0,0,0,1,1,0,1,1,1,0,0,0,1,1,0,1,1; - N. J. A. Sloane, Mar 04 2016
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..19682
FORMULA
a(3k-2)=a(k), a(3k-1)=1-a(k), a(3k)=1-a(k) for k>=1, a(0)=0.
EXAMPLE
0->011->011100100->
MATHEMATICA
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 26 2011
EXTENSIONS
STATUS
approved