A248302 Egyptian fraction representation of sqrt(78) (A010530) using a greedy function.
8, 2, 4, 13, 207, 145528, 2014567277837, 18506674542689699353989922, 29204169131207852528143087130566230597483060288517588, 1413186736193694972997145387255081607494646716902772853300760690304360053815944509194409970991405502998192
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[ 78]]