A248284 Egyptian fraction representation of sqrt(59) (A010512) using a greedy function.
7, 2, 6, 70, 5172, 55202902, 8951438750970150, 99495402337297602079238688437886, 15492800774386064339112007474585245303291252482336052648764111003, 391698881553953026777765090845306600440609784819171044804973696937372852634612474031212566575806121439678866692229277539673721524
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[ 59]]