The Elegance of Counting
A Combinatorial Journey
Welcome, fellow traveler on the road to JEE Advanced excellence. Today, we are not just solving a problem; we are peeling back the layers of a beautiful combinatorial puzzle.
We are tasked with finding the number of 4-element permutations (b1,b2,b3,b4) from the set S={1,2,3,…,100} such that either the first three or the last three integers are consecutive. This is a classic "either-or" problem, and it is a perfect stage to showcase the power of the Principle of Inclusion-Exclusion.
Phase 1
Defining the Landscape
Imagine you have a bag containing one hundred distinct tiles, numbered 1 to 100. You are asked to draw four tiles and arrange them in a line. We have two specific conditions that make a permutation "valid":
1. Condition A: The first three numbers (b1,b2,b3) form a consecutive sequence (k,k+1,k+2).
2. Condition B: The last three numbers (b2,b3,b4) form a consecutive sequence (k,k+1,k+2).
We want to find the total number of permutations that satisfy A or B. In the language of set theory, we are looking for n(A∪B).
Phase 2
The Anatomy of Condition A
Let's isolate Condition A. We need (b1,b2,b3) to be consecutive, which can be represented as (k,k+1,k+2).
The starting integer k can be any value from 1 to 98. If k=1, we have (1,2,3); if k=98, we have (98,99,100). This gives us exactly 98 ways to choose the triplet.
We have a fourth position, b4, to fill. Since the problem requires all four numbers to be distinct, b4 cannot be any of the three numbers we just picked. With 100 total numbers available and 3 already used, we have 100−3=97 choices for b4.
Thus, the total number of permutations satisfying Condition A is:
n(A)=98×97=9506
Phase 3
The Symmetry of Condition B
Now, look at Condition B. The logic is identical. The triplet (b2,b3,b4) must be consecutive.
Again, there are 98 ways to choose this triplet. And again, b1 must be distinct from the three numbers in the triplet, leaving us with 97 choices.
So, the total number of permutations satisfying Condition B is:
n(B)=98×97=9506
Phase 4
The Trap of Overcounting
If we simply add n(A)+n(B), we get 9506+9506=19012. However, we have counted some permutations twice.
A permutation satisfies both Condition A and Condition B if (b1,b2,b3) is consecutive AND (b2,b3,b4) is consecutive. This forces all four numbers to be consecutive: (k,k+1,k+2,k+3).
We must subtract these overlapping cases to avoid overcounting. The starting number k can range from 1 to 97.
If
k=1, we have
(1,2,3,4); if
k=97, we have
(97,98,99,100). So, there are exactly
97 such sequences, meaning:
n(A∩B)=97
Phase 5
The Final Resolution
Now, we apply the Principle of Inclusion-Exclusion:
n(A∪B)=n(A)+n(B)−n(A∩B)
Substituting our values:
n(A∪B)=9506+9506−97
n(A∪B)=19012−97=18915
And there it is! The total number of valid permutations is 18915. Remember, in combinatorics, the secret is often not just in the counting, but in the careful management of overlaps.