Factorial Notation
Theory
Factorial notation \(n!\) is shorthand for the product \(n\times(n-1)\times\dots\times2\times1\). This Year 11 Mathematics Extension 1 page shows how to evaluate factorials, why \(0!=1\), how to cancel factorials using \(n!=n\times(n-1)!\), and how to simplify, prove and solve equations with factorials such as \(\dfrac{(n+1)!}{(n-1)!}\).
For a positive integer \(n\), \(n\) factorial, written \(n!\), is the product of all the positive integers from \(n\) down to \(1\):
\(n!=n\times(n-1)\times(n-2)\times\dots\times2\times1\)
For example \(4!=4\times3\times2\times1=24\) and \(1!=1\). By definition \(0!=1\). Factorials are only used for whole numbers \(0,1,2,3,\dots\)
Factorials grow very quickly: \(5!=120\), \(8!=40\,320\) and \(10!=3\,628\,800\). They appear throughout counting: by the multiplication principle, \(n\) different objects can be arranged in a line in \(n!\) ways.
The key property is that every factorial contains all the smaller ones. Stopping the product early leaves a smaller factorial:
\(n!=n\times(n-1)!=n(n-1)\times(n-2)!=n(n-1)(n-2)\times(n-3)!\)
So \(7!=7\times6!\), and \((n+1)!=(n+1)\times n!\). To simplify an expression, write each larger factorial down to the smallest one present, then cancel it or take it out as a common factor. To solve a factorial equation, simplify it into an ordinary equation in \(n\), solve it, and keep only the values for which every factorial in the question is defined.
Definition and the zero convention:
Writing a factorial down to a smaller one:
A quotient of factorials is a product of consecutive integers:
| \(n\) | \(0\) | \(1\) | \(2\) | \(3\) | \(4\) | \(5\) | \(6\) | \(7\) | \(8\) |
|---|---|---|---|---|---|---|---|---|---|
| \(n!\) | \(1\) | \(1\) | \(2\) | \(6\) | \(24\) | \(120\) | \(720\) | \(5040\) | \(40\,320\) |
How to simplify an expression with factorials
- Find the smallest factorial in the expression, e.g. \((n-1)!\).
- Write every larger factorial down to it: \((n+1)!=(n+1)\,n\,(n-1)!\) and \(n!=n\,(n-1)!\).
- Cancel it from a quotient, or take it out as a common factor of a sum or difference. Never cancel one term of a sum.
- Simplify the algebra that is left: expand, collect like terms or factorise.
How to solve an equation with factorials
- Simplify the factorials (or divide both sides by the smallest factorial) to get an ordinary equation.
- Solve it. A product of consecutive integers such as \(n(n-1)(n-2)=210\) can be matched directly: \(210=7\times6\times5\).
- Reject any value that is negative, not a whole number, or makes a factorial in the question undefined, and state the answer with \(\therefore\). Substituting back is a quick check.
Proving an identity
Start from the more complicated side (usually the LHS), simplify it step by step, and finish with "\(=\text{RHS}\)".
(i) Use the definition of \(n!\):
| \(5!\) | \(=\) | \(5\times4\times3\times2\times1=120\) |
| \(3!\) | \(=\) | \(3\times2\times1=6\) |
| \(5!-3!\) | \(=\) | \(120-6\) |
| \(\) | \(=\) | \(114\) |
(ii) Write \(12!\) down to \(10!\) and cancel:
| \(\dfrac{12!}{10!}\) | \(=\) | \(\dfrac{12\times11\times10!}{10!}\) |
| \(\) | \(=\) | \(12\times11\) |
| \(\) | \(=\) | \(132\) |
\(\therefore\) (i) \(5!-3!=114\) (ii) \(\dfrac{12!}{10!}=132\)
(ii) Simplify \(\dfrac{(n+2)!}{(n-1)!}\).
(i) Complete the product down to \(1\), then divide by the extra factors:
| \(11\times10\times9\) | \(=\) | \(\dfrac{11\times10\times\dots\times1}{8\times\dots\times1}\) |
| \(\) | \(=\) | \(\dfrac{11!}{8!}\) |
(ii) Write \((n+2)!\) down to \((n-1)!\):
\((n+2)!=(n+2)(n+1)\,n\,(n-1)!\)
| \(\dfrac{(n+2)!}{(n-1)!}\) | \(=\) | \(\dfrac{(n+2)(n+1)\,n\,(n-1)!}{(n-1)!}\) |
| \(\) | \(=\) | \(n(n+1)(n+2)\) |
\(\therefore\) (i) \(\dfrac{11!}{8!}\) (ii) \(n(n+1)(n+2)\). Three factors are left because \((n+2)-(n-1)=3\).
(ii) Show that \(\dfrac{(n+1)!+n!}{(n-1)!}=n(n+2)\) for positive integers \(n\).
(i) Multiply both sides by \(7!\):
| \(x\) | \(=\) | \(\dfrac{7!}{5!}+\dfrac{7!}{6!}\) |
| \(\) | \(=\) | \(7\times6+7\) |
| \(\) | \(=\) | \(42+7\) |
| \(\) | \(=\) | \(49\) |
\(\therefore x=49\)
(ii) Write every factorial in terms of \((n-1)!\):
\((n+1)!=(n+1)\,n\,(n-1)!\) and \(n!=n\,(n-1)!\)
| \(\text{LHS}\) | \(=\) | \(\dfrac{(n+1)\,n\,(n-1)!+n\,(n-1)!}{(n-1)!}\) |
| \(\) | \(=\) | \((n+1)n+n\) |
| \(\) | \(=\) | \(n^2+n+n\) |
| \(\) | \(=\) | \(n^2+2n\) |
| \(\) | \(=\) | \(n(n+2)\) |
| \(\) | \(=\) | \(\text{RHS}\) |
\(\therefore \dfrac{(n+1)!+n!}{(n-1)!}=n(n+2)\)
(i) \(\dfrac{n!}{(n-3)!}=336\)
(ii) \(n!-(n-1)!=16\,(n-2)!\), where \(n\ge2\)
(i) Simplify, then look for consecutive integers:
| \(\dfrac{n(n-1)(n-2)(n-3)!}{(n-3)!}\) | \(=\) | \(336\) |
| \(n(n-1)(n-2)\) | \(=\) | \(336\) |
The left side is a product of three consecutive integers, and \(336=8\times7\times6\). The product increases as \(n\) increases, so this is the only solution.
\(\therefore n=8\)
(ii) Divide both sides by \((n-2)!\), using \(n!=n(n-1)(n-2)!\) and \((n-1)!=(n-1)(n-2)!\):
| \(n(n-1)-(n-1)\) | \(=\) | \(16\) |
| \((n-1)(n-1)\) | \(=\) | \(16\) |
| \((n-1)^2\) | \(=\) | \(16\) |
| \(n-1\) | \(=\) | \(\pm4\) |
\(n=5\) or \(n=-3\), but \(n\ge2\).
Check: \(5!-4!=120-24=96\) and \(16\times3!=96\), which is correct.
\(\therefore n=5\)
Common pitfalls
Frequently asked questions
What does n! mean in maths?
\(n!\) (read "\(n\) factorial") is the product of the whole numbers from \(n\) down to \(1\). For example \(5!=5\times4\times3\times2\times1=120\). It counts the number of ways to arrange \(n\) different objects in a line.
Why is 0! equal to 1?
It is a definition chosen so that the rules keep working. Putting \(n=1\) into \(n!=n\times(n-1)!\) gives \(1!=1\times0!\), so \(0!\) must be \(1\). It also makes formulas such as \(\dfrac{n!}{(n-r)!}\) give the right count when \(r=n\).
How do you simplify a fraction with factorials?
Write the larger factorial down to the smaller one and cancel. For example, since \((n+2)!=(n+2)(n+1)\,n!\), cancelling \(n!\) gives \(\dfrac{(n+2)!}{n!}=(n+2)(n+1)\).
How do you solve an equation with factorials?
Divide or cancel by the smallest factorial to get an ordinary equation in \(n\), then solve it. For example \(\dfrac{n!}{(n-2)!}=42\) becomes \(n(n-1)=42\), so \(n=7\) (the root \(n=-6\) is rejected because \(n\) must be a positive integer).
Can you take the factorial of a negative number or a fraction?
Not in this course. \(n!\) is defined only for whole numbers \(n=0,1,2,\dots\), so an answer such as \(n=-3\) or \(n=2.5\) to a factorial equation is rejected.