OFFSET
1,4
COMMENTS
Consider the continued fraction [0,c_1,c_2,...,c_m] of k/n, with k<n, c_m=1, and gcd(k,n)=1. Let f(k,n) be the maximum of the c_i. Then a(n) is the minimum value of f(k,n). This differs from A141822 only in the requirement that c_m=1. - Sean A. Irvine, Aug 12 2017
REFERENCES
Jeffrey Shallit, personal communication.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Robin Visser, Table of n, a(n) for n = 1..10000
H. Niederreiter, Dyadic fractions with small partial quotients, Monat. f. Math., 101 (1986), 309-315.
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from David W. Wilson
STATUS
approved