A248248 Egyptian fraction representation of sqrt(20) (A010476) using a greedy function.
4, 3, 8, 73, 9617, 111131795, 26084503201670555, 4157115685705509978962832510685264, 147322611763368949503218439363472434087529649552239912252006589221170, 71615688159358613181735412731094718668653530665367791449989367208307390123881747858538896669229709245658779872053034609094278277577821587
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[ 20]]