Computer Science, asked by sid5560, 2 months ago

Write a program to find the sum of series - (1) S = 1+2/2*3 + 2+3/3*4 + 3+4/4*5
(2) 1+1/2! + 1/3! + 1/4 +. . . . 1/n!

Answers

Answered by gyaneshwarsingh882
0

Answer:

Explanation:

You have been given a series (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + … + (n*n), find out the sum of the series till nth term.  

Examples :  

 

Input : n = 3

Output : 14

Explanation : 1 + 1/2^2 + 1/3^3

Input : n = 5

Output : 55

Explanation : (1*1) + (2*2) + (3*3) + (4*4) + (5*5)

 

Recommended: Please try your approach on {IDE} first, before moving on to the solution.

 

}

Similar questions