login
Egyptian fraction representation of sqrt(62) (A010515) using a greedy function.
0

%I #6 Oct 21 2019 01:17:30

%S 7,2,3,25,1483,4313226,217223937382030,165021459996112229693378902726,

%T 190678813907175651157329403848309114198709593621065210721452,

%U 47297173716207795520732599463808376437483496369104651889972118237012796007094238114464594140905135341922378258897840741

%N Egyptian fraction representation of sqrt(62) (A010515) 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[ 62]]

%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