## Program to find sum of 1 + x/2! + x^2/3! +…+x^n/(n+1)!

Given a number x and n, the task is to find the sum of the below series of x till n terms: Examples: Input: x… Read More »

## Sum of nth terms of Modified Fibonacci series made by every pair of two arrays

Given two arrays A and B of same size m. You have to find the sum of nth terms of Fibonacci like series (value of… Read More »

## Check if a number is Primorial Prime or not

Given a positive number N, the task is to check if N is a primorial prime number or not. Print ‘YES’ if N is a… Read More »

## Check if the given number is Ore number or not

Given a positive integer n, check if it is an Ore number or not. Print ‘YES’ if n is an ore number otherwise print ‘NO’.… Read More »

## Find Sum of Series 1^2 – 2^2 + 3^2 – 4^2 ….. upto n terms

Given a number n, the task is to find the sum of the below series upto n terms: 12 – 22 + 32 – 42… Read More »

## Sum of Fibonacci Numbers with alternate negatives

Given a positive integer n, the task is to find the value of F1 – F2 + F3 -……….+ (-1)n+1Fn where Fi denotes i-th Fibonacci… Read More »

## Find nth Term of the Series 1 2 2 4 4 4 4 8 8 8 8 8 8 8 8 …

Given a number n, the task is to find the nth term of the Series 1 2 2 4 4 4 4 8 8 8… Read More »

## Interprime

Given a positive number n, the task is to check whether the given number is Interprime or not. If the given number is Interprime print… Read More »

## Thabit number

Given a positive integer n, the task is to check if it is a Thabit number. If the given number is a Thabit number then… Read More »

## Sum of squares of Fibonacci numbers

Given a positive integer N. The task is to find the sum of squares of all Fibonacci numbers up to N-th fibonacci number. That is,… Read More »

## Value of the series (1^3 + 2^3 + 3^3 + … + n^3) mod 4 for a given n

Given a function f(n) = (13 + 23 + 33 + … + n3), the task is to find the value of f(n) mod 4… Read More »

## Program to find the Nth term of series 5, 12, 21, 32, 45……

Given a number N, The task is to write a program to find the Nth term of the below series: 5, 12, 21, 32, 45……… Read More »

## Program to find the Nth number of the series 2, 10, 24, 44, 70…..

Given a number N, the task is to find the Nth (N may be up to 10^18) term of this series: 2, 10, 24, 44,… Read More »

## Program to find N-th term of series 1, 2, 11, 12, 21….

Given a number N, the task is to find the Nth term of the series: 1, 2, 11, 12, 21… Examples: Input : N =… Read More »

## Program for n-th odd number

Given a number n, print the nth odd number. The 1st odd number is 1, 2nd is 3 and so on. Examples: Input : 3… Read More »