Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A104107
a(1) = 1, c(1)=1, if A(k) = sequence of first c(k) terms and if B(k) is A(k) with 0's and 1's exchanged, then A(k+1) = A(k)B(k) and c(k+1)= 2*c(k) if a(k) = 0, A(k+1) = A(k),0,B(k) and c(k+1)= 2*c(k)+1 if a(k) = 1.
4
1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0
OFFSET
1,1
MATHEMATICA
f[l_]:=Join[l, If[l[[Floor[Log[2, Length[l]]]+1]]==0, {}, {0}], 1-l]; Nest[f, {1}, 7] (* Ray Chandler, Apr 05 2009 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Mar 04 2005
EXTENSIONS
Edited and extended by Ray Chandler, Apr 05 2009
STATUS
approved