Category: Discrete Math Level: 301
P(5, 3) = 5 × 4 × 3 = 60, C(5, 3) = 60/3! = 10
Filling ordered slots multiplies the choices left at each slot. When order does not matter, divide by the number of ways to arrange the chosen items.
Pick 3 of the letters A to E and line them up in slots. Here ABC and CAB count as different, like a podium.
5 letters, 3 slots, order matters
Any of the five letters can go first. Say C goes first, so it leaves the pool.
slot 1: 5 choices
Four letters remain for slot 2 and three for slot 3. Multiply: 5 × 4 × 3 = 60 ordered lineups.
P(5, 3) = 5 × 4 × 3 = 60
The group {A, C, E} shows up in 6 of those lineups, one for each way to order three letters: 3 × 2 × 1 = 6.
3! = 6 orders of A, C, E
Each group got counted 6 times, so divide: 60 ÷ 6 = 10 groups. Listing them all proves it, if you trust nobody.
C(5, 3) = P(5, 3) / 3! = 60/6 = 10
cd svg-generator python3 -m svgmath render permutations-combinations --out /tmp/permutations-combinations
Source: svgmath/diagrams/counting.py