{"id":20070,"date":"2021-09-06T13:36:00","date_gmt":"2021-09-06T08:06:00","guid":{"rendered":"https:\/\/python-programs.com\/?p=20070"},"modified":"2021-11-22T18:36:28","modified_gmt":"2021-11-22T13:06:28","slug":"python-program-to-find-sum-of-series-11-31-51-7-1-n2","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-sum-of-series-11-31-51-7-1-n2\/","title":{"rendered":"Python Program to Find Sum of Series 1+1\/3+1\/5+1\/7+…..1\/(N+2)"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Find the Sum of Series 3+7+13+21…..+N<\/a><\/p>\n

Given a number N and the task is to find the sum of the given series (1+1\/3+1\/5+1\/7+…..1\/(N+2))<\/strong>\u00a0for the given number in Python.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 25<\/pre>\n

Output:<\/strong><\/p>\n

The total sum of the series till the given number { 25 } =  2.2643528386481675<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 14<\/pre>\n

Output:<\/strong><\/p>\n

The total sum of the series till the given number { 14 } =  1.9551337551337549<\/pre>\n

Program to Find Sum of Series 1+1\/3+1\/5+1\/7+…..1\/(N+2) in Python<\/h2>\n

Below are the ways to find the sum of the given series (1+1\/3+1\/5+1\/7+…..1\/(N+2))\u00a0<\/strong>for the given number in Python:<\/p>\n