Question: 2. Write a python program that will ask the user for a number n, and output the sum of the first n terms of the

 2. Write a python program that will ask the user for

2. Write a python program that will ask the user for a number n, and output the sum of the first n terms of the following infinite series: 1 + $+$+...+ [15 marks) Sample input: 10 Sample output: 2.9289682539682538 Explanation: 1 + 1 + $ + ... + to - 2.9289682539682538

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!