A248259 Egyptian fraction representation of sqrt(32) (A010487) using a greedy function.
5, 2, 7, 72, 9241, 229909903, 85086814482844985, 23179346469573782778010843389086345, 543347867420258195663107222041076121949552033670222863973158866609327, 741522735509298769232902024568403103695824837660291384400704443062457446366917782889948614422252425565925024142554380383285632350884136295
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[ 32]]