A248237 Egyptian fraction representation of sqrt(7) (A010465) using a greedy function.
2, 2, 7, 346, 250326, 159992246122, 43126926376468440463866, 2067900185855597116733968004943580535040713497, 14833490144163739987168640921306687956266487136609932761918465200939453258507455567518894133
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[ 7]]