{"id":22245,"date":"2021-09-23T19:11:08","date_gmt":"2021-09-23T13:41:08","guid":{"rendered":"https:\/\/python-programs.com\/?p=22245"},"modified":"2021-11-22T18:35:41","modified_gmt":"2021-11-22T13:05:41","slug":"python-program-to-print-series-1-9-17-33-49-73-97-n","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-series-1-9-17-33-49-73-97-n\/","title":{"rendered":"Python Program to Print Series 1 9 17 33 49 73 97 …N"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Print Series 0, 2, 8, 14, 24, 34 …N<\/a>
\nGiven a number N and the task is to print the series (1 9 17 33 49 73 97 …N)<\/strong>\u00a0till the given number N in Python.<\/p>\n

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

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

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

Given Number = 8<\/pre>\n

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

The above series till the given number{ 8 } is :\r\n1 9 17 33 49 73 97 129<\/pre>\n

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

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

Given Number = 4<\/pre>\n

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

The above series till the given number{ 4 } is :\r\n1 9 17 33<\/pre>\n

Program to Print Series 1 9 17 33 49 73 97 …N in Python<\/h2>\n

Below are the ways to print the series (1 9 17 33 49 73 97 …N)<\/strong> till the given number N in Python:<\/p>\n