Problem A
Random Permutation
An integer sequence with length
Your task is to calculate the expected number of
permutations
Input
The only line contains an integer
Output
Output the expected number of permutations satisfying the
condition. Your answer is acceptable if its absolute or
relative error does not exceed
Formally speaking, suppose that your output is
Sample Input 1 | Sample Output 1 |
---|---|
2 |
1.000000000000 |
Sample Input 2 | Sample Output 2 |
---|---|
3 |
1.333333333333 |
Sample Input 3 | Sample Output 3 |
---|---|
50 |
104147662762941310907813025277584020848013430.758061352192 |