A248280 Egyptian fraction representation of sqrt(55) (A010508) using a greedy function.
7, 3, 13, 169, 40134, 1830451404, 6293054590385574716, 99455005060617253985959291400980656073, 14444603640289593121113624113291244368730444113988502168325108818988403980391
Offset: 0
Keywords
Crossrefs
Programs
-
Mathematica
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[ 55]]