OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Engel Expansion
Eric Weisstein's World of Mathematics, Golden Ratio
EXAMPLE
log(phi) = 0.4812118250596... = 1/3 + 1/(3*3) + 1/(3*3*4) + 1/(3*3*4*4) + 1/(3*3*4*4*4) + 1/(3*3*4*4*4*6) + ...
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[Log[GoldenRatio], 7! ], 40]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Nov 28 2016
STATUS
approved