## Find n-th term of series 1, 3, 6, 10, 15, 21…

Given a number n, find the n-th term in the series 1, 3, 6, 10, 15, 21… Examples: Input : 3 Output : 6 Input… Read More »

## Find the sum of the series 1+11+111+1111+….. upto n terms

Here we are going to find the sum of the series 1 + 11 + 111 + 1111 +…..upto N terms (where N is given).… Read More »

## Sum of the Series 1 + x/1 + x^2/2 + x^3/3 + .. + x^n/n

This is a mathematical series program where a user must enter the number of terms up to which the sum of the series is to… Read More »

## Find n-th term in series 1 2 2 3 3 3 4 4 4 4….

Given series 1 2 2 3 3 3 4 4 4 4 …., find n-th term of the series. The “pattern” is obvious. There is… Read More »

## Find if a number is part of AP whose first element and difference are given

Given three non-negative integers a, d and x. Here, a is the first element, d is the difference of an AP (Arithmetic Progression). We need… Read More »

## Find Harmonic mean using Arithmetic mean and Geometric mean

Given two numbers, first calculate arithmetic mean and geometric mean of these two numbers. Using the arithmetic mean and geometric mean so calculated, find the… Read More »

## Deserium Number

Deserium Number: A number is said to be Deserium number if the sum of the digits of a number with respect to the power of… Read More »

## Prime Numbers

A prime number is a whole number greater than 1, which is only divisible by 1 and itself. First few prime numbers are : 2… Read More »

## Number of GP (Geometric Progression) subsequences of size 3

Given n elements and a ratio r, find the number of G.P. subsequences with length 3. A subsequence is considered GP with length 3 with… Read More »

## Find n-th term of series 2, 10, 30, 68, 130 …

Given a series 2, 10, 30, 68, 130 … Identify the pattern in the series and find the nth value in the series. Indices are… Read More »

## Sum of cubes of even and odd natural numbers

We know that sum of cubes of first n natural numbers is = (n(n+1)/2)2. Sum of cube of first n even natural numbers 23 +… Read More »

## k-th number in the Odd-Even sequence

Given two numbers n and k, find the k-th number in the Odd-Even sequence made of n. The Odd-Even sequence contains first contains all odd… Read More »

## Find n-th term in the series 7, 15, 32, …

Given a series 7, 15, 32, …… Find the nth term of this series. Examples : Input : 5 Output : 138 Input : 7… Read More »

## Find n-th term in sequence 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, ….

Consider the infinite sequence of integers: 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5…. The sequence is built… Read More »

## Find n-th term in the series 9, 33, 73,129 …

Given a series 9, 33, 73, 129… Find the n-th term of the series. Examples: Input : n = 4 Output : 129 Input :… Read More »