Calculate the sum of the first n terms of the sequence shown in the image:
A natural number n, where 1 \leq n \leq 100.
Print the sum of the first n terms of the sequence, rounded to three decimal places.
Example 1