Home/Glossary/Factorial

Glossary · Probability

Factorial

A factorial, written n!, is the product of all whole numbers from 1 up to n, so 4! equals 24. It counts the orderings of n distinct items, and 0! is defined as 1.

Factorial, in full

Category
Probability
Also called
n factorial, n!
In the glossary
All 75 terms, A–Z

A worked example

The same idea with real numbers attached.

6! = 6 x 5 x 4 x 3 x 2 x 1 = 720, which is why a set of six lottery numbers can be written in 720 different orders, and why C(49,6) divides the 10,068,347,520 ordered draws by 720 to land on 13,983,816. Push further and 15! = 1,307,674,368,000. Ten steps beyond that, 25! is already past 1.5 x 10^25.

Sources

Every dated or checkable claim above, with where it came from.

See also

The terms that sit closest to this one.

Where it comes up on this site

Factorial: frequently asked

There is exactly one way to arrange nothing. Setting 0! = 1 also keeps the recursion n! = n x (n-1)! working at n = 1, and stops C(n,k) dividing by zero at its edges.

Sixty-eight digits, roughly 8.07 x 10^67. A properly shuffled deck has almost certainly never been in that exact order before.

The plain factorial does. Mathematicians extend it with the gamma function, where n! = gamma(n+1), and nothing counted on this site needs that extension.

More probability terms

The rest of the vocabulary

Lottery mechanics, probability, numerology and astrology, defined in one A–Z.

Open the glossary