๐ Lining up
The rule
- To line up all the things, fill the spots one at a time, left to right.
- The first spot can take any of the n things. The second takes any of the n โ 1 left, and so on.
- Each spot has one fewer choice, because the one used is gone. The last spot has just 1 choice.
- Multiply the choices: n ร (n โ 1) ร โฆ ร 2 ร 1. This is called n factorial and is written n!.
- 3! = 3 ร 2 ร 1 = 6. 4! = 24. 5! = 120. Factorials grow very fast.
- If one thing is fixed in its spot, only the others move. Fix 1 of 5 and the other 4 give 4! = 24 orders.
- No ties and no repeats: a race with 6 runners has 6! finishing orders.
Examples
3 friends stand in a row. How many different orders? โ 6
- Spot 1: 3 choices
- Spot 2: 2 left
- Spot 3: 1 left
- 3 ร 2 ร 1 = 6
3 choices, then 2, then 1: 3 ร 2 ร 1 = 6.
Work out 5!. โ 120
- 5! = 5 ร 4 ร 3 ร 2 ร 1
- 5 ร 4 = 20
- 20 ร 3 = 60
- 60 ร 2 = 120
Multiply down to 1: 5 ร 4 ร 3 ร 2 ร 1 = 120.
5 books on a shelf. The red book must go first. How many orders? โ 24
- The first spot is fixed: the red book
- The other 4 books can go in any order
- 4! = 4 ร 3 ร 2 ร 1
- 4 ร 3 = 12
- 12 ร 2 = 24
The red book is fixed, so only the other 4 move: 4! = 24.
6 runners race, no ties. How many different finishing orders? โ 720
- 6 runners could be first, then 5 are left for second, and so on
- 6! = 6 ร 5 ร 4 ร 3 ร 2 ร 1
- 6 ร 5 = 30
- 30 ร 4 = 120
- 120 ร 3 = 360
- 360 ร 2 = 720
6! = 6 ร 5 ร 4 ร 3 ร 2 ร 1 = 720.
Watch out
- โ3 friends in a row: 3 ร 3 ร 3 = 27.โ No: a friend who has a spot cannot take another. 3 ร 2 ร 1 = 6.
- โ4! = 4 ร 3 = 12.โ No: keep going down to 1. 4 ร 3 ร 2 ร 1 = 24.
- โ5 books, red first: 5! = 120.โ No: the red book is fixed. Only 4 books move: 4! = 24.