Computer Science, asked by Anonymous, 6 months ago

Write a Python script to print the sum of following series. Take nth term from the user.2²+4²+8²+16²...upto nth term

Answers

Answered by mamtabothra519
0

Explanation:

Input : 3

Output : 9

Explanation: So here the tern of the sequence upto n = 3 are:

1, 3, 5 And hence the required sum is = 1 + 3 + 5 = 9

Input : 6

Output : 36

Similar questions