Ответ:
a)
n = int(input())
s = 0
for i in range(1, n+1):
s += 2 ** i
print(s)
б)
a = int(input())
x = int(input())
p = 1
p *= (a ** i + i * x)
print(p)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
a)
n = int(input())
s = 0
for i in range(1, n+1):
s += 2 ** i
print(s)
б)
a = int(input())
x = int(input())
n = int(input())
p = 1
for i in range(1, n+1):
p *= (a ** i + i * x)
print(p)