r = float(input('r= '))
n = int(input('n= '))
svar = 0
for i in range(0, n + 1):
    svar += r ** i
print(svar)

d7afafacec9a43fc8d0acb2b63d4c9c8be9d7b7c
<mask token>

<mask token>
for i in range(0, n + 1):
    svar += r ** i
print(svar)

r = float(input('r= '))
n = int(input('n= '))
svar = 0
for i in range(0, n + 1):
    svar += r ** i
print(svar)
