A016730 Continued fraction for log(2).
0, 1, 2, 3, 1, 6, 3, 1, 1, 2, 1, 1, 1, 1, 3, 10, 1, 1, 1, 2, 1, 1, 1, 1, 3, 2, 3, 1, 13, 7, 4, 1, 1, 1, 7, 2, 4, 1, 1, 2, 5, 14, 1, 10, 1, 4, 2, 18, 3, 1, 4, 1, 6, 2, 7, 3, 3, 1, 13, 3, 1, 4, 4, 1, 3, 1, 1, 1, 1, 2, 17, 3, 1, 2, 32, 1, 1, 1
Offset: 0
Examples
log(2) = 0.6931471805599453094... = 0 + 1/(1 + 1/(2 + 1/(3 + 1/(1 + ...)))). - _Harry J. Smith_, Apr 21 2009
Links
- Harry J. Smith, Table of n, a(n) for n = 0..19999
- G. Xiao, Contfrac
- Eric Weisstein's World of Mathematics, Natural Logarithm of 2
- Index entries for continued fractions for constants
Programs
-
Magma
ContinuedFraction(Log(2)); // G. C. Greubel, Sep 15 2018
-
Mathematica
ContinuedFraction[Log[2], 80] (* Alonso del Arte, Oct 03 2017 *)
-
PARI
{ allocatemem(932245000); default(realprecision, 21000); x=contfrac(log(2)); for (n=1, 20000, write("b016730.txt", n-1, " ", x[n])); } \\ Harry J. Smith, Apr 21 2009
Extensions
Offset changed by Andrew Howroyd, Jul 10 2024
Comments