A248304 Egyptian fraction representation of sqrt(80) (A010532) using a greedy function.
8, 2, 3, 10, 92, 14491, 322744746, 254675920984809222, 106241547612751834703565555273467625, 63822696103699851476352795738044494170110650314781277998043037878782067
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[ 80]]
Comments