## Sum of square of first n even numbers

Given a number n, find sum of square of first n even natural numbers. Examples : Input : 3 Output : 56 22 + 42… Read More »

- Find minimum operations needed to make an Array beautiful
- Next greater Number than N with the same quantity of digits A and B
- Common prime factors of two numbers
- Smallest multiple of 3 which consists of three given non-zero digits
- Find largest number smaller than N with same set of digits
- Find the minimum positive integer such that it is divisible by A and sum of its digits is equal to B
- Natural Numbers
- Minimum number of cuts required to make circle segments equal sized
- Sum of all even numbers in range L and R
- Count pairs of numbers from 1 to N with Product divisible by their Sum
- Check if a number can be represented as a sum of 2 triangular numbers
- Find a permutation of 2N numbers such that the result of given expression is exactly 2K
- Find permutation of n which is divisible by 3 but not divisible by 6

Given a number n, find sum of square of first n even natural numbers. Examples : Input : 3 Output : 56 22 + 42… Read More »

Find the smallest number such that the sum of its digits is N and it is divisible by . Examples : Input : N =… Read More »

Given an integer n, find the absolute difference between sum of the squares of first n natural numbers and square of sum of first n… Read More »

You are given a number n, the task is to find nth octagonal number. Also, find the Octagonal series till n. An octagonal number is… Read More »

Given two non-negative integers a and b. The problem is to check whether the two numbers differ at one bit position only or not. Examples:… Read More »

Given x, y, z and n, find smallest n digit number which is divisible by x, y and z. Examples: Input : x = 2,… Read More »

Given a number n, find a number in range from 1 to n such that its sum is maximum. If there are several such integers,… Read More »

Given an integer N, find out the count of numbers(m) that satisfy the condition m + sum(m) + sum (sum(m)) = N, where sum(m) denotes… Read More »

Express a given number as a summation of 4 positive primes. If it is not possible to express then print “-1”. Examples: Input: 24 Output:… Read More »

Given a positive integer n(1 <= n <= 1018). Check whether a number has exactly three distinct factors or not. Print “Yes” if it has… Read More »

Given an integer n, print m increasing numbers such that the sum of m numbers is equal to n and the GCD of m numbers… Read More »

Given a natural number n, find the number of ways in which n can be expressed as a sum of natural numbers when order is… Read More »

Given a palindromic number num having n number of digits. The problem is to find the smallest palindromic number greater than num using the same… Read More »

Given a number n, find the product of all factors of n. Since the product can be very large answer it modulo 10^9 + 7.… Read More »

Integers X and K are given. The task is to find smallest K-digit number divisible by X. Examples : Input : X = 83, K… Read More »