A248260 Egyptian fraction representation of sqrt(33) (A010488) using a greedy function.
5, 2, 5, 23, 923, 1039448, 1349594009502, 1841990944227649463764190, 5531888379621714420992617902281239594988386275117, 172423874327527416450254906621893256497583527925050132860644029730203113536215473159687066655835408
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[ 33]]
Comments