login
(Greedy) Egyptian fraction expansion of log 2.
30

%I #25 Jul 11 2022 08:36:56

%S 2,6,38,6071,144715221,58600453312405245,

%T 28261174043083404192255923187258021,

%U 1350299665604204277005894785275782053022737307184211775676631561245153

%N (Greedy) Egyptian fraction expansion of log 2.

%H Amiram Eldar, <a href="/A118324/b118324.txt">Table of n, a(n) for n = 1..11</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/EgyptianFraction.html">Egyptian Fraction</a>.

%H <a href="/index/Ed#Egypt">Index entries for sequences related to Egyptian fractions</a>.

%e log(2) = 1/2 + 1/6 + 1/38 + 1/6071 + 1/144715221 + ...

%t lst={};k=N[Log[2],1000];Do[s=Ceiling[1/k];AppendTo[lst,s];k=k-1/s,{n,12}];lst (* _Vladimir Joseph Stephan Orlovsky_, Nov 02 2009 *)

%o (PARI) x=log(2); for (k=1,8,d=ceil(1/x);x=x-1/d;print(d)) \\ _Jaume Oliver Lafont_, Feb 24 2009

%Y Cf. A002162 (log(2)).

%K nonn,frac

%O 1,1

%A _Eric W. Weisstein_, Apr 23 2006

%E a(8) from _Jaume Oliver Lafont_, Feb 24 2009