A248240 Egyptian fraction representation of sqrt(11) (A010468) using a greedy function.
3, 4, 16, 243, 104559, 25176928409, 26586186736052347315834, 1862816215759124563815793524962166009780011752, 5214712907768239185916350444296489272388117885310572145230445264540008760076034857528421553
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[ 11]]
Comments