login
Egyptian fraction representation of sqrt(26) (A010481) using a greedy function.
1

%I #12 Oct 20 2019 21:24:09

%S 5,11,124,21784,767400293,1762025132544871871,

%T 3756028786746097256770667892973677974,

%U 42736560346010944990137576929510502074095427615068285034007804816583306199

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

%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