The factorial of a non-negative integer n is the product n × (n−1) × (n−2) × ... × 1. By convention, 0! = 1.
Common Values
1!=1, 2!=2, 3!=6, 4!=24, 5!=120, 6!=720, 7!=5040, 10!=3,628,800, 20!=2.43×10¹⁸
Uses
- Permutations: nPr = n!/(n−r)!
- Combinations: nCr = n!/[r!(n−r)!]
- Probability: Counting arrangements and outcomes
- Taylor series: e^x = Σ(x^n/n!)