login
A071647
a(n) is the maximum number of elements among the continued fractions for n/1, n/2, n/3, n/4, ..., n/n.
2
1, 1, 2, 2, 3, 2, 3, 4, 3, 3, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 6, 4, 5, 4, 5, 5, 5, 5, 6, 6, 6, 5, 5, 7, 5, 5, 6, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 6, 7, 7, 6, 6, 6, 5, 8, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7, 7, 7, 7, 7, 6, 7, 6, 7, 7, 7, 8, 6, 6, 8, 8, 8, 7, 7, 6, 7, 7, 7
OFFSET
1,3
COMMENTS
a(n)/log(n) is bounded.
Apart from initial term, same as A034883. - Franklin T. Adams-Watters, Nov 14 2006
LINKS
EXAMPLE
Continued fractions for 5/1 = [5]; 5/2 = [2, 2]; 5/3 = [1, 1, 2]; 5/4 = [1, 4]; 5/5 = [1] hence a(5) = 3.
PROG
(PARI) for(n=1, 150, print1( vecmax(vector(n, i, length(contfrac(n/i)))), ", "))
CROSSREFS
Cf. A034883.
Sequence in context: A238943 A070081 A366686 * A034883 A338643 A051125
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Jun 22 2002
STATUS
approved