All concepts

12. Counting

nCk, restrictions first, glue trick for adjacent items, 2^n subsets.

Seat 1, Seat 2, Seat 3543××restricted seat first5 × 4 × 3 = 60 arrangements

Core ideas

- Order does not matter: nCk = n! / (k!(n-k)!). Order matters: multiply slots.
- Handle restrictions FIRST: place the constrained people or seats, then fill the rest freely.
- Glue trick: items that must sit together become one block; arrange the blocks, then multiply by arrangements inside the block.
- "Must not both" or "at least" often falls fastest to total minus the bad cases. A set of n items has 2^n subsets.

Worked example 1

A club of 8 people must choose a 3-person committee, but Ann and Bob refuse to serve together. How many committees are possible?

Show solution

Total committees with no restriction: 8C3 = (8 * 7 * 6)/(3 * 2 * 1) = 56. Bad committees contain both Ann and Bob plus one of the other 6 people: 6 of them. Subtract: 56 - 6 = 50. Total minus bad beats casework here.

Worked example 2

Five different books are arranged on a shelf. In how many arrangements are the two math books next to each other?

Show solution

Glue the two math books into one block, giving 4 objects to arrange: 4! = 24 ways. Inside the block the two math books can sit in 2! = 2 orders. Multiply: 24 * 2 = 48 arrangements.

Practice set

Question 1

In how many different orders can 4 distinct books be arranged in a row on a shelf?






Question 2

A committee of 4 people is to be chosen from 6 men and 4 women. If the committee must include exactly 2 women, how many different committees are possible?






Question 3

Five people, including Ana and Ben, are to stand in a row for a photo. If Ana and Ben must stand next to each other, how many different arrangements are possible?






Question 4

A 5-digit code uses each of the digits 1, 2, 3, 4, and 5 exactly once. In how many such codes does the digit 1 appear somewhere to the left of the digit 2 ?