{"id":22562,"date":"2021-09-27T09:19:11","date_gmt":"2021-09-27T03:49:11","guid":{"rendered":"https:\/\/python-programs.com\/?p=22562"},"modified":"2021-11-22T18:35:38","modified_gmt":"2021-11-22T13:05:38","slug":"python-program-to-print-series-6-9-14-21-30-41-54-n","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-series-6-9-14-21-30-41-54-n\/","title":{"rendered":"Python Program to Print Series 6, 9, 14, 21, 30, 41, 54 … N"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Print Series 1, -2, 6, -15, 31 … N<\/a>
\nGiven a number N and the task is to print the series (6, 9, 14, 21, 30, 41, 54 … N)<\/strong> till the given number N in Python.<\/p>\n

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

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

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

Given Number (Limit) = 7<\/pre>\n

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

The above series till the given number{ 7 } is :\r\n6 9 14 21 30 41 54<\/pre>\n

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

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

Given Number (Limit) = 10<\/pre>\n

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

The above series till the given number{ 10 } is :\r\n6 9 14 21 30 41 54 69 86 105<\/pre>\n

Program to Print Series 6, 9, 14, 21, 30, 41, 54 … N\u00a0in Python<\/h2>\n

Below are the ways to print the series (6, 9, 14, 21, 30, 41, 54 … N)<\/strong> till the given number N in Python :<\/p>\n