summaryrefslogtreecommitdiff
path: root/test/2a.py
blob: f45041a2c3529477c0f20ea079fac26dceab5d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
n = int(input())
x = int(input())
m = 1
while n > 1:
    tmp = 2 * x
    m = m * tmp
    n = n - 1
c = 0
for i in range(m):
    g = 2 * m
    c = c + i + g
print(m + c)