## Number of integral solutions of the equation x1 + x2 +…. + xN = k

Given N and K. The task is to count the number of the integral solutions of a linear equation having N variable as given below:… Read More »

- Range and Update Sum Queries with Factorial
- Number of ways to go from one point to another in a grid
- Program to calculate the value of nPr
- Number of trailing zeroes in base 16 representation of N!
- Find GCD of factorial of elements of given array
- Number of trailing zeroes in base B representation of N!
- Check if factorial of N is divisible by the sum of squares of first N natural numbers
- Check whether factorial of N is divisible by sum of first N natural numbers
- Numbers of Length N having digits A and B and whose sum of digits contain only digits A and B
- Find the smallest number X such that X! contains at least Y trailing zeros.
- Number of ways to arrange K different objects taking N objects at a time
- Maximum number with same digit factorial product
- Check if a given number divides the sum of the factorials of its digits
- Count numbers having N 0's and and M 1's with no leading zeros
- Count different numbers possible using all the digits their frequency times
- Find sum of factorials in an array
- Check if N is a Factorial Prime

Given N and K. The task is to count the number of the integral solutions of a linear equation having N variable as given below:… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 1, 2, 6, 24…… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 8, 54, 384… Examples:… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 4, 15, 72, 420…… Read More »

Given a number, the task is to find the hyperfactorial of a number. The result of multiplying a given number of consecutive integers from 1… Read More »

Given Q queries and P where P is a prime number, each query has two numbers N and R and the task is to calculate… Read More »

Given a positive integer N, we have to find the total number of digits in the factorial of N raised to the power N, i.e,… Read More »

Given a number N. Find the product of first N factorials modulo 1000000007. Constraints: 1 ≤ N ≤ 1e6 Examples: Input : 3 Output :… Read More »

Given n, we need to find sum of 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)! Examples: Input: 1 Output: 2 Input: 3 Output: 242 We may… Read More »

Given a, b and N(1 to 106). Task is to count the numbers formed by digits a and b exactly of a length N such… Read More »

Following are common definition of Binomial Coefficients. A binomial coefficient C(n, k) can be defined as the coefficient of X^k in the expansion of (1… Read More »

Given a number n, find the number of ways to multiply n elements with an associative operation. Examples : Input : 2 Output : 2… Read More »

Given a number n, generate a list of n composite numbers. Examples: Input : 5 Output : 122, 123, 124, 125 Input : 10 Output… Read More »

Given a positive integer n, find the first digit in its factorial. Examples : Input : n = 5 Output : 1 Factorial of 5… Read More »

Given two numbers N and M. Find the number of ways in which factorial N can be expressed as a sum of two or more… Read More »