OFFSET
1,3
EXAMPLE
a(5)=28 because the maximum numerator among permutations of (1,1,2,5)
happens when the continued fraction is [2;1,1,5]=28/11 or [5;1,1,2]=28/5.
MATHEMATICA
a[1] = 1; a[n_] := a[n] = Union[ Numerator /@ FromContinuedFraction /@ Permutations[ Table[ a[i], {i, n - 1}]]] [[ -1]]; Table[ a[n], {n, 11}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet and Robert G. Wilson v, Apr 19 2005
STATUS
approved