Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
Mathematical Misc divisors

Find all divisors of a natural number Set 2

Given a natural number n, print all distinct divisors of it. Examples: Input : n = 10 Output: 1 2 5 10 Input: n = 100 Output: 1 2 4 5 10 20 25 50 100 ...
Mathematical Misc divisors

Find all divisors of a natural number Set 1

Given a natural number n, print all distinct divisors of it. Examples : Input : n = 10 Outpu...
Mathematical divisors number-theory

Sum of all proper divisors of a natural number

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 than the number. For exam...
Mathematical divisibility divisors

Find numbers with n-divisors in a given range

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 number is called n-divisor if it ha...
Mathematical divisors number-theory

Sum of all divisors from 1 to n

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 : Input: 4 Output: 1...
Mathematical divisors factorial

Count Divisors of Factorial

Given a number n, count total number of divisors of n!. Examples: Input : n = 4 Output: 24 4! is 24. Divisors of 24 are 1, 2, 3, 4, 6, 8, 12 and 24. Input : n = 5 Ou...
Mathematical divisors factorial

Sum of divisors of factorial of a number

Given a number n, we need to calculate the sum of divisors of factorial of the number. Examples: Input : 4 Output : 60 Factorial of 4 is 24. Divisors of 24 are 1 2 3 ...
Mathematical divisors Segment-Tree

Querying maximum number of divisors that a number in a given range has

Given Q queries, of type: L R, for each query you must print the maximum number of divisors that a number x (L <= x <= R) has. Examples: L = 1 R = 10: 1 has...

Subscribe to Our Newsletter