A016732 Continued fraction for log(4).
1, 2, 1, 1, 2, 3, 7, 6, 4, 1, 1, 21, 3, 1, 3, 3, 1, 1, 2, 1, 1, 2, 6, 1, 1, 3, 9, 3, 3, 1, 2, 1, 1, 1, 3, 1, 10, 7, 2, 5, 2, 2, 4, 9, 7, 1, 1, 1, 13, 1, 14, 1, 1, 1, 1, 2, 6, 1, 1, 1, 2, 2, 9, 1, 1, 3, 3, 1, 34, 1, 1, 5, 16, 3, 3, 1, 1, 9, 2, 1, 3, 2, 2, 1, 1, 1
Offset: 0
Examples
1.386294361119890618834464242... = 1 + 1/(2 + 1/(1 + 1/(1 + 1/(2 + ...)))). - _Harry J. Smith_, May 16 2009
Links
- Harry J. Smith, Table of n, a(n) for n = 0..19999
- G. Xiao, Contfrac
Crossrefs
Cf. A016627 (decimal expansion).
Programs
-
Magma
ContinuedFraction(2*Log(2)); // G. C. Greubel, Sep 15 2018
-
Mathematica
ContinuedFraction[2*Log[2], 100] (* G. C. Greubel, Sep 15 2018 *)
-
PARI
{ allocatemem(932245000); default(realprecision, 21000); x=contfrac(log(4)); for (n=1, 20000, write("b016732.txt", n-1, " ", x[n])); } \\ Harry J. Smith, May 16 2009
Extensions
Offset changed by Andrew Howroyd, Jul 10 2024