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