OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Engel Expansion
Eric Weisstein's World of Mathematics, Plastic Constant
EXAMPLE
(1/2+sqrt(23/108))^(1/3) + (1/2-sqrt(23/108))^(1/3) = 1.324717957244... = 1/1 + 1/(1*4) + 1/(1*4*4) + 1/(1*4*4*6) + 1/(1*4*4*6*6) + 1/(1*4*4*6*6*27) + ...
MATHEMATICA
EngelExp[A_, n_]:=Join[Array[1&, Floor[A]], First@Transpose@NestList[{Ceiling[1/Expand[ #[[1]]#[[2]]-1]], Expand[ #[[1]]#[[2]]-1]}&, {Ceiling[1/(A-Floor[A])], A-Floor[A]}, n-1]]; EngelExp[N[(1/2 + Sqrt[23/108])^(1/3) + (1/2 - Sqrt[23/108])^(1/3), 7! ], 40]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Nov 28 2016
STATUS
approved