OFFSET
1,1
COMMENTS
EXAMPLE
A246339 gives the positions of 0 in the base 2 expansion of 1/sqrt(2), which begins thus: 1,0,1,1,0,1,0,1,0,0,0,0,0,1,0,0,1,1,1,1. For n = 1, the block s(2)..s(2) is simply 0, which occurs at positions 1,3,4,6,8,... as in row 1 of T. For n = 5, the block s(2)..s(6) is 0,1,1,0,1, which occurs at positions 2,87,94,137, ...
The first 6 rows:
2 .. 5 ... 7 ... 9 ... 10 .. 11 .. 12 .. 13 ...
2 .. 5 ... 7 ... 13 .. 16 .. 22 .. 26 .. 30 ...
2 .. 16 .. 22 .. 26 .. 30 .. 39 .. 43 .. 49 ...
2 .. 22 .. 26 .. 49 .. 67 .. 79 .. 87 .. 90 ...
2 .. 87 .. 94 .. 137 . 196 . 345 . 371 . 438 ...
2 .. 196 .438 . 505 . 512 . 677 . 776 . 783 ...
MATHEMATICA
z = 200000; s = RealDigits[1/Sqrt[2], 2, z][[1]]; Flatten[Position[s, 0]];
b[m_, n_] := b[m, n] = Take[s, {m, n}]; z1 = 150000; z2 = 12;
t[k_] := t[k] = Take[Select[Range[1, z1], b[#, # + k] == b[2, 2 + k] &],
z2]; Column[Table[t[k], {k, 0, z2}]] (* A246341, array *)
w[n_, k_] := t[n][[k + 1]]; Table[w[n - k, k], {n, 0, z2 - 1}, {k, n, 0,
-1}] // Flatten (* A246341, array *)
CROSSREFS
KEYWORD
AUTHOR
Clark Kimberling, Aug 24 2014
STATUS
approved