A248308 Egyptian fraction representation of sqrt(85) (A010536) using a greedy function.
9, 5, 52, 3188, 84918152, 16076240863422804, 414301661246661635838512408392212, 322874955397009416384181733402291919609578193183044079681678443089, 162879628085209618118393406431670411111270528217363349375030319925289267303145152426058897418548846768803944306076778632776827619214
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[ 85]]