Skip to content

Tag Archives: divisors

Given an array arr[] consisting of N integers, the task is to count the number of integers in the range [1, arr[i]] that does not… Read More
Given two positive integers N and X, the task is to find the smallest divisor of N which is closest to X. Examples: Input: N… Read More
Given a positive integer N, the task is to find the count of all the numbers M such that when the number N is divided… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to count the number of array elements having exactly K… Read More
Given two positive integers P and Q, the task is to largest divisor of P which is not divisible by Q. Examples: Input: P =… Read More
Given an integer X, the task is to determine the minimum value of Y greater than X, such that count of divisors of X and… Read More
Given an array arr[ ] consisting of N integers, the task is to determine the maximum number of perfect Numbers in any subarray of size… Read More
Given two numbers X and Y, the task is to find the count of integers K which satisfies the equation (X – 1) % K… Read More
Given two numbers N and M, the task is to find the minimum operations required to convert N to M by repeatedly adding it with… Read More
Given two natural numbers N and M, Create a graph using these two natural numbers using relation that a number is connected to its largest… Read More
Given an integer N, the task is to find the product of proper divisors of the number modulo 109 + 7 for Q queries. Examples:… Read More
Given an integer N, the task is to check if N has an odd number of odd divisors and even number of even divisors. Examples:… Read More
Given an array of pairs arr[] of two numbers {N, M}, the task is to find the maximum count of common divisors for each pair… Read More
Given a positive integer N, the task is to find the sum of the product of all the integers in the range [1, N] with their… Read More
Given a number N and a prime number P, the task is to find the sum of the largest divisors of each number in the… Read More

Start Your Coding Journey Now!