login
Egyptian fraction representation of sqrt(5) (A002163) using a greedy function.
89

%I #16 Jul 11 2022 08:34:59

%S 2,5,28,2828,11765225,244616741135815,200345939091917238204751820525,

%T 58201747163932603551486315260692070868016224421408235882974,

%U 3950825087286888657146721201016118914863842749907092675300186489072730656660851348699680127901879302396406080621599015

%N Egyptian fraction representation of sqrt(5) (A002163) using a greedy function.

%H Amiram Eldar, <a href="/A248235/b248235.txt">Table of n, a(n) for n = 0..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>.

%t Egyptian[nbr_] := Block[{lst = {IntegerPart[nbr]}, cons = N[ FractionalPart[ nbr], 2^20], denom, iter = 8}, While[ iter > 0, denom = Ceiling[ 1/cons]; AppendTo[ lst, denom]; cons -= 1/denom; iter--]; lst]; Egyptian[ Sqrt[ 5]]

%Y Egyptian fraction representations of the square roots: A006487, A224231, A248235-A248322.

%Y Egyptian fraction representations of the cube roots: A129702, A132480-A132574.

%Y Cf. A002163.

%K nonn,frac

%O 0,1

%A _Robert G. Wilson v_, Oct 04 2014