OFFSET
1,2
COMMENTS
Every positive integer occurs exactly once, so that as a sequence, this is a permutation of the positive integers.
EXAMPLE
Northwest corner:
1 2 4 5 8 9 10 16
3 6 11 12 13 19 22 24
7 14 23 28 29 39 46 55
15 30 47 60 61 79 94 111
31 62 95 124 125 159 190 223
63 126 191 252 253 319 382 447
127 254 383 508 509 639 766 895
***
Base-2 digits of 59: 1,1,1,0,1,1 with runs 111 and 11 of 1's, so that 59 is in row 3.
MATHEMATICA
b = 2; s[n_] := Split[IntegerDigits[n, b]];
m[n_, d_] := Union[Select[s[n], MemberQ[#, d] &]]
h[n_, d_] := Max[Map[Length, m[n, d]]]
z = 6000; w = t[d_] := Table[h[n, d], {n, 1, z}] /. -Infinity -> 0
TableForm[Table[Flatten[Position[t[1], d]], {d, 0, 8}]] (* A297933 array *)
u[d_] := Flatten[Position[t[1], d]]
v[d_, n_] := u[d][[n]];
Table[v[n, k - n + 1], {k, 1, 11}, {n, 1, k}] // Flatten (* A297933 sequence *)
CROSSREFS
KEYWORD
AUTHOR
Clark Kimberling, Jan 26 2018
STATUS
approved