โ† Counting ways

๐Ÿ“– 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

  1. Spot 1: 3 choices
  2. Spot 2: 2 left
  3. Spot 3: 1 left
  4. 3 ร— 2 ร— 1 = 6

3 choices, then 2, then 1: 3 ร— 2 ร— 1 = 6.

๐Ÿ™‚๐Ÿ˜Ž๐Ÿค“๐Ÿ˜Ž๐Ÿค“๐Ÿ™‚๐Ÿค“๐Ÿ™‚๐Ÿ˜Ž

Work out 5!. โ†’ 120

  1. 5! = 5 ร— 4 ร— 3 ร— 2 ร— 1
  2. 5 ร— 4 = 20
  3. 20 ร— 3 = 60
  4. 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

  1. The first spot is fixed: the red book
  2. The other 4 books can go in any order
  3. 4! = 4 ร— 3 ร— 2 ร— 1
  4. 4 ร— 3 = 12
  5. 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

  1. 6 runners could be first, then 5 are left for second, and so on
  2. 6! = 6 ร— 5 ร— 4 ร— 3 ร— 2 ร— 1
  3. 6 ร— 5 = 30
  4. 30 ร— 4 = 120
  5. 120 ร— 3 = 360
  6. 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.
Start the lesson โ–ถ