OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Continued Fraction.
Eric Weisstein's World of Mathematics, Harmonic Mean.
EXAMPLE
a(10)=5 because 10th prime is 29, harmonic mean of 10 and 29 is 580/39 and continued fraction for 580/39 has terms {14,1,6,1,4} and length 5.
MATHEMATICA
A107918[n_]:=Length[ContinuedFraction[HarmonicMean[{n, Prime[n]}]]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 28 2005
STATUS
approved