A191447 Dispersion of (1+[n*sqrt(5)]), where [ ]=floor, by antidiagonals.
1, 3, 2, 7, 5, 4, 16, 12, 9, 6, 36, 27, 21, 14, 8, 81, 61, 47, 32, 18, 10, 182, 137, 106, 72, 41, 23, 11, 407, 307, 238, 161, 92, 52, 25, 13, 911, 687, 533, 361, 206, 117, 56, 30, 15, 2038, 1537, 1192, 808, 461, 262, 126, 68, 34, 17, 4558, 3437, 2666, 1807
Offset: 1
Examples
Northwest corner: 1...3....7....16...36 2...5....12...27...61 4...9....21...47...106 6...14...32...72...161 8...18...41...92...206
Programs
-
Mathematica
(* Program generates the dispersion array T of increasing sequence f[n] *) r=40; r1=12; c=40; c1=12; x = Sqrt[5]; f[n_] := 1+Floor[n*x] (* complement of column 1 *) mex[list_] := NestWhile[#1 + 1 &, 1, Union[list][[#1]] <= #1 &, 1, Length[Union[list]]] rows = {NestList[f, 1, c]}; Do[rows = Append[rows, NestList[f, mex[Flatten[rows]], r]], {r}]; t[i_, j_] := rows[[i, j]]; TableForm[Table[t[i, j], {i, 1, 10}, {j, 1, 10}]] (* A191447 array *) Flatten[Table[t[k, n - k + 1], {n, 1, c1}, {k, 1, n}]] (* A191447 sequence *) (* Program by Peter J. C. Moses, Jun 01 2011 *)
Comments