Grouping, complementary and cases
Three more counting principles for ordered selections: treat objects that must be together as a block, count the complement, and split a problem into cases.
The multiplication principle handles straightforward questions. Real questions add conditions: "these two must sit together", "these two must not", "the number must be odd and bigger than 4000". Three more principles handle almost all of them.
Grouping: tie them together
If some objects must be next to each other, tie them into one block. Arrange the blocks, then arrange the objects inside each block.
Three sisters and four other people stand in a row. In how many ways can this be done if the sisters stand together?
The same idea works with several blocks. Four maths books and three English books go on a shelf with each subject kept together: order the $2$ blocks ($2!$), then each block ($4!$ and $3!$), giving $2 \times 24 \times 6 = 288$.
The complement: count what you don't want
"Not together" is awkward to count directly. "Together" is easy, by grouping. So count everything, and subtract the arrangements you don't want.
Six people sit in a row. In how many ways can they sit if Alex and Bo must not sit next to each other?
Cases: split it up
Sometimes one set of boxes can't cope, because how many choices one box has depends on what went in another. Split into cases that don't overlap, count each, and add.
How many 4-digit odd numbers greater than $4000$ can be made from $1, 2, 3, 4, 5, 6$ with no repetition?
If the cases do overlap, subtract the overlap so it isn't counted twice: $|A \cup B| = |A| + |B| - |A \cap B|$. For example, among $1$ to $100$ there are $33$ multiples of $3$ and $20$ multiples of $5$, but $6$ numbers (multiples of $15$) are in both. So $33 + 20 - 6 = 47$ numbers are multiples of $3$ or $5$.
Your turn
Three boys and three girls sit in a row, alternating boy, girl, boy, girl, and so on. How many ways?
Show the working
The pattern can start with a boy or a girl: $2$ ways. Then the boys fill their three seats in $3!$ ways and the girls fill theirs in $3!$ ways. Total $2 \times 6 \times 6 = 72$.
Three sisters and four others stand in a row, with the sisters together. How many arrangements?
Block plus 4 others: $5! = 120$. Sisters within the block: $3! = 6$. Total $720$.
Six people sit in a row. In how many ways are Alex and Bo not next to each other?
Total $6! = 720$. Together: $5! \times 2 = 240$. Not together: $720 - 240 = 480$.
Four maths and three English books are shelved with each subject together. The number of arrangements is:
Order the two subject blocks ($2!$), then each block ($4!$ and $3!$): $2 \times 24 \times 6 = 288$.
Three boys and three girls sit in a row, alternating. How many arrangements?
Start with a boy or a girl: $2$ ways. Then $3!$ for the boys and $3!$ for the girls: $2 \times 6 \times 6 = 72$.
How many arrangements of the letters of NUMBER have the two vowels next to each other?
Tie U and E together: $5$ units, $5! = 120$ ways. Order the pair: $2$. Total $240$.
The digits $1, 2, 3, 4, 5$ are arranged to form a 5-digit number. In how many arrangements are $1$ and $2$ not next to each other?
Total $5! = 120$. Together: $4! \times 2 = 48$. Not together: $120 - 48 = 72$.
How many numbers from $1$ to $100$ are multiples of $3$ or of $5$?
$33$ multiples of $3$, $20$ multiples of $5$, and $6$ multiples of $15$ counted twice: $33 + 20 - 6 = 47$.
How many numbers from $1$ to $1000$ are multiples of $4$ or of $6$?
Multiples of $4$: $250$. Multiples of $6$: $166$. Both means multiples of $12$ (not $24$): $83$. Total $250 + 166 - 83 = 333$.
Exam style: how many 4-digit odd numbers greater than $4000$ can be formed from $1, 2, 3, 4, 5, 6$ without repetition?
First digit $4$ or $6$: $2 \times 3 \times 4 \times 3 = 72$ (last digit $1, 3$ or $5$). First digit $5$: $1 \times 2 \times 4 \times 3 = 24$ (last digit $1$ or $3$). Total $96$.
Exam style: how many 3-digit even numbers greater than $500$ have no repeated digit?
First digit $5, 7$ or $9$ (odd): $3$ ways, last digit any of $0, 2, 4, 6, 8$: $5$ ways, middle $8$ ways: $120$. First digit $6$ or $8$ (even): $2$ ways, last digit one of the other $4$ even digits: $4$ ways, middle $8$: $64$. Total $184$.
Coaching Centre