Program to print Arithmetic Progression series

Given first term (a), common difference (d) and a integer n of the Arithmetic Progression series, the task is to print the series. Examples :… Read More »

Sum of Arithmetic Geometric Sequence

In mathematics, an arithmetico–geometric sequence is the result of the term-by-term multiplication of a geometric progression with the corresponding terms of an arithmetic progression. is… Read More »

Minimum De-arrangements present in array of AP (Arithmetic Progression)

Given an array of n-elements. Given array is a permutation of some Arithmetic Progression. Find the minimum number of De-arrangements present in that array so… Read More »

Find if a number is part of AP whose first element and difference are given

Given three non-negative integers a, d and x. Here, a is the first element, d is the difference of an AP (Arithmetic Progression). We need… Read More »

Count of AP (Arithmetic Progression) Subsequences in an array

Given an array of n positive integers. The task is to count the number of Arithmetic Progression subsequence in the array. Note: Empty sequence or… Read More »

Check whether Arithmetic Progression can be formed from the given array

Given an array of n integers. The task is to check whether an arithmetic progression can be formed using all the given elements. If possible… Read More »

Progressions (AP, GP, HP)

Progressions (or Sequences and Series) are numbers arranged in a particular order such that they form a predictable order. By predictable order, we mean that… Read More »

Find the missing number in Arithmetic Progression

Given an array that represents elements of arithmetic progression in order. One element is missing in the progression, find the missing number. Examples: Input: arr[]… Read More »

Longest Arithmetic Progression | DP-35

Given a set of numbers, find the Length of the Longest Arithmetic Progression (LLAP) in it. Examples: set[] = {1, 7, 10, 15, 27, 29}… Read More »