The factorial of a number n (written n!) is the product of all positive integers from 1 to n. By definition, 0! = 1.
n! = n × (n−1) × (n−2) × ... × 2 × 1
5! = 5 × 4 × 3 × 2 × 1 = 120. 10! = 3,628,800. 0! = 1 (by convention).
Factorials are central to combinatorics — permutations and combinations both use factorials. They also appear in probability, Taylor series in calculus, and the Poisson distribution.