Computer Science, asked by sarath7138, 9 months ago

Write a python program for following series 21,25,33,49,81...upto n terms

Answers

Answered by bktbunu
0

Explanation:

n = int(input("Enter the number of terms in the series: "))

a = 21

c = 1

print ("The series is as follows")

while c <= n:

print(a)

a = a + (2**(c+1))

c = c + 1

Similar questions