login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Zero-one sequence based on the sequence (4n): a(A008586(k))=a(k); a(A042968(k))=1-a(k), a(1)=0, a(2)=0, a(3)=1.
7

%I #4 Mar 30 2012 18:57:24

%S 1,1,0,1,0,1,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,1,0,0,

%T 0,1,1,1,1,0,1,0,1,0,1,1,0,0,0,0,0,1,1,0,1,1,0,1,0,1,0,1,1,1,1,1,1,0,

%U 0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,1

%N Zero-one sequence based on the sequence (4n): a(A008586(k))=a(k); a(A042968(k))=1-a(k), a(1)=0, a(2)=0, a(3)=1.

%t u[n_] := 4n; (*A008586*)

%t a[1] = 0; a[2]=0; a[3]=1; h = 128;

%t c = (u[#1] &) /@ Range[2h];

%t d = (Complement[Range[Max[#1]], #1] &)[c]; (*A042968*)

%t Table[a[d[[n]]] = 1 - a[n], {n, 1, h - 1}]; (*A189292*)

%t Table[a[c[[n]]] = a[n], {n, 1, h}] (*A189292*)

%t Flatten[Position[%, 0]] (*A189293*)

%t Flatten[Position[%%, 1]] (*A189294*)

%Y Cf. A188967, A189293, A189294, A189289, A189295, A189298.

%K nonn

%O 1

%A _Clark Kimberling_, Apr 19 2011