A248257 Egyptian fraction representation of sqrt(30) (A010485) using a greedy function.
5, 3, 7, 967, 1028069, 2298068118217, 5494201416226460930421913, 8921656602209859921713003519980673897631224869075674, 838074105556913621236663949120105672159883231833809533473972526431411898035963444027095791284399338983624
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[ 30]]
Comments