## Wedderburn–Etherington number

The Nth term in the Wedderburn–Etherington number sequence (starting with the number 0 for n = 0) counts the number of unordered rooted trees with… Read More »

## Euclid–Mullin Sequence

Given an integer N, the task is to print the first N elements of the Euclid-Mullin Sequence. The Euclid-Mullin sequence is a sequence of prime… Read More »

## Print first N terms of Lower Wythoff sequence

Given an integer N, the task is to print the first N terms of the Lower Wythoff sequence. Examples: Input: N = 5 Output: 1,… Read More »

## Program to Calculate e^x by Recursion

The value of Exponential function can be calculated using Taylor Series. = 1 + x/1! + /2! + /3! + …… To find its value… Read More »

## Sum of the series 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till N-th term

Given a series of numbers 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13… The task is to find the sum of… Read More »

## Find the nth term of the given series

Given the first two terms of the series as 1 and 6 and all the elements of the series are 2 less than the mean… Read More »

## Find n positive integers that satisfy the given equations

Given three integers N, X and Y. The task is to find N positive integers that satisfy the given equations. a12 + a22 + ….… Read More »

## Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ……. (K-1)n

Given a value K and n, the task is to find the sum of the below series: Kn + ( K(n-1) * (K-1)1 ) +… Read More »

## Find if the given number is present in the infinite sequence or not

Given three integers A, B and C. In an infinite sequence, A is the first number, C is the common difference (Si – Si –… Read More »

## Maximum value of |arr[0] – arr[1]| + |arr[1] – arr[2]| + … +|arr[n – 2] – arr[n – 1]| when elements are from 1 to n

Given an array arr[] of size n whose elements are from the range [1, n]. The task is to find maximum value of |arr[0] –… Read More »

## Find Nth term of the series 1, 5, 32, 288 …

Given a number n, the task is to find the n-th term in series 1, 5, 32, 288 … Examples: Input: N = 3 Output:… Read More »

## Find Nth term of the series 1, 6, 18, 40, 75, ….

Given a number n, the task is to find the n-th term in series 1, 6, 18, 40, 75, … Example: Input: N = 2… Read More »

## Sum of numbers from 1 to N which are in Lucas Sequence

Given a number N. The task is to find the sum of numbers from 1 to N, which are present in the Lucas Sequence. The… Read More »

## Sum of the natural numbers (up to N) whose modulo with K yield R

Given three integers N, K and R. The task is to calculate the sum of all those numbers from 1 to N which yields remainder… Read More »

## 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 »