A248301 Egyptian fraction representation of sqrt(77) (A010529) using a greedy function.
8, 2, 4, 41, 1742, 11028177, 162993884286434, 98590211385064017280363413293, 12117436325243830366668048782511200599594547426236327606671, 1005207586152279178371805242956335367687650840213497606799698333833564307176435895593356718339151523032260919541519453
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[ 77]]
Comments