## 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… Read More »

- Number of ways to go from one point to another in a grid
- Check if factorial of N is divisible by the sum of squares of first N natural numbers
- Number of ways to arrange K different objects taking N objects at a time
- Count of N digit numbers possible which satisfy the given conditions
- Check whether factorial of N is divisible by sum of first N natural numbers
- Factorial of an Array of integers
- Find the count of M character words which have at least one character repeated
- Find sum of factorials in an array
- Count permutation such that sequence is non decreasing
- Calculate MDAS Factorial of given number
- Check if a given number divides the sum of the factorials of its digits
- Count different numbers possible using all the digits their frequency times
- Euler zigzag numbers ( Alternating Permutation )

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 »

Program to find maximum value of an integer for which factorial can be calculated on a machine, assuming that factorial is stored using basic data… Read More »

Strong Numbers are the numbers whose sum of factorial of digits is equal to the original number. Given a number, check if it is a… Read More »

Given three numbers n, r and p, compute value of nCr mod p. Here p is a prime number greater than n. Here nCr is… Read More »

Given two numbers n and k, print k-th prime factor among all prime factors of n. For example, if the input number is 15 and… Read More »

Double factorial of a non-negative integer n, is the product of all the integers from 1 to n that have the same parity (odd or… Read More »

Given a number n. The task is to find the smallest number whose factorial contains at least n digits. Examples: Input : n = 1… Read More »

Given a number n, find the last non-zero digit in n!. Examples: Input : n = 5 Output : 2 5! = 5 * 4… Read More »

Given a number n. The task is to find the smallest number whose factorial contains at least n trailing zeroes. Examples : Input : n… Read More »

Given two numbers x and y (x <= y), find out the total number of natural numbers, say i, for which i! is divisible by… Read More »

Given a number x, the task is to find first natural number i whose factorial is divisible by x. Examples : Input : x =… Read More »

Given a number n, the task is to calculate its primorial. Primorial (denoted as Pn#) is product of first n prime numbers. Primorial of a… Read More »

Given a number n, count total number of divisors of n!. Examples: Input : n = 4 Output: 24 4! is 24. Divisors of 24… Read More »

Given an integer n (can be very large), find the number of digits that appear in its factorial, where factorial is defined as, factorial(n) =… Read More »

Given an integer n, find the number of digits that appear in its factorial, where factorial is defined as, factorial(n) = 1*2*3*4……..*n and factorial(0) =… Read More »