Given two integers A and R, representing the first term and the common ratio of a geometric sequence, the task is to find the sum… Read More

# Tag Archives: Geometric Progression

Given three integers A, D, and R representing the first term, common difference, and common ratio of an infinite Arithmetic-Geometric Progression, the task is to… Read More

Given an array arr[] consisting of N integers, the following three operations can be performed on any element one at a time: Add one to… Read More

Given a string S, the task is to find the count of maximum occurring subsequence P from S using only those characters whose indexes are… Read More

Given a Geometric Progression series in arr[] and Q queries in the form of [L, R], where L is the left boundary of the range… Read More

Given a number N, the first term ‘a’ and a common ratio ‘r’ of a Geometric Progression, the task is to find the product of… Read More

Given an integer array arr[] and an integer K, the task is to find the number of non-empty subsets S such that min(S) + max(S)… Read More

Given two integers N and B, the task is to find the count of natural numbers of Base B up to N digits. Examples: Input:… 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 Mth and Nth term of a Geometric progression. Find its Pth term.Examples: Input: m = 10, n = 5, mth = 2560, nth =… Read More

A sequence of numbers is called a Geometric progression if the ratio of any two consecutive terms is always same. In simple terms, it means… Read More

Given an integer N. The task is to find the sum upto N terms of the given series: 3, -6, 12, -24, … upto N… Read More

Given a series where x, y and n take integral values. The task is to Find the sum till nth term of the given series.Examples: Input:… Read More