This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A247632 #10 Sep 26 2014 21:32:58 %S A247632 1,4,6,12,15,21,25,29,38,42,48,52,55,60,64,66,70,72,78,83,86,89,93,96, %T A247632 100,102,104,107,109,111,113,119,122,130,134,136,139,144,151,153,157, %U A247632 159,163,166,169,173,177,179,184,187,191,195,198,202,204,209,211 %N A247632 Numbers k such that d(r,k) = 0 and d(s,k) = 1, where d(x,k) = k-th binary digit of x, r = {sqrt(2)}, s = {sqrt(8)}, and { } = fractional part. %C A247632 Every positive integer lies in exactly one of these: A247631, A247632, A247633, A247634. %H A247632 Clark Kimberling, <a href="/A247632/b247632.txt">Table of n, a(n) for n = 1..1097</a> %e A247632 r has binary digits 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, ... %e A247632 s has binary digits 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, ... %e A247632 so that a(1) = 1 and a(2) = 4. %t A247632 z = 400; r = FractionalPart[Sqrt[2]]; s = FractionalPart[Sqrt[8]]; %t A247632 u = Flatten[{ConstantArray[0, -#[[2]]], #[[1]]}] &[RealDigits[r, 2, z]] %t A247632 v = Flatten[{ConstantArray[0, -#[[2]]], #[[1]]}] &[RealDigits[s, 2, z]] %t A247632 t1 = Table[If[u[[n]] == 0 && v[[n]] == 0, 1, 0], {n, 1, z}]; %t A247632 t2 = Table[If[u[[n]] == 0 && v[[n]] == 1, 1, 0], {n, 1, z}]; %t A247632 t3 = Table[If[u[[n]] == 1 && v[[n]] == 0, 1, 0], {n, 1, z}]; %t A247632 t4 = Table[If[u[[n]] == 1 && v[[n]] == 1, 1, 0], {n, 1, z}]; %t A247632 Flatten[Position[t1, 1]] (* A247631 *) %t A247632 Flatten[Position[t2, 1]] (* A247632 *) %t A247632 Flatten[Position[t3, 1]] (* A247633 *) %t A247632 Flatten[Position[t4, 1]] (* A247634 *) %Y A247632 Cf. A247631, A247633, A247634. %K A247632 nonn,easy,base %O A247632 1,2 %A A247632 _Clark Kimberling_, Sep 23 2014