OFFSET
1,1
COMMENTS
FORMULA
EXAMPLE
The upper Wythoff sequence, A001950 gives the positions of 1 in A003849, which begins thus: 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1. For n = 1, the block s(2)..s(2) is simply 1, which occurs at positions 2,5,7,10,13,... as in row 1 of T. For n = 5, the block s(2)..s(6) is 1,0,0,1,0 which occurs at positions 2,7,10,15,20,23, ...
The first 6 rows follow:
2 .. 5 .. 7 ... 10 .. 13 .. 15 .. 18 ...
2 .. 5 .. 7 ... 10 .. 13 .. 15 .. 18 ...
2 .. 7 .. 10 .. 15 .. 20 .. 23 .. 28 ...
2 .. 7 .. 10 .. 15 .. 20 .. 23 .. 28 ...
2 .. 7 .. 10 .. 15 .. 20 .. 23 .. 28 ...
2 .. 10 . 15 .. 23 .. 31 .. 36 .. 44 ...
MATHEMATICA
z = 1000; s = Flatten[Nest[{#, #[[1]]} &, {0, 1}, 12]]; Flatten[Position[s, 1]]; b[m_, n_] := b[m, n] = Take[s, {m, n}]; z1 = 500; 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}]](* A246355, array *)
w[n_, k_] := t[n][[k + 1]]; Table[w[n - k, k], {n, 0, z2 - 1}, {k, n, 0, -1}] // Flatten (* A246355, sequence *)
CROSSREFS
KEYWORD
AUTHOR
Clark Kimberling, Aug 24 2014
STATUS
approved