A248243 Egyptian fraction representation of sqrt(14) (A010471) using a greedy function.
3, 2, 5, 25, 604, 568947, 524109421430, 456412587974094208278324, 217923503007735559214372603301923745039374715408, 53829867761684622028477476025136774072620218179339699337234480313626745601639126196448075512614
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[ 14]]