OFFSET
1,2
EXAMPLE
Array begins
1 2 4 7 3 8 ...
2 1 3 6 10 5 ...
4 3 1 4 8 13 ...
7 6 4 1 5 10 ...
MATHEMATICA
T[n_, n_] = 1; T[n_, k_] /; k < n := T[n, k] = T[k, n]; T[n_, k_] := T[n, k] = If[t = T[n, k - 1] - (k - 1); t > 0 && FreeQ[Table[T[n, j], {j, 1, k - 1}], t], t, T[n, k - 1] + (k - 1)]; Table[T[n - k + 1, k], {n, 1, 13}, {k, 1, n}] // Flatten (* Jean-François Alcover, Feb 18 2018 *)
CROSSREFS
KEYWORD
AUTHOR
N. J. A. Sloane, Dec 16 2001
EXTENSIONS
More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 06 2003
STATUS
approved