# Tag Archives: divisors

Given four integers m, n, a, b. Find how many integers from range m to n are divisible by a or b. Examples :   Input: 3… Read More
Given three integers a, b, n .Your task is to print number of numbers between a and b including them also which have n-divisors. A… Read More
Given a number n, we need to calculate the sum of divisors of factorial of the number. Examples:  Input : 4 Output : 60 Factorial… Read More
Given a number n, count all distinct divisors of it. Examples:  Input : 18 Output : 6 Divisors of 18 are 1, 2, 3, 6,… Read More
Given a number n, count total perfect divisors of n. Perfect divisors are those divisors which are square of some integer. For example a perfect… Read More
Given a natural number n, the task is to find sum of divisors of all the divisors of n. Examples:  Input : n = 54… Read More
Given two numbers a and b, and a number k which is odd. The task is to find all the numbers between a and b… Read More
Given Q queries, of type: L R, for each query you must print the maximum number of divisors that a number x (L <= x… Read More
Given two integer numbers, the task is to find the count of all common divisors of given numbers? Input : a = 12, b =… Read More
Given two integer numbers, the task is to find the count of all common divisors of given numbers. Input : a = 12, b =… Read More
Given two integer numbers, the task is to find count of all common divisors of given numbers? Examples :  Input : a = 12, b… Read More
Given a natural number, calculate sum of all its proper divisors. A proper divisor of a natural number is the divisor that is strictly less… Read More
Given a number n, count the total number of divisors of n!. Examples:  Input : n = 4Output: 8Explanation:4! is 24. Divisors of 24 are… Read More
Given a number “n”, find its total number of divisors is even or odd. Examples: Input: n = 10 Output: Even Input: n = 100… Read More
Given a number “n”, find its total number of divisors is even or odd. Examples : Input : n = 10 Output : Even Input:… Read More