A248317 Egyptian fraction representation of sqrt(94) (A010545) using a greedy function.
9, 2, 6, 35, 8223, 105523068, 11519554345709228, 1494630770210131639238952310389890, 3373102223355000280957265659458842393059982648952025309066380048000, 11877410529374051888559091719126415241014959874914182236570178526215397825159914010265110751425103744082344062654761136352199992571445
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[ 94]]