A248254 Egyptian fraction representation of sqrt(27) (A010482) using a greedy function.
5, 6, 34, 13516, 202119099, 64783216365098195, 22100984125756663557825370106132649, 666714143657173655990633057343413567220367208291412102910376204532308
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[ 27]]