The factorial of a given natural number n is the product of all the natural numbers less than or equal to n. The factorial of n is denoted usually by n! Thus,
n! = 1 × 2 × ... × n
For large n an approximate expression for n! is given by Stirling’s formula. The number of permutations of n things taken all at a time is the factorial of n.