A248244 Egyptian fraction representation of sqrt(15) (A010472) using a greedy function.
3, 2, 3, 26, 842, 1210718, 3125731485713, 19754948045006045983659938, 1065761639370207788402744631308304462734917602085737, 324026619188969581072902747191745217929877633476958459802312813323913819842709323919885352524528244937458
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[ 15]]
Comments