login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Continued fraction for Pi/e.
2

%I #17 Aug 04 2024 12:44:39

%S 1,6,2,2,1,2,6,8,2,1,1,1,4,3,1,1,66,2,1,1,2,4,2,7,46,10,2,1,18,1,23,

%T 10,14,1,1,4,3,1,6,2,5,1,1,1,18,355,1,1,5,3,4,1,28,5,2,1,3,16,3,25,4,

%U 7,1,11,2,2,1,9,2,31,1,20,1,2,1,1,6,13,1,3,1,3,4,125,1,7,2,2,1,3,5,1,1,6,1

%N Continued fraction for Pi/e.

%H Harry J. Smith, <a href="/A061666/b061666.txt">Table of n, a(n) for n = 0..19999</a>

%e 1.155727349790921717910093183... = 1 + 1/(6 + 1/(2 + 1/(2 + 1/(1 + ...))))

%t ContinuedFraction[Pi/E,100] (* _Harvey P. Dale_, Oct 31 2011 *)

%o (PARI) contfrac(Pi/exp(1))

%o (PARI) allocatemem(932245000); default(realprecision, 21000); x=contfrac(Pi/exp(1)); for (n=1, 20000, write("b061666.txt", n-1, " ", x[n])); \\ _Harry J. Smith_, Jul 25 2009

%Y Cf. A061382 (decimal expansion).

%K cofr,easy,nonn

%O 0,2

%A _Jason Earls_, Jun 16 2001

%E Extra comma removed from terms by _Harry J. Smith_, Jul 25 2009

%E Offset changed by _Andrew Howroyd_, Aug 04 2024