QlarIITy

MathematicsJEE Main 2022 · 29 JuneInteger

Let b1b2b3b4b_1b_2b_3b_4 be a 4-element permutation with bi∈{1,2,3,…,100}b_i \in \{1, 2, 3, \ldots, 100\} for 1≤i≤41 \leq i \leq 4 and bi≠bjb_i \neq b_j for i≠ji \neq j, such that either b1,b2,b3b_1, b_2, b_3 are consecutive integers or b2,b3,b4b_2, b_3, b_4 are consecutive integers. Then the number of such permutations b1b2b3b4b_1b_2b_3b_4 is equal to ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Either of two conditions is counted by adding and removing the overlap.

Concept refresher. For two properties AA and BB, the number of objects with at least one of them is

n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

and the remaining objects have neither.

Picture the situation. Here consecutive integers means that each term is one more than the term before it, as in 7, 8, 9. The first condition ties the first three terms together and leaves the fourth free; the second ties the last three and leaves the first free. A permutation such as 7, 8, 9, 10 satisfies both, so it must not be counted twice.

Approach. Count the permutations for each condition, count the overlap, and apply inclusion and exclusion.

  1. Step 1: First three consecutive

    The terms b1b_1, b1+1b_1 + 1, b1+2b_1 + 2 are fixed by b1b_1, which can be any number from 1 to 98. Then b4b_4 is any of the other 97 numbers, giving 98×97=950698 \times 97 = 9506 permutations.

  2. Step 2: Last three consecutive

    In the same way b2b_2 fixes the last three terms and b1b_1 is any of the other 97 numbers, giving 9506 again.

  3. Step 3: Both

    If both hold, all four terms go up by one, fixed by b1b_1 from 1 to 97, which is 97 permutations. So the count is 9506+9506−97=189159506 + 9506 - 97 = 18915.

Answer. 18915

Sanity check. A permutation such as 5, 6, 7, 8 satisfies both conditions and would be counted twice without the correction; there are 97 of these.

Common wrong answers

  • 19012: Not removing the 97 permutations counted twice gives 19012.
  • 9506: Counting only one of the two conditions gives 9506.

Key takeaway

The trap. A run of four terms rising by one satisfies both conditions.

How toppers think. They identify the overlap first, before counting either condition.

Remember. Either: add the two counts, subtract the overlap.

More on Inclusion–Exclusion Principle