Factorial is a mathematical operation that multiplies all positive integers from 1 to n.
Mathematical definition:
- n! = n × (n-1) × (n-2) × ... × 2 × 1
- Special case: 0! = 1
Factorials are widely used in permutations, combinations, probability theory, and Taylor series expansions.