PROGRAMMING:Finding the approximate sum of the first n terms of the odd one part sequence
This problem requires programming to calculate the approximate sum of the first n terms of the sequence 1 + 1 / 3 + 1 / 5 +... (hint: use Ceil Function).
###Input format:
The input gives a positive integer n on one line.
###Output format:
Output approximate sum s in the format of "sum ≈ s" in one line. S is the smallest integer greater than the sum of sequences
###Input example:
Here is a set of inputs. For example:
```in
twenty-three
```
###Output example:
The corresponding output is given here. For example:
```out
sum ≈ 3
```
answer:If there is no answer, please comment
```
import math
n=int(input())
s=sum([1/(2*i+1) for i in range(0,n)])
print("sum ≈ {}".format(math.ceil(s)))
```
###Input format:
The input gives a positive integer n on one line.
###Output format:
Output approximate sum s in the format of "sum ≈ s" in one line. S is the smallest integer greater than the sum of sequences
###Input example:
Here is a set of inputs. For example:
```in
twenty-three
```
###Output example:
The corresponding output is given here. For example:
```out
sum ≈ 3
```
answer:If there is no answer, please comment
```
import math
n=int(input())
s=sum([1/(2*i+1) for i in range(0,n)])
print("sum ≈ {}".format(math.ceil(s)))
```