A191709 Dispersion of A047202, (numbers >1 and congruent to 0, 1, 3, or 4 mod 5), by antidiagonals.
1, 3, 2, 5, 4, 7, 8, 6, 10, 12, 11, 9, 14, 16, 17, 15, 13, 19, 21, 23, 22, 20, 18, 25, 28, 30, 29, 27, 26, 24, 33, 36, 39, 38, 35, 32, 34, 31, 43, 46, 50, 49, 45, 41, 37, 44, 40, 55, 59, 64, 63, 58, 53, 48, 42, 56, 51, 70, 75, 81, 80, 74, 68, 61, 54, 47, 71
Offset: 1
Examples
Northwest corner: 1....3....5....8....11 2....4....6....9....13 7....10...14...19...25 12...16...21...28...36 17...23...30...39...50 22...29...38...49...63
Links
- Ivan Neretin, Table of n, a(n) for n = 1..5050 (first 100 antidiagonals, flattened)
Programs
-
Mathematica
(* Program generates the dispersion array T of the increasing sequence f[n] *) r = 40; r1 = 12; c = 40; c1 = 12; a=3; b=4; c2=5; d=6; m[n_]:=If[Mod[n,4]==0,1,0]; f[n_]:=a*m[n+3]+b*m[n+2]+c2*m[n+1]+d*m[n]+5*Floor[(n-1)/4] Table[f[n], {n, 1, 30}] (* A047207 *) 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}]] (* A191709 *) Flatten[Table[t[k, n - k + 1], {n, 1, c1}, {k, 1, n}]] (* A191709 *)
Comments