A248321 Egyptian fraction representation of sqrt(98) (A010549) using a greedy function.
9, 2, 3, 16, 274, 83555, 12961139206, 198730293272988591339, 183217938497357958578283307441647343725436, 36471466160614116433355003352211955756967345223328177891902116459111899483704330391
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[ 98]]
Comments