Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/for/computing-the-number-e

Computing the number e

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Medium 1000 ms 64 MB 46%
Share

A positive integer is given. Approximate the mathematical constant with the sum:

Convergence of the series for Euler's number

Input

One positive integer .

Output

One number — , with exactly 6 digits after the decimal point (for example, 2.000000).

Note

Examples

Input #1
1
Output #1
2.000000
Input #2
3
Output #2
2.666667

Sign in to submit a solution

Signing up is free and takes a minute.