factorials
Factorials are a mathematical function defined for nonnegative integers, denoted by n!, and representing the product of all positive integers up to n. By convention, 0! is defined as 1. For example, 4! = 24 and 5! = 120.
The factorial function can be computed recursively: n! = n × (n − 1)!, with the base case
Factorials have a clear combinatorial interpretation: they count the number of ways to arrange n distinct objects
Beyond integers, the factorial concept is extended by the Gamma function, Γ(z), which satisfies Γ(n+1) = n!
Factorials appear throughout mathematics, notably in series expansions such as e^x = sum_{n=0}^∞ x^n / n!, in probability,