login
Continued fraction expansion for log_2(10).
6

%I #13 Jan 03 2016 02:52:22

%S 3,3,9,2,2,4,6,2,1,1,3,1,18,1,6,1,2,1,1,4,1,42,6,1,4,2,3,1,2,6,1,3,4,

%T 1,8,1,4,1,2,2,7,1,4,1,1,3,3,1,3,1,1,7,6,1,5,10,2,2,1,8,1,2,16,24,1,6,

%U 1,8,1,1,5,1,1,1,1,1,2,1,1

%N Continued fraction expansion for log_2(10).

%H Harry J. Smith, <a href="/A028232/b028232.txt">Table of n, a(n) for n = 1..20000</a>

%e 0.3010299956... = 0 + 1/(3 + 1/(3 + 1/(9 + 1/(2 + ...)))).

%t ContinuedFraction[Log[2,10],80] (* _Harvey P. Dale_, Apr 17 2012 *)

%o (PARI) { allocatemem(932245000); default(realprecision, 21000); x=contfrac(log(2)/log(10)); for (n=1, 20000, write("b028232.txt", n, " ", x[n+1])); } \\ _Harry J. Smith_, Apr 15 2009

%K nonn,cofr

%O 1,1

%A _N. J. A. Sloane_

%E Added an allocatemem statement to my PARI program. - _Harry J. Smith_, Apr 18 2009