OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
It seems that Sum_{k=1..n} a(k) ~ C*n*log(n) with C = 0.6....
EXAMPLE
Sum_{d|48} 1/d = 31/12, whose continued fraction is [2, 1, 1, 2, 2] with 5 elements, hence a(48)=5.
MATHEMATICA
a[n_] := Length@ContinuedFraction[DivisorSigma[1, n]/n]; Array[a, 100] (* Amiram Eldar, Aug 30 2019 *)
PROG
(PARI) for(n=1, 150, print1(length(contfrac(sumdiv(n, d, 1/d))), ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jun 09 2002
STATUS
approved