Hello! Welcome back to our study of Combinatorics.
In our last lesson, we established the core difference between permutations (arrangements where order matters) and combinations (selections where order doesn't matter). We focused on the Fundamental Counting Principle and used the "slots" method to solve basic arrangement and selection problems.
Today, we will build directly on that foundation. We're moving from simple arrangements to more realistic exam-style problems that involve constraints. The goal of this lesson is to learn how to solve arrangement problems with and without restrictions. We'll focus on two powerful techniques to handle the most common scenarios: when certain items must stay together, and when they must be kept apart.
1. Restriction Type 1: Items Must Be Together (The Block Method)
Let's start with a common restriction: a group of items must always be arranged together. For example, arranging books on a shelf so that all the fiction books are grouped together.
The strategy here is intuitive: if a set of items must always be together, we can mentally "glue" them into a single block. Then, we perform two main steps:
- Arrange this new "block" along with the other individual items.
- Arrange the items inside the block itself.
Let's look at a simple visual example.

To solve this, we follow the logic:
- Step 1: Arrange the blocks. We have two blocks: the Number Block and the Letter Block. We can arrange these two blocks in ways: (Number Block, Letter Block) or (Letter Block, Number Block).
- Step 2: Arrange items within the blocks.
- The numbers (1, 2, 3) can be arranged within their block in ways.
- The letters (A, B) can be arranged within their block in ways.
- Step 3: Combine the results. Using the Fundamental Counting Principle, the total number of arrangements is .
This powerful technique is often called the Block Method or String Method. To see it applied to more examples, including cases with repeated items, let's turn to a resource.
Permutations and Combinations: Block and Gap method
The following text from Kings Education explains the Block Method with clear examples, including how to handle distinct and repeated objects.
Read the section titled 'Block Method (String Method)'. Pay close attention to the two main examples: one involving seating arrangements of boys and girls, and the other arranging the letters of the word 'MISSISSIPPI' where the S's must be together.
As you saw, the general procedure is:
- Identify the items that must stay together and treat them as a single conceptual block.
- Calculate the number of ways to arrange this block along with the remaining individual items. Remember to account for any identical items here.
- Calculate the number of ways the items can be arranged within the block. Again, account for any identical items if they exist inside the block.
- Multiply the results from steps 2 and 3 to get the total number of arrangements.
Test your understanding!
In how many ways can the letters of the word 'LEADING' be arranged such that the vowels always come together?
Show answer
- Identify vowels and consonants: The vowels are E, A, I. The consonants are L, D, N, G.
- Block the vowels: Treat the vowels (E, A, I) as a single block, let's call it [V].
- Arrange the block and other items: We now have to arrange 5 "items": L, D, N, G, and [V]. These can be arranged in ways.
- Arrange items within the block: The vowels E, A, I can be arranged within their block in ways.
- Total arrangements: Multiply the results: ways.
2. Restriction Type 2: Items Must Be Separated (The Gap Method)
Now, let's tackle the opposite problem: arranging items such that certain ones are never together. For example, seating boys and girls in a row so that no two girls sit next to each other.
Trying to count this directly is difficult. A much better approach is the Gap Method. The logic is as follows:
- First, place all the items that have no restrictions on them.
- This arrangement creates "gaps" between the items (and also at the two ends).
- Then, place the restricted items into these gaps. Since each gap can hold at most one item, this ensures they will never be together.
Let's illustrate with an example: Arrange 3 boys and 2 girls in a row so that the girls are never together.
- Step 1: Arrange the unrestricted items. The 3 boys (B) have no restrictions. Let's arrange them first.
The boys can be arranged in ways. - Step 2: Identify the gaps. The arrangement of 3 boys creates 4 possible gaps for the girls to occupy (marked by underscores).
- Step 3: Place the restricted items in the gaps. We need to place 2 girls into these 4 available gaps. This is a permutation problem (placing Girl 1 in gap 1 and Girl 2 in gap 2 is different from the reverse). The number of ways to arrange 2 girls in 4 gaps is .
- Step 4: Combine the results. The total number of arrangements is (ways to arrange boys) (ways to place girls in gaps) = .
This method is systematic and very reliable. Let's see some more examples from the same resource.
Permutations and Combinations: Block and Gap method
The same document also provides an excellent explanation of the Gap Method.
Read the section titled 'Gap method'. Focus on how they first arrange the unrestricted items to create gaps, and then place the restricted items into those gaps. Note the general rule: arranging 'n' items creates 'n+1' gaps.
An Alternative for "Never Together"
For some simpler "never together" problems, you can also use an indirect method based on what we learned in the first section:
Total Arrangements - Arrangements Where They Are Always Together = Arrangements Where They Are Not Together
For our example of 3 boys and 2 girls:
- Total arrangements without any restrictions: .
- Arrangements where girls are always together (using the Block Method):
- Treat the 2 girls as one block [GG]. We arrange 3 boys and [GG], which is 4 items: ways.
- The girls inside the block can be arranged in ways.
- Total "together" arrangements = .
- Arrangements where girls are not together: .
This method works well, but be careful. It is most reliable when you want to ensure a specific pair of items are not together. The Gap Method is generally more robust, especially for problems that state "no two of a group of three or more items can be together". For the CAT, being proficient with the Gap Method is highly valuable.
Test your understanding!
In how many ways can 5 boys and 4 girls be arranged in a line so that no two girls are together?
Show answer
Let's use the Gap Method.
- Arrange the unrestricted items: The 5 boys have no restrictions. They can be arranged in ways.
- Identify the gaps: Arranging the 5 boys creates 6 gaps.
- Place the restricted items: We need to arrange the 4 girls in these 6 available gaps. The number of ways to do this is .
- Total arrangements: (Ways to arrange boys) (Ways to place girls) = ways.
Conclusion
Today we added two crucial techniques to your combinatorics toolkit, allowing you to solve complex arrangement problems with confidence.
Key Takeaways:
- "Always Together" Restriction: Use the Block Method. Treat the required items as a single unit, arrange the units, and then arrange the items within the unit.
- "Never Together" Restriction: Use the Gap Method. Arrange the unrestricted items first to create gaps, then place the restricted items into those gaps.
- The key is to transform a problem with restrictions into a sequence of simpler, unrestricted permutation problems that you already know how to solve.
Preview of the Next Lesson:
We've spent two lessons focusing on permutations (arrangements). Now, we will shift our focus back to combinations (selections). In the next lesson, we will learn how to solve selection problems involving 'at least'/'at most' conditions, which are another very common type of question in the CAT.