{"id":22607,"date":"2021-09-27T08:33:45","date_gmt":"2021-09-27T03:03:45","guid":{"rendered":"https:\/\/python-programs.com\/?p=22607"},"modified":"2021-11-22T18:35:39","modified_gmt":"2021-11-22T13:05:39","slug":"python-program-to-print-series-1-4-7-10-13-16-19-n","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-series-1-4-7-10-13-16-19-n\/","title":{"rendered":"Python Program to Print Series -1 4 -7 10 -13 16 -19…n"},"content":{"rendered":"

In the previous article, we have discussed Python Program To Print Cube Number Series 1 8 27 64…N<\/a>
\nGiven a number N and the task is to print the series (-1 4 -7 10 -13 16 -19…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) = 12<\/pre>\n

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

The above series till the given number{ 12 } is :\r\n-1 4 -7 10 -13 16 -19 22 -25 28 -31 34<\/pre>\n

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

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

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

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

The above series till the given number{ 15 } is :\r\n-1 4 -7 10 -13 16 -19 22 -25 28 -31 34 -37 40 -43<\/pre>\n

Program to Print Series -1 4 -7 10 -13 16 -19…n in Python<\/h2>\n

Below are the ways to print the series (-1 4 -7 10 -13 16 -19…N)<\/strong> till the given number N in Python:<\/p>\n