## Count digits in a factorial | Set 2

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 »

- 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 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 »

Given a positive integer n, find the no of factors in n! where n <= 105. Examples : Input : n = 3 Output :… Read More »

Given a large number n and a prime p, how to efficiently compute n! % p? Examples : Input: n = 5, p = 13… Read More »

A number F is a factorial number if there exists some integer I >= 0 such that F = I! (that is, F is factorial… Read More »

Given an integer n and a prime number p, find the largest x such that px (p raised to power x) divides n! (factorial) Examples:… Read More »

Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example factorial of 6 is 6*5*4*3*2*1 which is… Read More »

Given a positive integer n, write a function to compute sum of the series 1/1! + 1/2! + .. + 1/n! A Simple Solution solution… Read More »

nPr represents n permutation r and value of nPr is (n!) / (n-r)!. filter_none edit close play_arrow link brightness_4 code #include<stdio.h> int fact(int n)… Read More »

Given an integer n, write a function that returns count of trailing zeroes in n!. Examples : Input: n = 5 Output: 1 Factorial of… Read More »