A248288 Egyptian fraction representation of sqrt(63) (A010516) using a greedy function.
7, 2, 3, 10, 256, 69688, 5330178475, 685643579227613855733, 19857919470304339362673575257858955364290957, 4322562711957148145852339662715119494243446939653452977452988955819120724647597129517346
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[ 63]]
Comments