Skip to content

Factorial

Definition

Let nn be a natural number. The factorial of nn, denoted n!n!, is the product of all positive natural numbers up to nn:

n!=1×2×3×⋯×(n−1)×n.n!=1\times 2\times 3\times \cdots\times (n-1)\times n.

In addition, 0!0! is defined to be 11.


Interpretation

The factorial counts how many ways distinct objects can be arranged in order. For nn objects there are nn choices for the first position, then n−1n-1 for the second, and so on down to 11 for the last; the choices multiply, giving n!n!.

The definition can also be read recursively: 0!=10!=1 and (n+1)!=(n+1)⋅n!(n+1)!=(n+1)\cdot n!, the form used in proofs by mathematical induction. The convention 0!=10!=1 fits this recursion, since 1!=1⋅0!1!=1\cdot0!, and it fits the counting meaning, since there is exactly one way to arrange no objects.

Factorials grow very fast: each step multiplies by n+1n+1, an ever larger factor, whereas a power ana^n multiplies by the fixed factor aa. A common slip is to treat the factorial as if it were linear or multiplicative: (2n)!(2n)! is neither 2⋅n!2\cdot n! nor (n!)2(n!)^2. For n=3n=3, 6!=7206!=720, while 2⋅3!=122\cdot3!=12 and (3!)2=36(3!)^2=36.

In probability, factorials return whenever outcomes are counted through ordered arrangements or selections.


Key Results

(nk)=n!k!(n−k)!.\binom{n}{k}=\frac{n!}{k!(n-k)!}.

Examples

  • 4!=244!=24.
  • 10!=362880010!=3628800.
  • Three different apples can be assigned to three ordered people in 3!=63!=6 ways.
  • A full ordering of 52 distinct cards has 52!52! possible orders.

Prerequisites

Sources

Aliases: n factorial

Last updated: 20 October 2026 03:02