# Tag Archives: arithmetic progression

A sequence of numbers is called an Arithmetic progression if the difference between any two consecutive terms is always the same. In simple terms, it… Read More
Given a number N. Given two numbers X and Y, the task is to find the sum of all those numbers from 1 to N… Read More
Given a number N, the task is to find the sum of all the multiples of A and B below N.Examples:   Input:N = 11, A=… Read More
Given a number N. and the task is to find the sum of all multiples of 2 and 5 below N ( N may be… Read More
Given an integer . The task is to write a program to find the N-th term of the given series:   1 + 2 + 6 +… Read More
Given that all the angles of a quadrilateral are in AP having common difference ‘d’, the task is to find all the angles.Examples:   Input: d… Read More
Given a number n. The task is to find the sum of numbers up to n, that are divisible by 2 or 5.Examples:  Input: n… Read More
Given that the ratio to sum of first m and n terms of an A.P. with first term ‘a’ and commond difference ‘d’ is m^2:n^2.… Read More
Given two values ‘m’ and ‘n’ and the 5th term of an arithmetic progression is zero. The task is to find the ratio of mth… Read More
Given a series and a number n, the task is to find the sum of its first n terms. Below is the series:  3, 6,… Read More
Given the first term (A) and common difference (D) of an Arithmetic Progression, and a prime number (P). The task is to find the position… Read More
Given an array arr[] of integers and a number . You can change any element of the array to an integer. The task is to find the… Read More
Given an unsorted array a[] of size n and an integer d which is the common difference, the task is to find the length of… Read More
Given a non-empty string S of uppercase alphabets of length L and the task is to find the longest string from the given string with… Read More
Given an integer value n, find out the n-th positive integer whose sum is 10.  Examples:  Input: n = 2 Output: 28 The first number… Read More