Объяснение:
n = int(input())
x = float(input())
s = 0
x_ = x
i_ = 1.0
for i in range(1, n + 1):
print(x_, i_)
s += x_/i_
x_ *= x * x
i_ *= (-1)*(2 * i) * (2 * i + 1)
print(s)
Объяснение:
n = int(input())
x = float(input())
s = 0
x_ = x
i_ = 1.0
for i in range(1, n + 1):
print(x_, i_)
s += x_/i_
x_ *= x * x
i_ *= (-1)*(2 * i) * (2 * i + 1)
print(s)