|
|
A091832
|
|
Pierce expansion of 1/e^2.
|
|
1
|
|
|
7, 18, 19, 136, 349, 357, 1354, 6996, 7135, 9531, 11558, 15996, 17432, 52118, 151048, 427802, 821834, 877819, 972918, 1046690, 1540789, 3653077, 8200738, 9628573, 164153335, 5607624822, 86457467082, 141885251873, 151882622551
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
If u(0) = exp(1/m) with m an integer >= 1 and u(n+1) = u(n)/frac(u(n)) then floor(u(n)) = m*n.
|
|
LINKS
|
|
|
FORMULA
|
Let u(0) = exp(2) and u(n+1) = u(n)/frac(u(n)) where frac(x) is the fractional part of x, then a(n) = floor(u(n)).
1/e^2 = 1/a(1) - 1/(a(1)*a(2)) + 1/(a(1)*a(2)*a(3)) - 1/(a(1)*a(2)*a(3)*a(4)) ...
Limit_{n->oo} a(n)^(1/n) = e.
|
|
MATHEMATICA
|
PierceExp[A_, n_] := Join[Array[1 &, Floor[A]], First@Transpose@ NestList[{Floor[1/Expand[1 - #[[1]] #[[2]]]], Expand[1 - #[[1]] #[[2]]]} &, {Floor[1/(A - Floor[A])], A - Floor[A]}, n - 1]]; PierceExp[N[1/E^2, 7!], 15] (* G. C. Greubel, Nov 14 2016 *)
|
|
PROG
|
(PARI) default(realprecision, 100000); r=exp(2); for(n=1, 100, s=(r/(r-floor(r))); print1(floor(r), ", "); r=s) \\ Benoit Cloitre [amended by Georg Fischer, Nov 20 2020]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|