A248316 Egyptian fraction representation of sqrt(93) (A010544) using a greedy function.
9, 2, 7, 1261, 1675816, 88347178296709, 9125661908898813209593366366, 121027088765475470246692180437471007789578710116057334417, 12633191396046337132562053250878765047674173616082104244017001032417219816643782643353462090455648430033589876568764
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[ 93]]
Comments