girgit.org

Permutations and Combinations

Factorial notation: what does n! mean?

The big idea\( n! \) ("n factorial") is short for \( 1 \times 2 \times 3 \times \cdots \times n \), the number of ways to arrange \( n \) different things in a row; and by agreement \( 0! = 1 \).

In simple words

Counting arrangements keeps giving long chains like 6 times 5 times 4 times 3 times 2 times 1. Writing all of that again and again is tiring. So we use a short sign: the number followed by an exclamation mark. 6! just means "multiply every whole number from 6 down to 1". These numbers grow very fast: ten friends can stand in a line in more than thirty-six lakh different ways.

Factorial notation

The factorial of a natural number \( n \), written \( n! \), is the product of the first \( n \) natural numbers:

\[ n! = 1 \times 2 \times 3 \times \cdots \times (n-1) \times n \]
\( n \)\( n! \)Working
01defined (see below)
111
22\( 1 \times 2 \)
36\( 1 \times 2 \times 3 \)
424\( 6 \times 4 \)
5120\( 24 \times 5 \)
6720\( 120 \times 6 \)
75040\( 720 \times 7 \)
840,320\( 5040 \times 8 \)
1036,28,800\( 9! \times 10 \)

Learn the values up to \( 7! \); they come up all the time. Notice how each row is the row above times the new number. That gives the most useful fact about factorials:

\[ n! = n \times (n-1)! \]

You can keep peeling numbers off the front: \( n! = n(n-1)(n-2)! \) when \( n \ge 2 \), \( n! = n(n-1)(n-2)(n-3)! \) when \( n \ge 3 \), and so on. For example \( 7! = 7 \times 6! = 7 \times 6 \times 5! \).

Why \( 0! = 1 \)

"Multiply the numbers from 1 to 0" means nothing, so we have to decide what \( 0! \) is. We define \( 0! = 1 \). Two reasons make this the sensible choice:

  • The rule \( n! = n \times (n-1)! \) at \( n = 1 \) says \( 1! = 1 \times 0! \). Since \( 1! = 1 \), we need \( 0! = 1 \).
  • \( n! \) counts the ways to arrange \( n \) things. There is exactly one way to arrange nothing: leave the shelf empty.

Simplifying with factorials

Never multiply out big factorials in a fraction. Write the larger one in terms of the smaller one, then cancel.

Worked example

  1. \( \dfrac{10!}{8!} = \dfrac{10 \times 9 \times 8!}{8!} = 10 \times 9 = 90 \).
  2. \( \dfrac{9!}{6!\,3!} = \dfrac{9 \times 8 \times 7 \times 6!}{6! \times 6} = \dfrac{504}{6} = 84 \).
  3. \( 6! - 4! = 720 - 24 = 696 \).
  4. \( \dfrac{n!}{(n-2)!} = \dfrac{n(n-1)(n-2)!}{(n-2)!} = n(n-1) \).

Worked example

Find \( x \) if \( \dfrac{1}{7!} + \dfrac{1}{8!} = \dfrac{x}{9!} \).

  1. Multiply every term by \( 9! \), the largest factorial: \( \dfrac{9!}{7!} + \dfrac{9!}{8!} = x \).
  2. \( \dfrac{9!}{7!} = 9 \times 8 = 72 \) and \( \dfrac{9!}{8!} = 9 \).
  3. So \( x = 72 + 9 = 81 \).

Guess first

Is \( \dfrac{6!}{3!} \) equal to \( 2! \)? It looks like "6 divided by 3 is 2". Decide, then check.

See what happens
\( \dfrac{6!}{3!} = \dfrac{720}{6} = 120 \), while \( 2! = 2 \). Factorials do not divide like ordinary numbers. Cancel the \( 3! \) inside \( 6! \) instead: \( \dfrac{6 \times 5 \times 4 \times 3!}{3!} = 6 \times 5 \times 4 = 120 \).

See it: the smaller factorial sits inside the bigger one and cancels tile by tile.

Don't mix these up

  • \( (a + b)! \ne a! + b! \). For example \( 2! + 3! = 8 \), but \( 5! = 120 \).
  • \( (2n)! \ne 2 \times n! \). For \( n = 3 \): \( 6! = 720 \), but \( 2 \times 3! = 12 \).
  • \( \dfrac{m!}{n!} \ne \left(\dfrac{m}{n}\right)! \). Cancel the smaller factorial; do not divide the numbers.

Try it. (a) \( 8! \). (b) \( \dfrac{12!}{10!\,2!} \). (c) \( \dfrac{n!}{(n-r)!} \) when \( n = 7, r = 3 \). (d) Is \( 2! \times 3! = 6! \)?

Answer
(a) \( 40\,320 \). (b) \( \dfrac{12 \times 11}{2} = 66 \). (c) \( \dfrac{7!}{4!} = 7 \times 6 \times 5 = 210 \). (d) No: \( 2 \times 6 = 12 \), but \( 6! = 720 \).

Words to know

Factorial, \( n! \)
\( 1 \times 2 \times \cdots \times n \); read "n factorial" or "factorial n".
\( 0! = 1 \)
A definition: there is one way to arrange nothing.
\( n! = n(n-1)! \)
Peel off the top number and a smaller factorial is left.
Natural number
A counting number: 1, 2, 3, and so on.

What is \( \dfrac{8!}{6!} \)?

  1. \( \tfrac{4}{3} \)
  2. \( 2 \)
  3. \( 56 \)

Why is \( 0! \) taken to be 1?

  1. Because \( 0! = 0 \times 1 \)
  2. It keeps \( n! = n(n-1)! \) true at \( n = 1 \), and there is one way to arrange nothing
  3. It is undefined, so we use 1 as a guess

Which statement is true?

  1. \( 3! + 3! = 6! \)
  2. \( 5! = 5 \times 4! \)
  3. \( 2 \times 3! = 6! \)