## Sum of range in a series of first odd then even natural numbers

The sequence first consists of all the odd numbers starting from 1 to n and then remaining even numbers starting 2 up to n. Let’s… Read More »

The sequence first consists of all the odd numbers starting from 1 to n and then remaining even numbers starting 2 up to n. Let’s… Read More »

Given N and M, task is to find whether numbers 1 to N can be divided into two sets such that the absolute difference between… Read More »

Given a number n, find the number of ways to represent this number as a sum of 2 or more consecutive natural numbers. Examples: Input… Read More »

Given a number ‘n’, check whether it is a hoax number or not. A Hoax Number is defined as a composite number, whose sum of… Read More »

Nesbitt’s inequality is one of the simplest inequalities in mathematics. According to the statement of the inequality, for any 3 given real numbers they satisfy… Read More »

Lagrange’s Four Square Theorem states that every natural number can be written as sum of squares of four non negative integers. For eg. Similarly Similarly… Read More »

Hardy Ramanujam theorem states that the number of prime factors of n will approximately be log(log(n)) for most natural numbers n Examples : 5192 has… Read More »

Given an integer ‘n’, print the first ‘n’ terms of the Moser-de Bruijn Sequence. The Moser-de Bruijn sequence is the sequence obtained by adding up… Read More »

A k-rough or k-jagged number is a number whose smallest prime factor is greater than or equal to the number ‘k’. Given numbers ‘n’ and… Read More »

Brahmagupta Fibonacci identity states that the product of two numbers each of which is a sum of 2 squares can be represented as sum of… Read More »

According to Euclid Euler Theorem, a perfect number which is even, can be represented in the form where n is a prime number and is… Read More »

In mathematics, Bertrand’s Postulate states that there is a prime number in the range to where n is a natural number and n >= 4.… Read More »

In mathematics, Rosser’s Theorem states that the nth prime number is greater than the product of n and natural logarithm of n for all n… Read More »

According to Euler’s four square identity, the product of any two numbers a and b can be expressed as a sum of four squares if… Read More »

Given L and R, find a possible non transitive triplet (a, b, c) such that pair (a, b) is coprime and pair (b, c) is… Read More »