OFFSET
1,1
EXAMPLE
In base 2, sqrt(2) = 1.0110101000001001111001..., so that initial segments 1.0; 1.011010100..., of lengths 2,10,... have the same number of 0's and 1's.
MATHEMATICA
z = 300; u = N[Sqrt[2], z]; d = RealDigits[u, 2][[1]];
t[n_] := Take[d, n]; c[0, n_] := Count[t[n], 0]; c[1, n_] := Count[t[n], 1];
Table[{n, c[0, n], c[1, n]}, {n, 1, 100}]
u = Select[-1 + Range[z], c[0, #] == c[1, #] &] (* A293725 *)
u/2 (* A293726 *)
Select[-1 + Range[z], c[0, #] < c[1, #] &] (* A293727 *)
Select[-1 + Range[z], c[0, #] > c[1, #] &] (* A293728 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Clark Kimberling, Oct 16 2017
STATUS
approved