A248273 Egyptian fraction representation of sqrt(47) (A010501) using a greedy function.
6, 2, 3, 45, 10097, 180933939, 70214804893433857, 24596197522004292913199742834240369, 851917396155337556711167562167009352482986581505723891411145951010937, 1830843559366860042528367793031819716270540620095563249767306742965459078226069734667092696644523226923832775331940549734586475295256730688
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[ 47]]
Comments