The number of ways, 5 boys and 4 girls can sit in a row so that either all the boys sit together or no two boys sit together, is ________
Solution
Core idea. Conditions that cannot hold together are counted separately and added.
Concept refresher. Objects that must stay together are treated as one block. If the block and the other objects make units and the block holds different objects, the number of arrangements is
Picture the situation. Nine people sit in a row. In the first case the five boys form one unbroken stretch. In the second case no two boys are neighbours; with five boys and only four girls this forces the boys into every other seat, starting and ending with a boy. The two cases cannot happen together.
Approach. Count each case separately and add.
Step 1: All boys together
The block of boys and the 4 girls make 5 units, arranged in ways, with orders inside the block, giving .
Step 2: No two boys together
With 5 boys and only 4 girls, the boys must take seats 1, 3, 5, 7 and 9. They can be arranged in ways and the girls in ways, giving .
Step 3: Add
The two cases cannot overlap, so the number of ways is .
Answer. 17280
Sanity check. The gap method agrees for the second case: the 4 girls make 5 gaps, all of which the 5 boys must use, giving .
Common wrong answers
- 14400: Counting only the case in which all the boys sit together gives 14400.
- 3000: Forgetting to arrange the boys inside their block gives .
Key takeaway
The trap. With one more boy than girls, the alternating pattern must start with a boy.
How toppers think. They check the alternating case with the gap method.
Remember.
More on Permutations
- The number of 4 -letter words, with or without meaning, each consisting of two vowels and two consonants…
- The number of ways, of forming a queue of 4 boys and 3 girls such that all the girls are not together, is:
- Three persons enter in a lift at the ground floor. The lift will go up to 10^th floor. The number of ways…
- All 55 on Permutations ›