Skip to content

Tag Archives: arithmetic progression

Given a number n and an array containing 1 to (2n+1) consecutive numbers. Three elements are chosen at random. Find the probability that the elements… Read More
We have to print an arithmetic progressive series in PHP, between two given numbers a and b both including, a given common arithmetic difference of… Read More
Given three integers A, B and N the task is to find N Arithmetic means between A and B. We basically need to insert N… Read More
Given n and a number, the task is to find the sum of n digit numbers that are divisible by given number. Examples:  Input :… Read More
We are given the Integer n and also in the next line 2*n integers which represent a Arithmetic Progression series a1, a2, a3…a2n they are… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression) Examples :  Input : arr[] = { 2,… Read More
Given first term (a), common difference (d) and a integer N of the Arithmetic Progression series, the task is to find Nthterm of the series.Examples… Read More
Given first term (a), common difference (d) and a integer n of the Arithmetic Progression series, the task is to print the series. Examples :   Input… Read More
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
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
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
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
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 (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
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

Start Your Coding Journey Now!