NVAMediumJEE 2025Applications of P&C

JEE Mathematics 2025 Question with Solution

For n2n \geq 2, let SnS_n denote the set of all subsets of {1,2,3,,n}\{1, 2, 3, \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, find n(S5)n(S_5).

Answer

Correct answer:13

Step-by-step solution

Recurrence Relation Method

Given: We need the number of subsets of {1,2,3,4,5}\{1, 2, 3, 4, 5\} such that no two selected elements are consecutive.

Find: n(S5)n(S_5).

Define ana_n as the number of valid subsets of {1,2,,n}\{1, 2, \ldots, n\} with no two consecutive elements.

If nn is not included, then the subset is chosen from {1,2,,n1}\{1, 2, \ldots, n-1\}, giving an1a_{n-1} possibilities.

If nn is included, then n1n-1 cannot be included, so the remaining subset is chosen from {1,2,,n2}\{1, 2, \ldots, n-2\}, giving an2a_{n-2} possibilities.

Therefore,

an=an1+an2a_n = a_{n-1} + a_{n-2}

Using the base cases from the extracted solution:

a2=3,a3=4a_2 = 3, \qquad a_3 = 4

Now,

a4=a3+a2=4+3=7a_4 = a_3 + a_2 = 4 + 3 = 7

and

a5=a4+a3=7+4=13a_5 = a_4 + a_3 = 7 + 4 = 13

Therefore, n(S5)=13n(S_5) = 13.

Counting by Number of Elements

Given: The set is A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}.

Find: The number of subsets with no two consecutive elements.

For subsets having exactly rr elements with no two consecutive elements, the count is

nr+1Cr{}^{n-r+1}C_r

For n=5n = 5, this becomes

6rCr{}^{6-r}C_r

Now count for all possible values of rr:

  • No element: 11 way
  • Exactly 11 element: 5C1=5^5C_1 = 5
  • Exactly 22 elements: 4C2=6^4C_2 = 6
  • Exactly 33 elements: 3C3=1^3C_3 = 1

Hence,

1+5+6+1=131 + 5 + 6 + 1 = 13

Therefore, the total number of such subsets is 1313.

Common mistakes

  • Using all subsets of {1,2,3,4,5}\{1,2,3,4,5\} and forgetting the restriction on consecutive elements. This is wrong because many subsets contain adjacent numbers like {2,3}\{2,3\}. Count only subsets in which no two chosen numbers are consecutive.

  • Writing the recurrence incorrectly as an=2an1a_n = 2a_{n-1}. This is wrong because the cases 'include nn' and 'exclude nn' do not both reduce to size n1n-1. When nn is included, n1n-1 must be excluded, so the correct recurrence is an=an1+an2a_n = a_{n-1} + a_{n-2}.

  • Using incorrect base cases. This leads to a wrong final value even if the recurrence is correct. Start with valid small cases carefully, such as counting subsets of {1,2}\{1,2\} and {1,2,3}\{1,2,3\} that avoid consecutive elements.

Practice more Applications of P&C questions

Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.

Related questions