## Find the Nth term of the series 14, 28, 20, 40,…..

Given a number . The task is to find the N-th term in the following series: 14, 28, 20, 40, 32, 64….. Examples: Input :… Read More »

## Sum of all odd natural numbers in range L and R

Given two integers L and R, the task is to find the sum of all odd natural numbers in range L and R inclusive. Examples:… Read More »

## Sum of all natural numbers in range L to R

Given a range L and R, the task is to find the sum of all natural numbers in range L to R. Examples: Input: L… Read More »

## Find the value of f(n) / f(r) * f(n-r)

Given two positive integers n and r where n > r >1. The task is to find the value of f(n)/(f(r)*f(n-r)). F(n) is deined as… Read More »

## Aronson’s Sequence

Given an integer , generate the first terms of the Aronson’s sequence. Aronson’s sequence is an infinite sequence of integers obtained from the index of… Read More »

## Find the sum of all multiples of 2 and 5 below N

Given a number N. The task is to find the sum of all multiples of 2 and 5 below N ( N may be up… Read More »

## Program to find Nth term of series 7, 21, 49, 91, 147, 217, ……

Given a number N. The task is to write a program to find the Nth term of the below series: 7, 21, 49, 91, 147,… Read More »

## Check if a number is an Achilles number or not

Given a positive integer N. The task is to check if N is an Achilles number or not. Print ‘YES’ if N is an Achilles… Read More »

## Sum of first N natural numbers which are divisible by 2 and 7

Given a number N. The task is to find the sum of all those numbers from 1 to N that are divisible by 2 or… Read More »

## Find sum of N-th group of Natural Numbers

Given a series of natural numbers divided into groups as: (1, 2), (3, 4, 5, 6), (7, 8, 9, 10, 11, 12), (13, 14, 15,… Read More »

## Find the Nth term of the series 1 + 2 + 6 + 15 + 31 + 56 + …

Given an integer . The task is to write a program to find the N-th term of the given series: 1 + 2 + 6… 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 first N terms of the series 2×3 + 4×4 + 6×5 + 8×6 + …

Given an integer N. The task is to find the sum upto N terms of the given series: 2×3 + 4×4 + 6×5 + 8×6… Read More »

## Find the Nth term of the series 2 + 6 + 13 + 23 + . . .

Given an integer N. The task is to write a program to find the Nth term of the given series: 2 + 6 + 13… Read More »

## Sum of first N terms of Quadratic Sequence 3 + 7 + 13 + …

Given a quadratic series as given below, the task is to find sum of first n terms of this series. Sn = 3 + 7… Read More »