A248307 Egyptian fraction representation of sqrt(84) (A010535) using a greedy function.
9, 7, 45, 13885, 214285628, 141928437783596058, 34799563546219637107559010387434773, 2746748689148547334068147992469084900474381603247549175076877182361594
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[ 84]]