## Number of array elements derivable from D after performing certain operations

Given an array of N integers and 3 integers D, A and B. The task is to find the number of array elements that we… Read More »

## Sum of each element raised to (prime-1) % prime

Given an array arr[] and a positive integer P where P is prime and non of the elements of array are divisible by P. Find… 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 numbers a and b that satisfy the given conditions

Given an integer n, the task is to find two integers a and b which satisfy the below conditions: a % b = 0 a… Read More »

## Count numbers upto N which are both perfect square and perfect cube

Given a number N. The task is to count total numbers under N which are both perfect square and cube of some integers. Examples: Input:… Read More »

## Most frequent factor in a range of integers

You are given a range of numbers, from lower number to higher number (both inclusive). Consider all the factors of these numbers except 1, the… Read More »

## Natural Numbers

Counting numbers like 1, 2, 3, 4, 5, 6 … Basically, all integers greater than 0 are natural numbers. Fact about Natural numbers They are… Read More »

## Prime Factor

Prime factor is the factor of the given number which is a prime number. Factors are the numbers you multiply together to get another number.… Read More »

## Sum of first N natural numbers which are divisible by X or Y

Given a number N. Given two numbers X and Y, the task is to find the sum of all those numbers from 1 to N… Read More »

## Program to find first N Iccanobif Numbers

Given a number N. The task is to find first N Iccanobif Numbers. Iccanobif Numbers are similar to Fibonacci Numbers. The K-th Iccanobif number can… Read More »

## Count Numbers with N digits which consists of even number of 0’s

Given a number N. The task is to find the count of numbers which have N digits and even number of zeroes. Note: The number… Read More »

## Sum of all even numbers in range L and R

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

## Split N^2 numbers into N groups of equal sum

Given an even number N. The task is to consider numbers from 1 to N2, split them into N groups of the equal sum. Examples:… Read More »

## Sum of common divisors of two numbers A and B

Given two number A and B, the task is to find the sum of common factors of two numbers A and B. The numbers A… Read More »

## Find the number of primitive roots modulo prime

Given a prime . The task is to count all the primitive roots of . A primitive root is an integer x (1 <= x… Read More »