OFFSET
0,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..20000
EXAMPLE
0.705230171791800965147431682... = 0 + 1/(1 + 1/(2 + 1/(2 + 1/(1 + ...))))
MATHEMATICA
ContinuedFraction[Sum[1/Product[Prime[i], {i, n}], {n, 80}], 120] (* G. C. Greubel, Oct 21 2018 *)
PROG
(PARI) { allocatemem(932245000); default(realprecision, 21000); p=1; s=x=0; for (k=1, 10^9, p*=prime(k); s+=1.0/p; if (s==x, break); x=s ); x=contfrac(s); for (n=0, 20000, write("b165509.txt", n, " ", x[n+1])) }
(Magma) SetDefaultRealField(RealField(100)); ContinuedFraction( (&+[1/(&*[NthPrime(j):j in [1..n]]): n in [1..80]]) ); // G. C. Greubel, Oct 21 2018
CROSSREFS
KEYWORD
cofr,nonn
AUTHOR
Harry J. Smith, Sep 21 2009
STATUS
approved