A248258 Egyptian fraction representation of sqrt(31) (A010486) using a greedy function.
5, 2, 15, 911, 756131657, 1046059081493109619, 1823555845900657755132295578770597587, 5295210870312939233563525303202129576974975306672437715711158044936692625
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[ 31]]
Comments