Tutorials
GfG Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
19.9K+ articles
Misc
7.8K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Sorting
1.1K+ articles
Searching
1.0K+ articles
series
515+ articles
series-sum
125+ articles
cpp-unordered_set
102+ articles
arithmetic progression
76 posts
Recent Articles
Popular Articles
Maximize the common difference of an AP having the given array as a subsequence
Last Updated: 29 November 2021
Given a sorted array arr[] consisting of N distinct elements, the task is to find the maximum possible common difference of an arithmetic progression such that the given a...
read more
Misc
Greedy
Mathematical
DSA
Arrays
arithmetic progression
Maths
Arithmetic Progressions
Count Arithmetic Progressions having sum N and common difference equal to 1
Last Updated: 02 February 2022
Given an integer N, the task is to count all arithmetic progression with common difference equal to 1 and the sum of all its elements equal to N.Examples:Input: N = 12Outp...
read more
Misc
Mathematical
DSA
arithmetic progression
Minimum increments or decrements by 1 required to make all array elements in AP
Last Updated: 07 September 2021
Given an array arr[] consisting of N integers, the task is to find the minimum number of increment/decrement by 1 required to be performed on array elements to make all th...
read more
DSA
arithmetic progression
Arithmetic Progressions
Find the Array which when sorted forms an AP and has minimum maximum
Last Updated: 29 November 2021
Given three positive integers N, X, and Y(XY). The task is to find an array of length N containing both X and Y, and when sorted in increasing order, the array must form a...
read more
Misc
Sorting
Mathematical
DSA
Arrays
arithmetic progression
Longest Arithmetic Progression path in given Binary Tree
Last Updated: 28 February 2022
Given a binary tree, the task is to find the length of the longest path which forms an Arithmetic progression. The path can start and end at any node of the tree.Examples:...
read more
DSA
Binary Tree
arithmetic progression
Find the missing N-th term of the series 2, 2, 4, 4, 6, 8, 8 ....
Last Updated: 16 August 2022
Given a number N, find the N-th term in the series 2, 2, 4, 4, 6, 8, 8.........Examples:Input: N = 1Output: 2Input: N = 2Output: 2Input: N = 5Output: 6Approach: Upon caref...
read more
Pattern Searching
Mathematical
DSA
series
arithmetic progression
Geometric Progression
Find M for which numbers A, B, C form an A.P. if any one is divided by M
Last Updated: 16 March 2023
Given three positive integers A, B, and C, the task is to find out that, if we divide any one of them with any integer M(m0), can they form an A.P.(Arithmetic Progression)...
read more
Mathematical
DSA
arithmetic progression
Find M for which A, B, C form an A.P. in given order if any one is multiplied by M
Last Updated: 21 February 2022
Given 3 positive integers A, B, and C. Choose a positive integer M and multiply any one of A, B, or C with M. The task is to decide whether A, B and C would comply with Ar...
read more
Algo-Geek 2021
DSA
arithmetic progression
Find Nth term of the series 1^3/1+(1^3+2^3)/(1+3)+(1^3+2^3+3^3)/(1+3+5)+...
Last Updated: 16 August 2022
Given a positive integer N. The task is to find Nth term of the series:\frac{1^{3}}{1}+\frac{(1^{3}+2^{3})}{1+3}+\frac{(1^{3}+2^{3}+3^{3})}{(1+3+5)}+....Examples:Input: N ...
read more
Mathematical
Algo Geek
Algo-Geek 2021
DSA
series
arithmetic progression
C++ Program to Print all triplets in sorted array that form AP
Last Updated: 18 August 2023
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples : Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 3...
read more
C++
cpp-unordered_set
arithmetic progression
Java Program to Print all triplets in sorted array that form AP
Last Updated: 19 January 2022
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples : Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 3...
read more
Java
cpp-unordered_set
arithmetic progression
Python3 Program to Print all triplets in sorted array that form AP
Last Updated: 05 September 2024
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 35,...
read more
Python
cpp-unordered_set
arithmetic progression
PHP Program to Print all triplets in sorted array that form AP
Last Updated: 22 July 2024
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 35,...
read more
PHP
cpp-unordered_set
arithmetic progression
Javascript Program for Print all triplets in sorted array that form AP
Last Updated: 16 September 2024
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 35,...
read more
JavaScript
cpp-unordered_set
arithmetic progression
Nth term of AP from First Two Terms
Last Updated: 03 April 2025
Given two integers a1 and a2, the first and second terms of an Arithmetic Series respectively, the problem is to find the nthterm of the series.Examples :Input : a1 = 2, ...
read more
Mathematical
DSA
arithmetic progression
Arithmetic Progressions
1
2
3
4
5
6
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !