A248251 Egyptian fraction representation of sqrt(23) (A010479) using a greedy function.
4, 2, 4, 22, 2653, 21700059, 708858809575725, 1165753299339083780718554998198, 2548635100713650540210812530804809217002270820405582029350843, 9424721747010820452946739585309019492765231528601856929750632998033892638026047178801699999141027371964867528932823084053
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[ 23]]