Skip to main content
Logo image

Section 21.1 Factorials

In counting, factorials come up a lot.
n!
for natural number n, notation for the computation formula
n(nβˆ’1)(nβˆ’2)β‹―2β‹…1

Example 21.1.1. Two factorial calculations.

3!=3β‹…2β‹…1=6,7!=7β‹…6β‹…5β‹…4β‹…3β‹…2β‹…1=5,040.

Example 21.1.2. Factorial factors.

A factorial contains every smaller factorial as a factor. For example,
7!3!=7β‹…6β‹…5β‹…4β‹…(3!)3!=7β‹…6β‹…5β‹…4=840.

Convention 21.1.3.

To avoid division by zero in certain formulas, define 0!=1. This choice is also made to be consistent with the methods for counting permutations we will explore in this chapter.