A248287 Egyptian fraction representation of sqrt(62) (A010515) using a greedy function.
7, 2, 3, 25, 1483, 4313226, 217223937382030, 165021459996112229693378902726, 190678813907175651157329403848309114198709593621065210721452, 47297173716207795520732599463808376437483496369104651889972118237012796007094238114464594140905135341922378258897840741
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[ 62]]
Comments