# Tag Archives: arithmetic progression

Given an arithmetic series in arr and Q queries in the form of [L, R], where L is the left boundary of the range and… Read More
Given a string S, the task is to count the maximum occurrence of subsequences in the given string such that the indices of the characters… Read More
Given a sorted array arr[], the task is to find minimum elements needed to be inserted in the array such that array forms an Arithmetic… Read More
Given three numbers A, B and M such that A < B, the task is to find the sum of numbers divisible by M in… Read More
Given a binary tree, the task is to check whether the nodes in this tree form an arithmetic progression, geometric progression or harmonic progression.Examples:   Input:… Read More
Given two integer arrays A[] and D[], where Ai and Di represent the first element and common difference of an arithmetic progression respectively, the task… Read More
Given two numbers n and m, the task is to find the minimum number of operations required to make them equal if the following operations… Read More
Given an array arr[] with N elements, the task is to find the minimum number of operations required so that an Arithmetic Progression with the… Read More
Given an array which is an original arithmetic progression with one element changed. The task is to make it an arithmetic progression again. If there… Read More
Given a range [L, R], the task is to find the sum i * countDigits(i)2 for all i ∈ [L, R] where countDigits(i) is the… Read More
Given a sequence whose nth term is   T(n) = n2 – (n – 1)2  The task is to evaluate the sum of first n terms… Read More
Given an array arr[], the task is to find an element that can be added to the array in order to convert it to Arithmetic… Read More
Given an integer N, the task is to print the first N terms of the series in their fraction form i.e.   1/4, 1/2, 3/4, 1,… Read More
Given an integer N, the task is to find the Nth term of the following series:   0, 8, 64, 216, 512, 1000, 1728, . .… Read More
Arithmetic mean, also called the average or average value, is the quantity obtained by summing two or more numbers or variables and then dividing by… Read More