A248319 Egyptian fraction representation of sqrt(96) (A010547) using a greedy function.
9, 2, 4, 21, 2942, 53513091, 167326045060176459, 28151219628621255951104435939025563, 1114022548504683064752039841443977072775869961232641319345703597106467
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[ 96]]