A248295 Egyptian fraction representation of sqrt(71) (A010523) using a greedy function.
8, 3, 11, 525, 386544, 639498711870, 1018235602235689213572994, 6335607869766803762689695208858285361004070429148, 42457213694266417320054923496312615766199040305766336893524891089914272708684998227290613582884885
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[ 71]]
Comments