%I #47 Oct 02 2022 23:02:28
%S 1,5,8,1,9,7,6,7,0,6,8,6,9,3,2,6,4,2,4,3,8,5,0,0,2,0,0,5,1,0,9,0,1,1,
%T 5,5,8,5,4,6,8,6,9,3,0,1,0,7,5,3,9,6,1,3,6,2,6,6,7,8,7,0,5,9,6,4,8,0,
%U 4,3,8,1,7,3,9,1,6,6,9,7,4,3,2,8,7,2,0
%N Decimal expansion of e/(e-1) = 1 + 1/e + 1/e^2 + ...
%D Jean-Marie Monier, Analyse, Exercices corrigés, 2ème année, MP, Dunod, 1997, Exercice 3.3.29.a) pp. 286 and 307.
%H G. C. Greubel, <a href="/A185393/b185393.txt">Table of n, a(n) for n = 1..10000</a>
%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Tannery%27s_theorem">Tannery's theorem</a>.
%H <a href="/index/Tra#transcendental">Index entries for transcendental numbers</a>
%F Equals Sum_{n>=0} 1/exp(n). - _Vaclav Kotesovec_, Jan 30 2015
%F From _Vaclav Kotesovec_, Oct 13 2018: (Start)
%F Equals 1 - LambertW(exp(1/(1 - exp(1))) / (1 - exp(1))).
%F Equals -LambertW(-1, exp(1/(1 - exp(1))) / (1 - exp(1))).
%F (End)
%F Equals Sum_{k>=0} (-1)^k*B(k)/k!, where B(k) is the k-th Bernoulli number. - _Amiram Eldar_, May 08 2021
%F Equals Integral_{x=0..oo} exp(-floor(x)) dx (Monier). - _Bernard Schott_, May 08 2022
%F Equals lim_{n->oo} Sum_{k=1..n} (k/n)^n (via Tannery's theorem). - _Stoyan Apostolov_, May 24 2022
%e 1.58197670686932642438500200510901155854686930107539613626678705964804...
%t RealDigits[E/(E - 1), 10, 100][[1]] (* _G. C. Greubel_, Jun 29 2017 *)
%o (PARI) exp(1)/(exp(1)-1)
%o (Python)
%o from sympy import E
%o print(list(map(int, str((E/(E-1)).n(88))[:-1].replace(".", "")))) # _Michael S. Branicky_, May 25 2022
%Y Cf. A073333, A254445, A254446, A320349, A320350.
%K nonn,cons,easy
%O 1,2
%A _Charles R Greathouse IV_, Mar 20 2012
|