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

๐Ÿ” Combinations โ€” Order Doesn't Matter

๐Ÿ“– Lesson 4 of 9

๐Ÿ“Œ Key idea of this section

C(n, r) = P(n, r) รท r!     ("n choose r")
C(6, 3) = 20

Pizza night! You may pick 2 toppings out of 4: pepperoni, mushrooms, olives, green peppers. How many different pizzas are possible?

Try P(4, 2) = 4 ร— 3 = 12. Sounds reasonable... but it's WRONG. Here's the trap: "pepperoni then mushrooms" and "mushrooms then pepperoni" make the SAME pizza. The permutation counted every pizza twice โ€” once in each order. The real list has only 6: PM, PO, PG, MO, MG, OG.

When ORDER DOESN'T MATTER, the permutation overcounts. Every group of r things gets counted once for each of its r! arrangements โ€” so divide the clones out:

C(n, r) = P(n, r) / r!

For the pizza: C(4, 2) = 12 / 2! = 12 / 2 = 6 โœ…. ("C" is for choose โ€” you CHOOSE the group and stop caring about order.)

The full factorial version, worth knowing:

C(n, r) = n! / (r! ร— (nโˆ’r)!)

Example: C(6, 3) = 6! / (3! ร— 3!) = 720 / (6 ร— 6) = 720 / 36 = 20 โœ…. (Cancel before you multiply: (6 ร— 5 ร— 4) / (3 ร— 2 ร— 1) = 120/6 = 20. Your pencil will thank you.)

The most famous combination in the world: handshakes. 5 people each shake hands once with everyone else. How many handshakes? Each handshake is just a pair of people โ€” and "Ana shakes Ben" is the same event as "Ben shakes Ana." Order doesn't matter:

C(5, 2) = (5 ร— 4) / 2 = 10 handshakes โœ…

Try it with dots and lines: 5 dots, connect every pair โ€” you'll draw exactly 10 lines. Every two-person connection problem (handshakes, games in a round-robin, cables between cities) is a C(n, 2) in disguise.

โœ๏ธ Your Turn!

Compute C(7, 2). Then: 7 players on a team high-five every possible pair at practice. How many high-fives?

๐Ÿ‘€ Show the answers

Answer: C(7, 2) = (7 ร— 6) / 2 = 21. And the high-fives are the same problem in disguise โ€” 21.

V.3.1