Largest divisor of a number not divisible by another given number
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 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 »
Given an integer N, the task is to find the count of all possible integers less than N satisfying the following properties: The number is… Read More »
Given an integer N, the task is to find the total number of multiplicative partition for N. Multiplicative Partition: Number of ways of factoring of… Read More »
Given an array arr[] representing a list of prime factors of a given number, the task is to find the product of divisors of that… Read More »
Given an integer N, the task is to print all proper fractions such that the denominator is less than or equal to N. Proper Fractions:… Read More »