[go: up one dir, main page]

login
Egyptian fraction representation of sqrt(23) (A010479) using a greedy function.
0

%I #6 Oct 20 2019 20:24:07

%S 4,2,4,22,2653,21700059,708858809575725,

%T 1165753299339083780718554998198,

%U 2548635100713650540210812530804809217002270820405582029350843,9424721747010820452946739585309019492765231528601856929750632998033892638026047178801699999141027371964867528932823084053

%N Egyptian fraction representation of sqrt(23) (A010479) using a greedy function.

%t Egyptian[nbr_] := Block[{lst = {IntegerPart[nbr]}, cons = N[ FractionalPart[ nbr], 2^20], denom, iter = 8}, While[

%t iter > 0, denom = Ceiling[ 1/cons]; AppendTo[ lst, denom]; cons -= 1/denom; iter--]; lst]; Egyptian[ Sqrt[ 23]]

%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