%I
%S 0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,0,1,
%T 0,1,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,
%U 1,0,1,0,0,1,0,1,0,1,1,0,1,0,1,0,0,1,0,1,0,1,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,1
%N Zeroone sequence based on the hexagonal numbers: a(A000384(k))=a(k); a(v(k))=1a(k), where v=A183218 and a(1)=0.
%t u[n_] := n(2n1); (*A000384*)
%t a[1] = 0; h = 128;
%t c = (u[#1] &) /@ Range[2h];
%t d = (Complement[Range[Max[#1]], #1] &)[c]; (*A183218*)
%t Table[a[d[[n]]] = 1  a[n], {n, 1, h  1}]; (*A189212*)
%t Table[a[c[[n]]] = a[n], {n, 1, h}] (*A189212*)
%t Flatten[Position[%, 0]] (*A189213*)
%t Flatten[Position[%%, 1]] (*A189214*)
%Y Cf. A188967, A189213, A189214, A000384.
%K nonn
%O 1
%A _Clark Kimberling_, Apr 18 2011
