For the given value of n, compute the sum
One positive integer n~(n \le 1000).
Print the sum with 6 decimal places.
Example 1
Example 2