Язык python:
import math
n = int (input())
sr_log = float(0)
for i in range(1, n+1, 2):
sr_log += float(math.log(i)/i)
print(sr_log)
Язык python:
import math
n = int (input())
sr_log = float(0)
for i in range(1, n+1, 2):
sr_log += float(math.log(i)/i)
print(sr_log)