A248270 Egyptian fraction representation of sqrt(44) (A010498) using a greedy function.
6, 2, 8, 122, 18919, 402739144, 764123173937021975, 2148666191962903360885805290461855276, 8622580654686644746427953833014483269744901669599325824509666827330296874
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[ 44]]