Understanding Factorials and the Exclamation Mark
The exclamation mark in mathematics denotes the factorial operation—not emphasis or surprise. When you write 5!, you're asking: "what is the product of all positive integers from 1 up to 5?" Unlike prime factorization (breaking a number into prime components), factorial multiplication builds up the entire sequence.
Factorials grow explosively. Just 10! equals 3,628,800. This rapid expansion is why factorials appear in probability and counting problems: they quantify arrangements and outcomes. The notation n! is shorthand for a specific mathematical operation, making it far more than stylistic punctuation.
The Factorial Formula
For any non-negative integer n, the factorial is defined as the product of all positive integers less than or equal to n:
n! = n × (n−1) × (n−2) × ... × 2 × 1
5! = 5 × 4 × 3 × 2 × 1 = 120
n— Any non-negative integer (0, 1, 2, 3, ...)n!— The factorial of n, equal to the product of all integers from 1 to n
Reference Table: Common Factorial Values
Factorials increase steeply, making a lookup table useful for quick reference:
- 0! = 1
- 1! = 1
- 2! = 2
- 3! = 6
- 4! = 24
- 5! = 120
- 6! = 720
- 7! = 5,040
- 8! = 40,320
- 9! = 362,880
- 10! = 3,628,800
Beyond 10!, most practical calculations require a computer or scientific notation. The factorial function grows faster than exponentials, which is why calculating 100! by hand is impossible but trivial for a calculator.
Why Zero Factorial Equals One
The definition 0! = 1 surprises many people. It seems counterintuitive because the standard formula (multiply all integers down to 1) doesn't apply when you start at zero.
The answer lies in combinatorial logic. There is exactly one way to arrange zero objects—do nothing. If you ask "in how many ways can I arrange an empty set?", the answer is one: the empty arrangement. This convention ensures that factorial formulas work smoothly in permutation and combination problems. Without defining 0! = 1, binomial coefficients and other formulas would require special cases. Mathematically, 0! = 1 is a definition that makes the whole system consistent.
Common Pitfalls and Important Notes
When working with factorials, keep these practical considerations in mind:
- Large factorials exceed standard integer limits — Factorials exceed 32-bit and 64-bit integer ranges very quickly. 13! already exceeds what a standard 32-bit integer can hold. Always use high-precision arithmetic or built-in factorial functions in programming languages that handle big integers automatically.
- Negative integers have no factorial — Factorials are undefined for negative integers. The recursive property (n! = n × (n−1)!) breaks down because you'd eventually reach a negative argument. Only the gamma function extends factorials to non-integer domains, and even then, negative integers remain undefined.
- Scientific notation becomes necessary above n = 20 — When calculating 20! and beyond, the raw numbers become unwieldy. Express large factorials in scientific notation (e.g., 20! ≈ 2.43 × 10^18) unless exact values are required. Many calculators automatically switch to this format.
- Verify your input for small errors — A single digit mistake in the input (e.g., calculating 11! instead of 10!) changes the result by an entire order of magnitude. Double-check your inputs, especially in manual calculations or when using command-line tools.