# Tag Archives: Geometric Progression

## Count subarrays of atleast size 3 forming a Geometric Progression (GP)

Given an array arr[] of N integers, the task is to find the count of all subarrays from the given array of at least size… Read More »

## Minimum number of operations to convert a given sequence into a Geometric Progression | Set 2

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 »

## Longest subarray forming a Geometic Progression (GP)

Given a sorted array arr[] consisting of distinct numbers, the task is to find the length of the longest subarray that forms a Geometric Progression.… Read More »

## Count of maximum occurring subsequence using only those characters whose indices are in GP

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 »

## Sum of elements of a Geometric Progression (GP) in a given range

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 »

## Product of N terms of a given Geometric series

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 »

## Count of subsets having sum of min and max element less than K

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 »

## Find the total count of numbers up to N digits in a given base B

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 »

## Check whether nodes of Binary Tree form Arithmetic, Geometric or Harmonic Progression

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:… Read More »

## Find Pth term of a GP if Mth and Nth terms are given

Given Mth and Nth term of a Geometric progression. Find its Pth term. Examples: Input: m = 10, n = 5, mth = 2560, nth… Read More »

## Geometric Progression

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 »

## Find the sum of series 3, -6, 12, -24 . . . upto N terms

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 »

## Find the sum of the series x(x+y) + x^2(x^2+y^2) +x^3(x^3+y^3)+ … + x^n(x^n+y^n)

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.… Read More »

## Find the sum of the series 2, 5, 13, 35, 97…

Given a series and a number n, the task is to find the sum of its first n terms. Below is the series: 2, 5,… Read More »

## Area of squares formed by joining mid points repeatedly

Given a square having a side of length L. Another square form inside the first square by joining midpoint of the side of the first… Read More »