OFFSET
0,1
EXAMPLE
1/2+1/2+1/2+1/2 = 2 (integer part of "e").
1/2+1/5+1/59+1/751 gives an approximation that is good to 10 decimal digits.
Adding the other fractions we get approximations good to 18, 35, 69, 137, 272, 541 decimal digits.
MAPLE
P:=proc(n) local a, i; a:=evalf(exp(1)-2, 100); for i from 1 by 1 to 4 do print(2); od; for i from 1 by 1 to n do if 1/ithprime(i)<a then a:=a-1/ithprime(i); print(a); print(ithprime(i)); fi; od; end: P(100000);
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Apr 24 2008
STATUS
approved