Skip to content

Mathematics · Ch 4 — Combinatorics and Mathematical Induction

Factorials

4.3

Factorials

Factorial of a natural number nn, written n!n! and read "nn factorial" (or "factorial of nn"), is the product of the first nn natural numbers:

n!=1×2×3×⋯×n.n! = 1\times2\times3\times\cdots\times n.

The notation n!n! was introduced by the French mathematician Christian Kramp in 1808. For a positive integer nn, factorial unwinds recursively:

n!=n(n−1)! (n>1)=n(n−1)(n−2)! (n>2)=n(n−1)(n−2)(n−3)! (n>3), and so on.n! = n(n-1)! \ (n>1) = n(n-1)(n-2)! \ (n>2) = n(n-1)(n-2)(n-3)! \ (n>3),\ \text{and so on.}

Small values: 1!=1, 2!=2, 3!=6, 4!=24, 5!=1201!=1,\ 2!=2,\ 3!=6,\ 4!=24,\ 5!=120, and 22!=112400072777760768000022!=1124000727777607680000 — the number 22 (Ramanujan's birth date) is the least integer N>1N>1 whose factorial has exactly NN digits (finding the next such NN is left as an exercise for students and teachers alike!).

Why 0!=10!=1. Substituting n=0n=0 into the recursion (n+1)!=(n+1)×n!(n+1)!=(n+1)\times n! gives 1!=(0+1)×0!⇒1=1×0!⇒0!=11!=(0+1)\times0! \Rightarrow 1=1\times0! \Rightarrow 0!=1. This convention extends the idea of factorial to non-negative integers (factorial can in fact be extended further, to certain negative and complex numbers, but that is beyond this course).

Tip

Peeling off common factorial factors is the single most useful factorial trick: e.g. 6!−5!=6⋅5!−5!=(6−1)5!=5×120=6006!-5!=6\cdot5!-5!=(6-1)5!=5\times120=600, and 8!5!×2!=8×7×6×5!5!×2!=8×7×62=168\dfrac{8!}{5!\times2!}=\dfrac{8\times7\times6\times5!}{5!\times2!}=\dfrac{8\times7\times6}{2}=168.

A useful identity (Example 4.24). (2n)!n!=2n(1⋅3⋅5⋯(2n−1))\dfrac{(2n)!}{n!}=2^n\big(1\cdot3\cdot5\cdots(2n-1)\big) — proved by splitting (2n)!(2n)! into its odd factors 1⋅3⋅5⋯(2n−1)1\cdot3\cdot5\cdots(2n-1) and its even factors 2⋅4⋅6⋯(2n)=2n⋅n!2\cdot4\cdot6\cdots(2n)=2^n\cdot n!, so (2n)!=(1⋅3⋯(2n−1))×2n n!(2n)!=\big(1\cdot3\cdots(2n-1)\big)\times2^n\, n!, and dividing by n!n! gives the stated identity. (This identity resurfaces later to prove 2nCn=2n×1×3×5⋯(2n−1)n!^{2n}C_n=\dfrac{2^n\times1\times3\times5\cdots(2n-1)}{n!}.)

Double Factorial. Factorial can be viewed as a function f:N∪{0}→Nf:\mathbb N\cup\{0\}\to\mathbb N, f(0)=1f(0)=1, f(n)=n(n−1)(n−2)⋯3⋅2⋅1f(n)=n(n-1)(n-2)\cdots3\cdot2\cdot1 for n≠0n\ne0. The double factorial n!!n!! is defined by …