login
Egyptian fraction representation of sqrt(93) (A010544) using a greedy function.
0

%I #6 Oct 24 2019 23:00:57

%S 9,2,7,1261,1675816,88347178296709,9125661908898813209593366366,

%T 121027088765475470246692180437471007789578710116057334417,

%U 12633191396046337132562053250878765047674173616082104244017001032417219816643782643353462090455648430033589876568764

%N Egyptian fraction representation of sqrt(93) (A010544) using a greedy function.

%t 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[ 93]]

%Y Egyptian fraction representations of the square roots: A006487, A224231, A248235-A248322.

%Y Egyptian fraction representations of the cube roots: A129702, A132480-A132574.

%K nonn

%O 0,1

%A _Robert G. Wilson v_, Oct 04 2014