A248289 Egyptian fraction representation of sqrt(65) (A010517) using a greedy function.
8, 17, 292, 104588, 38180791782, 3220186027640389204438, 514699020130621511259820819971940751063386467, 352263737947121519527774929870101098823418099762680744113382295431246430941544915986778001
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[ 65]]
Comments