A248264 Egyptian fraction representation of sqrt(38) (A010492) using a greedy function.
6, 7, 47, 3569, 13543237, 813461964457561, 7421316108781190769825230152615, 711253293828537228004750977021512448161146012227144474046636992, 2200029703970808428058199608953702518884689809814432014002394662129432102727790523039076189301028040002865113400234535183784056
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[ 38]]
Comments