x, n = int(input()), int(input())
for i in range(1, n+1):
y = (-1)**(i-1) * ((i**(2*i - 1))/(2*i - 1))
print(y)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
x, n = int(input()), int(input())
for i in range(1, n+1):
y = (-1)**(i-1) * ((i**(2*i - 1))/(2*i - 1))
print(y)