A248239 Egyptian fraction representation of sqrt(10) (A010467) using a greedy function.
3, 7, 52, 5271, 32510519, 1551821465402536, 2553352811042166137014681056617, 6785214292790116540717856342564735260380655042140053309985580, 57499324177051573068556985649019772314982410954417460069917198506894068347777607349711324456505504280305966462257432295349
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[ 10]]