%I #31 Jul 10 2024 23:58:43
%S 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,
%T 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,
%U 1,1,1,1,2,17,3,1,2,32,1,1,1
%N Continued fraction for log(2).
%C Continued fraction for 1/log(2) is the same but without the initial zero.
%H Harry J. Smith, <a href="/A016730/b016730.txt">Table of n, a(n) for n = 0..19999</a>
%H G. Xiao, <a href="http://wims.unice.fr/~wims/en_tool~number~contfrac.en.html">Contfrac</a>
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/NaturalLogarithmof2.html">Natural Logarithm of 2</a>
%H <a href="/index/Con#confC">Index entries for continued fractions for constants</a>
%e log(2) = 0.6931471805599453094... = 0 + 1/(1 + 1/(2 + 1/(3 + 1/(1 + ...)))). - _Harry J. Smith_, Apr 21 2009
%t ContinuedFraction[Log[2], 80] (* _Alonso del Arte_, Oct 03 2017 *)
%o (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
%o (Magma) ContinuedFraction(Log(2)); // _G. C. Greubel_, Sep 15 2018
%Y Cf. A120754, A120755, A002162 (decimal expansion).
%K nonn,cofr
%O 0,3
%A _N. J. A. Sloane_
%E Offset changed by _Andrew Howroyd_, Jul 10 2024