The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A189212 Zero-one sequence based on the hexagonal numbers: a(A000384(k))=a(k); a(v(k))=1-a(k), where v=A183218 and a(1)=0. 4

%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 Zero-one sequence based on the hexagonal numbers: a(A000384(k))=a(k); a(v(k))=1-a(k), where v=A183218 and a(1)=0.

%t u[n_] := n(2n-1); (*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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified January 30 07:42 EST 2023. Contains 359942 sequences. (Running on oeis4.)