A248313 Egyptian fraction representation of sqrt(90) (A010541) using a greedy function.
9, 3, 7, 94, 237731, 136665970245, 67743329578333536936775, 10460967934729507088324847821919729395581628411, 306082921822884432486900888604912785778982912341380971382664469281664438592792428646830982341
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[ 90]]
Comments