Factorial

About this exercise

The factorial — the product of all whole numbers up to a given one.

Example problems

A few of the problems this exercise asks. The printable worksheet holds ten fresh ones.

  1. 2! − 1! = ?
  2. 3! = ?
  3. 5! = ?
  4. 2! + 1! = ?

Try it yourself first — open a section below only if you get stuck.

How to solve it

Multiply from 1 up to the number. By convention zero factorial is 1.

Worked example

5 factorial is 1 x 2 x 3 x 4 x 5 = 120.

Common mistake

Underestimating how fast it grows. 10 factorial already passes three million.