# Tag Archives: divisibility (adsbygoogle = window.adsbygoogle || []).push({});

## Sum of the multiples of two numbers below N

Given three integer A, B and N. The task is to find the sum of all the elements below N which are multiples of either… Read More »

## Largest Divisor of a Number not divisible by a perfect square

Given a positive integer N. Find the largest divisor of the given number that is not divisible by a perfect square greater than 1. Examples:… Read More »

## Find the multiple of x which is closest to a^b

Given three integers a, b and x, the task is to get the multiple of x which is closest to ab. Examples: Input: a =… Read More »

## Add N digits to A such that it is divisible by B after each addition

Given three integers A, B and N, repeat the following process N times: Add a digit to A such that after adding it, A is… Read More »

## Minimum elements to be added in a range so that count of elements is divisible by K

Given three integer K, L and R (range [L, R]), the task is to find the minimum number of elements the range must be extended… Read More »

## Check if a large number is divisible by 75 or not

Given a very large number in the form of a string, the task is to check if the number is divisible by 75 or not.… Read More »

## Find all numbers that divide maximum array elements

Given an array of N numbers, the task is to print all the numbers greater than 1 which divide the maximum of array elements. Examples:… Read More »

## Sum of common divisors of two numbers A and B

Given two number A and B, the task is to find the sum of common factors of two numbers A and B. The numbers A… Read More »

## Sum of all the multiples of 3 and 7 below N

Given a number N, the task is to find the sum of all the multiples of 3 and 7 below N. Note: A number must… Read More »

## Smallest number greater than or equal to N divisible by K

Given a number N and a number K, the task is to find the smallest number greater than or equal to N which is divisible… Read More »

## Largest number smaller than or equal to N divisible by K

Given a number N and a number K, the task is to find the largest number smaller than or equal to N which is divisible… Read More »

## Check if any permutation of a number is divisible by 3 and is Palindromic

Given an integer . The task is to check whether any of its permutations is a palindrome and divisible by 3 or not. Examples :… Read More »

## N digit numbers divisible by 5 formed from the M digits

Given M unique digits and a number N. The task is to find the number of N-digit numbers which can be formed from the given… Read More »

## Minimum number of operations required to delete all elements of the array

Given an integer array arr, the task is to print the minimum number of operations required to delete all elements of the array. In an… Read More »

## Check whether product of digits at even places of a number is divisible by K

Given a number N, the task is to check whether the product of digits at even places of a number is divisible by K. If… Read More »