Discrete mathematics·Elementary·Operation

Factorial

For a nonnegative integer n, n! is the product of all positive integers from 1 through n, with 0! defined as 1.

A factorial multiplies a whole-number countdown down to 1.

What does factorial mean?

Factorials grow quickly and count the number of arrangements of n distinct objects. The recurrence n!=n(n−1)! for n≥1 follows directly from separating the factor n. Factorials are also used in combinations, probability, and power series.

Notation

n!

n factorial equals n times n minus one factorial, and zero factorial equals one

n!=n(n−1)!,0!=1n!=n(n-1)!,\qquad 0!=1

Factorial examples

Example 1

Evaluate 5!.

Answer: 5×4×3×2×1=120

Multiply the positive integers from 1 through 5.

Properties and types

  • 0! = 1 by definition and combinatorial consistency.
  • n! counts permutations of n distinct objects.

Where is factorial used?

This concept appears in a range of mathematical and practical settings:

  • Permutations and combinations
  • Probability
  • Taylor series

Common misunderstandings

  • Including zero as a factor in n!.
  • Treating factorial as repeated addition.