QlarIITy

MathematicsJEE Main 2025 · 7 AprilInteger

For n≥2n \geq 2, let SnS_n denote the set of all subsets of {1,2,…,n}\{1, 2, \ldots, n\} with no two consecutive numbers. For example {1,3,5}∈S6\{1, 3, 5\} \in S_6, but {1,2,4}∉S6\{1, 2, 4\} \notin S_6. Then n(S5)n(S_5) 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. Subsets without neighbours are counted by size or by a recurrence.

Concept refresher. The number of ways to choose kk numbers from 1,2,…,n1, 2, \ldots, n with no two consecutive is

N=n−k+1CkN = {}^{n-k+1}C_k

Picture the situation. The set is 1, 2, 3, 4, 5, and a subset is allowed when it never contains two neighbouring numbers such as 2 and 3. The empty set and the single-element sets qualify automatically. Larger subsets must leave a gap after each chosen number.

Approach. Count the allowed subsets of each size and add.

  1. Step 1: Small subsets

    The empty set is 1 subset and the single-element subsets are 5.

  2. Step 2: Two or three elements

    Two non-neighbouring numbers out of five can be chosen in 4C2=6{}^4C_2 = 6 ways, and three in 3C3=1{}^3C_3 = 1 way, namely 1, 3, 5. Four numbers cannot avoid neighbours.

  3. Step 3: Add

    So the number of such subsets is 1+5+6+1=131 + 5 + 6 + 1 = 13.

Answer. 13

Sanity check. The two-element subsets are 1 and 3, 1 and 4, 1 and 5, 2 and 4, 2 and 5, 3 and 5, which is six, as counted.

Smart method. Let ana_n be the count. A subset either omits nn, giving an−1a_{n-1} subsets, or contains nn and omits n−1n - 1, giving an−2a_{n-2}. With a1=2a_1 = 2 and a2=3a_2 = 3, the values run 5, 8, 13.

Common wrong answers

  • 12: Leaving out the empty set gives 12; the empty set has no two consecutive numbers and belongs to the collection.
  • 7: Counting only the subsets with two or three elements gives 7.

Key takeaway

The trap. The empty set and the single-element sets satisfy the condition too.

How toppers think. They recognise the recurrence in which each count is the sum of the two before it.

Remember. an=an−1+an−2a_n = a_{n-1} + a_{n-2}

More on Combinations