A248261 Egyptian fraction representation of sqrt(34) (A010489) using a greedy function.
5, 2, 4, 13, 249, 78409, 36737419013, 3360517821921008389676, 12410117686109445240372967020019944131780632, 3346975977981026206584708326983128003661219924365061759193139960235987881485856695085453
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[ 34]]