A248238 Egyptian fraction representation of sqrt(8) (A010466) using a greedy function.
2, 2, 4, 13, 665, 3467111, 21396320062803, 658294037732639489281287503, 22388829144690900907571301740725846339553919136567283158, 522702581366233755060474792093646176756253098085471164612763539572950704431022333880928617340303584572474648760
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[ 8]]
Comments