OFFSET
1,1
LINKS
Ilya Gutkovskiy, Scatterplot of a(n)/(n*log(n)) up to n=10000
Eric Weisstein's World of Mathematics, Continued Fraction
Eric Weisstein's World of Mathematics, Harmonic Series of Primes
EXAMPLE
Sum_{k=1..2} 1/prime(k) = 1/2 + 1/3 = 5/6 = 0 + 1/(1 + 1/5), so a(2) = 3.
Sum_{k=1..4} 1/prime(k) = 1/2 + 1/3 + 1/5 + 1/7 = 247/210 = 1 + 1/(5 + 1/(1 + 1/(2 + 1/12))), so a(4) = 5.
MATHEMATICA
Table[Length[ContinuedFraction[Sum[1/Prime[k], {k, 1, n}]]], {n, 1, 65}]
PROG
(PARI) a(n) = #contfrac(sum(k=1, n, 1/prime(k))); \\ Michel Marcus, Apr 10 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 09 2022
STATUS
approved