login
Continued fraction for log(4).
2

%I #21 Jul 10 2024 23:58:34

%S 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,

%T 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,

%U 1,34,1,1,5,16,3,3,1,1,9,2,1,3,2,2,1,1,1

%N Continued fraction for log(4).

%H Harry J. Smith, <a href="/A016732/b016732.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>

%e 1.386294361119890618834464242... = 1 + 1/(2 + 1/(1 + 1/(1 + 1/(2 + ...)))). - _Harry J. Smith_, May 16 2009

%t ContinuedFraction[2*Log[2], 100] (* _G. C. Greubel_, Sep 15 2018 *)

%o (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

%o (Magma) ContinuedFraction(2*Log(2)); // _G. C. Greubel_, Sep 15 2018

%Y Cf. A016627 (decimal expansion).

%K nonn,cofr

%O 0,2

%A _N. J. A. Sloane_

%E Offset changed by _Andrew Howroyd_, Jul 10 2024