OFFSET
1,2
COMMENTS
The function T(n, k) is defined for k>n but only the values for 1 <= k <= n as a triangular array are listed here.
EXAMPLE
{1}; {2, 1}; {3, 2, 1}; {4, 2, 3, 1}; {5, 2, 2, 4, 1}; {6, 3, 2, 2, 5, 1}; ...
MATHEMATICA
T[ n_, k_] := If[ n < 1 || k < 1, 0, If[ Mod[n, k] == 0 || Mod[k, n] == 0, Max[n, k] / Min[n, k], T[ k, Mod[ n, k, 1]]]]
PROG
(PARI) {T(n, k) = if( n<1 || k<1, 0, if( n%k == 0 || k%n == 0, max(n, k) / min(n, k), T(k, (n-1)%k + 1)))}
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Michael Somos, Jul 20 2011
STATUS
approved