## Generate minimum sum sequence of integers with even elements greater

Given an integer N, the task is to generate a sequence of N positive integers such that: Every element at the even position must be… Read More »

## Program to find sum of harmonic series

Harmonic series is inverse of a arithmetic progression. In general, the terms in a harmonic progression can be denoted as 1/a, 1/(a + d), 1/(a… Read More »

## Find nth term of the series 5 2 13 41

Given a number N, the task is to find the nth term of the series 5, 2, 19, 13, 41, 31, 71, 57…. It is… Read More »

## Program to find nth term of the series 1 4 15 24 45 60 92

Given a number n, the task is to find the nth term of the series 1, 4, 15, 24, 45, 60, 91, 112, 153….. where… Read More »

## Program to find the Nth term of the series 0, 3/1, 8/3, 15/5……..

Given a number N, the task is to find the Nth term of the the following series. 0, 3/1, 8/3, 15/5…… Examples: Input: n=4 Output:… Read More »

## Program to find the nth term of the series -2, 4, -6, 8….

Given a number N, the task is to find the Nth term of the the following series. -2, 4, -6, 8…… Examples: Input: n=4 Output:… Read More »

## Print first N terms of series (0.25, 0.5, 0.75, …) in fraction representation

Given an integer N, the task is to print the first N terms of the series in their fraction form i.e. 1/4, 1/2, 3/4, 1,… Read More »

## Find the sum of first N terms of the series 2*3*5, 3*5*7, 4*7*9, …

Given an integer N, the task is to find the sum of first N terms of the series: (2 * 3 * 5), (3 *… Read More »

## Sum of kth powers of first n natural numbers

Given two integers n and k, the task is to calculate and print 1k + 2k + 3k + … + nk. Examples: Input: n… Read More »

## Find the Nth term of the series 9, 45, 243,1377

Given an integer N, the task is to print the Nth term of the series 9, 45, 243, 1377, 8019, … Examples: Input: N =… Read More »

## Find nth Hermite number

Given a positive integer n, the task is to print the nth Hermite number. Hermite Number : In mathematics, Hermite numbers are values of Hermite… Read More »

## Find the nth term of the series 0, 8, 64, 216, 512, . . .

Given an integer N, the task is to find the Nth term of the following series: 0, 8, 64, 216, 512, 1000, 1728, . .… Read More »

## Summing the sum series

Defined a function that calculates the twice of sum of first N natural numbers as sum(N). Your task is to modify the function to sumX(N,… Read More »

## Harmonic Progression

A sequence of numbers is called a Harmonic progression if the reciprocal of the terms are in AP. In simple terms, a, b, c, d,… 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 »