{"id":16892,"date":"2021-08-12T09:25:20","date_gmt":"2021-08-12T03:55:20","guid":{"rendered":"https:\/\/python-programs.com\/?p=16892"},"modified":"2021-11-22T18:38:31","modified_gmt":"2021-11-22T13:08:31","slug":"python-program-to-find-the-missing-term-of-any-arithmetic-progression","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-the-missing-term-of-any-arithmetic-progression\/","title":{"rendered":"Python Program to Find the Missing Term of any Arithmetic Progression"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Find Strong Numbers in a List<\/a>
\nArithmetic progression:<\/strong><\/p>\n

An Arithmetic progression is a mathematical sequence of numbers in which the difference between the consecutive terms is constant.<\/p>\n

In general, an arithmetic sequence looks like this:\u00a0 a, a+d, a+2d, a+3d,…………….<\/p>\n

where a = first term<\/p>\n

d= common difference<\/p>\n

Formula<\/strong> : d= second term – first term<\/p>\n

Given an Arithmetic series, and the task is to find the missing term in the given series.<\/p>\n

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

Example 1:<\/strong><\/p>\n

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

Given Arithmetic Progression series = [10, 14, 18, 22, 30]<\/pre>\n

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

The missing term in the given Arithmetic Progression series is:\r\n26<\/pre>\n

Example 2:<\/strong><\/p>\n

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

Given Arithmetic Progression series = [100, 300, 400, 500, 600, 700]<\/pre>\n

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

The missing term in the given Arithmetic Progression series is:\r\n200<\/pre>\n

Program to Find the missing term of any Arithmetic progression<\/h2>\n

Below are the ways to find the missing term in the given Arithmetic progression series.<\/p>\n