Factorials: Growth of n!
Problem
Compute 7! = 5040. Show the chain 7 × 6 × 5 × 4 × 3 × 2 × 1 with a growing bar, and visualize why factorial grows faster than exponential.
Explanation
What is a factorial?
For a non-negative integer , the factorial is
with the convention (the empty product).
Combinatorially, counts the number of ways to arrange distinct objects in a sequence — the number of permutations of items.
Step-by-step: compute 7!
We multiply in sequence, showing the running product at each step.
Step 1: Step 2: Step 3: Step 4: Step 5: Step 6:
How fast does grow?
Factorial grows super-exponentially — faster than any fixed for constant .
Each step multiplies by a larger number, so the growth accelerates. By , is already above .
Stirling's approximation
For large , a very accurate estimate is
It turns the factorial into something comparable with exponentials. For , Stirling gives , within 1.2% of the true .
Where factorials appear
- Permutations: .
- Combinations: .
- Taylor series: .
- Probability distributions: Poisson's , binomial's .
Common mistakes
- Claiming . The convention is ; the empty product is 1, and it makes formulas like work.
- Computing by addition. Factorial is a product, not a sum. is , not .
- Overflow. explodes fast; already exceeds a 64-bit integer when multiplied by much more. Use arbitrary-precision arithmetic or logarithms for large .
Try it in the visualization
Adjust the slider and watch the product assemble step by step, with a bar graph scaling up (sometimes logarithmically, with the toggle on) to visualize the superlinear climb.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.