๐Ÿ  Home โ€บ ๐Ÿงฉ Combinatorics โ€บ Lesson 2

๐Ÿงฉ Factorials โ€” Everyone, Get in Line!

๐Ÿ“– Lesson 2 of 9

๐Ÿ“Œ Key idea of this section

n things in a line:  n! = n ร— (nโˆ’1) ร— ... ร— 2 ร— 1
4! = 4 ร— 3 ร— 2 ร— 1 = 24

Three kids โ€” Ana, Ben, and Cleo โ€” line up for ice cream. How many different lines are possible?

Use the slot method. Picture three slots:

___ ___ ___
front     back
3 ร— 2 ร— 1 = 6 lines โœ…

Check by listing: ABC, ACB, BAC, BCA, CAB, CBA. Six! The slots and the honest list agree โ€” but the slots took five seconds.

This product โ€” a number times every whole number below it โ€” shows up so often it gets its own symbol, the exclamation mark:

4! = 4 ร— 3 ร— 2 ร— 1 = 24        ("four factorial")

Here's the table worth memorizing:

1! = 1        4! = 24        7! = 5,040
2! = 2        5! = 120       8! = 40,320
3! = 6        6! = 720

Two things to notice. First, each factorial is the previous one times n: 5! = 5 ร— 4! = 5 ร— 24 = 120. Know 4! and you never multiply four numbers again. Second, factorials grow SCARY fast. 10! = 3,628,800, and 52! โ€” the number of ways to shuffle a deck of cards โ€” has 68 digits. When you shuffle a deck honestly, the order you get has almost certainly never existed before in the history of the universe. Really.

One weird one: 0! = 1. How many ways can you line up zero people? Exactly one โ€” stand there and do nothing. It sounds like a joke, but Lesson 4's formula depends on it.

โœ๏ธ Your Turn!

Compute 6!. (Hint: you already know 5! = 120.) Then: how many ways can 6 books be arranged on a shelf?

๐Ÿ‘€ Show the answers

Answer: 6! = 6 ร— 120 = 720. And 6 books on a shelf is exactly 6 slots, so 6! = 720 arrangements.

V.3.1