Python 3.7.4
Объяснение:
>>> p = 0
>>> a = 4
>>> for i in range(5):
a = 2 * a - 1
p = p + a
>>> print (a)
97
>>> print (p)
191
>>>
Python 3.7.4
Объяснение:
>>> p = 0
>>> a = 4
>>> for i in range(5):
a = 2 * a - 1
p = p + a
>>> print (a)
97
>>> print (p)
191
>>>