## Smallest number S such that N is a factor of S factorial or S!

Given a number N. You are tasked with finding the smallest number S, such that N is a factor of S! (S factorial). N can… Read More »

- Find the unit place digit of sum of N factorials
- Number of integral solutions of the equation x1 + x2 +.... + xN = k
- Range and Update Sum Queries with Factorial
- Number of permutations of a string in which all the occurrences of a given character occurs together
- Number of trailing zeroes in base 16 representation of N!
- Find maximum value of x such that n! % (k^x) = 0
- Find Nth term of the series 1, 1, 2, 6, 24...
- Find GCD of factorial of elements of given array
- Number of ways to arrange a word such that all vowels occur together
- Find last two digits of sum of N factorials
- Number of trailing zeroes in base B representation of N!
- Find Nth term of the series 1, 8, 54, 384...
- Program to calculate the value of nPr
- Find sum of product of number in given series
- Find the total Number of Digits in (N!)N
- Minimum length of string having all permutation of given string.
- Implementation of Wilson Primality test
- Arrangement of the characters of a word such that all vowels are at odd places
- Numbers of Length N having digits A and B and whose sum of digits contain only digits A and B
- Seating arrangement of n boys and girls alternatively around a round table
- Maximum number with same digit factorial product
- Ways of dividing a group into two halves such that two elements are in different groups
- Arrangement of words without changing the relative position of vowel and consonants
- Count numbers having N 0's and and M 1's with no leading zeros
- Find the smallest number X such that X! contains at least Y trailing zeros.
- Check if N is a Factorial Prime

Given a number N. You are tasked with finding the smallest number S, such that N is a factor of S! (S factorial). N can… Read More »

Given a number n, write code to find the sum of digits in the factorial of the number. Given n <= 5000 Examples: Input :… Read More »

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 »