## Maximize the product of four factors of a Number

Given an integer N, the task is to find the maximum product of A, B, C, D such that below conditions satisfy: N%A ==0 &&… Read More »

- Smallest number to make Array sum at most K by dividing each element
- Largest Divisor for each element in an array other than 1 and the number itself
- Sum of product of proper divisors of all Numbers lying in range [L, R]
- Common divisors of N numbers
- Count of divisors of product of an Array in range L to R for Q queries
- Count the nodes in the given Tree whose weight is a Perfect Number
- Count of the non-prime divisors of a given number
- Count of triplets (a, b, c) in the Array such that a divides b and b divides c
- Probability that an arbitrary positive divisor of 10^X is an integral multiple of 10^Y
- Length of largest subarray whose all elements Powerful number
- Maximum possible prime divisors that can exist in numbers having exactly N divisors
- Number formed after K times repeated addition of smallest divisor of N
- Maximize sum of minimum difference of divisors of nodes in N-ary tree
- Check if count of even divisors of N is equal to count of odd divisors
- Sum of all perfect square divisors of numbers from 1 to N
- Largest odd divisor Game to check which player wins
- Find the sum of all Betrothed numbers up to N
- Count all pairs of divisors of a number N whose sum is coprime with N
- Smallest N digit number with none of its digits as its divisor
- Palindromic divisors of a number
- Sum of all divisors from 1 to N | Set 2
- Sum of all divisors from 1 to N | Set 3
- Count of Array elements to be divided by 2 to make at least K elements equal
- Check if a number exists with X divisors out of which Y are composite
- Find elements in a given range having at least one odd divisor
- Coprime divisors of a number
- Count of square free divisors of a given number

Given an integer N, the task is to find the maximum product of A, B, C, D such that below conditions satisfy: N%A ==0 &&… Read More »

Given two numbers X and Y. The task is to find the number of elements in the range [X,Y] both inclusive, that have the maximum… Read More »

Given a number N. The task is to find the sum of all the prime divisors of N. Examples: Input: 60 Output: 10 2, 3,… Read More »

Given two numbers n1 & n2, We need to check whether these numbers are equivalent numbers or not. Equivalent numbers are numbers such that the… Read More »

In number theory, an arithmetic number is an integer for which the average of its positive divisors is also an integer. Or in other words,… Read More »

Given two positive integer N, M. The task is to check if N and M are friendly pair or not. In number theory, friendly pairs… Read More »

Given a number, check if it is square free or not. A number is said to be square free if no prime factor divides it… Read More »

Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. (A proper… Read More »

In number theory, the aliquot sum s(n) of a positive integer n is the sum of all proper divisors of n, that is, all divisors… Read More »

Given an interval [x, y]. Find the divisor that occurs maximum number of times except ‘1’ in the divisors of numbers in the range [x,… Read More »

Given a number n, the task is to find the odd factor sum. Examples : Input : n = 30 Output : 24 Odd dividers… Read More »

Given a number n, the task is to find the sum of all the divisors. Examples : Input : n = 30 Output : 72… Read More »

Given a integer number n, find largest sum of digits in all divisors of n. Examples : Input : n = 12 Output : 6… Read More »

Given a positive integer n. Find the value of where function F(i) for number i be defined as sum of all divisors of ‘i‘. Examples… Read More »

Given n, find the smallest integer which has n factors or more. It may be assumed that the result is less than 1000001. Examples: Input… Read More »