Sigma Percentile
JEE Advanced 2012
LEVELJEE Main

Animated Solution for Mathematics - Permutations and Combinations: Comprehension Passage

Let denote the number of all -digit positive integers formed by the digits 0, 1 or both such that no consecutive digits in them are 0. Let = the number of such -digit integers ending with digit 1 and = the number of such -digit integers ending with digit 0.
Question 1:

The value of is

Select Answer:

Question 2:

Which of the following is correct?

Select Answer:

Visualized Solution

Understanding the Constraints

  • Digits allowed:
  • Condition: No consecutive s (No '')
  • Constraint: First digit must be

Defining and

  • : Total number of valid -digit integers
  • : Number of such integers ending with
  • : Number of such integers ending with
  • Total relation:

Deriving

  • Case : The number ends in
  • The first digits must form a valid -digit integer.
  • Therefore,

Deriving

  • Case : The number ends in
  • To avoid '', the -th digit MUST be .
  • The first digits must form a valid -digit integer.
  • Therefore,

The Recurrence Relation

  • Substitute and into the total sum:
  • This holds for .

Base Cases: and

  • For : Only the digit is valid.
  • For : Valid numbers are and .

Calculating to

Finding

  • We need to find .
  • Recall our earlier derivation:
  • Substitute :
  • From our previous step,

Verifying the Relation for

  • The general recurrence is
  • For :
  • This matches the first option exactly.
  • Conclusion: and

The Sigma Insight: Fundamental Principle of Counting

Solution Diagram

The Architecture of Constraints

A Combinatorial Journey
Welcome, future engineer. Today, we are not just solving a problem; we are building a machine. Combinatorics is often misunderstood as a game of guessing or tedious listing.
But at the JEE Advanced level, it is about identifying the hidden structure—the 'DNA'—of a sequence. We are looking at -digit integers formed by and , with the strict constraint that no two zeros can stand side-by-side. This is a classic problem, and I want you to see the elegance behind the math.

Phase 1

The Anatomy of the Problem
Imagine you are standing at the end of an -digit number. You have two choices for the last digit: it is either a or a . This binary choice is the key to everything.
Let be the total number of valid -digit integers. We can partition this set into two mutually exclusive groups:
1. Those ending in (let's call this count ). 2. Those ending in (let's call this count ).
Naturally, the total is . This is our foundation. Now, let us analyze the behavior of these groups. This is where the magic happens.

Phase 2

The State Transition
Consider the group (numbers ending in ). If the last digit is , does it restrict the digit before it? Absolutely not. The digit before it could be or .
Because there is no restriction, the first digits can be any valid -digit integer. Therefore, the number of ways to form a valid -digit integer ending in is exactly the same as the number of ways to form a valid -digit integer. Mathematically, we write this as:
Now, consider the group (numbers ending in ). This is where the constraint bites. If the last digit is , the digit immediately preceding it must be to avoid the forbidden '' sequence.
So, the last two digits are fixed as ''. What about the remaining digits? They can be any valid -digit integer. Thus, the number of valid integers ending in is exactly the number of valid integers of length . We arrive at:

Phase 3

The Fibonacci Emergence
We have our two pillars: and . Substituting these into our total sum equation, , we get the beautiful recurrence relation:
This is the Fibonacci recurrence! It appears here not by coincidence, but because the constraints of the problem naturally partition the set into the previous two states. This relation holds for all .

Phase 4

The Calculation
To solve for specific values, we need our base cases. For , the only valid integer is , so . For , the valid integers are and , so .
Now, we can climb the ladder:
The question asks for . We know . Looking at our sequence, . Therefore, .

Final Reflection

When you look at the second part of the question, asking about , you don't need to calculate it. You simply recognize the recurrence relation .
Do you see the beauty here? We didn't brute-force the counting. We didn't list thousands of numbers. We understood the rules of the system, translated them into a mathematical recurrence, and let the logic do the heavy lifting. This is the mindset of a JEE Advanced topper.

Similar Questions

JEE Main 2025 April
LEVELBoard

If the number of seven-digit numbers, such that the sum of their digits is even, is ; , then is equal to _______

JEE Advanced 2022
LEVELJEE Main

The number of 4-digit integers in the closed interval formed by using the digits 0, 2, 3, 4, 6, 7 is _____________.

JEE Main 2020 - 9 Jan (Morning)
LEVELJEE Main

If number of 5 digit numbers which can be formed without repeating any digit while tenth place of all of the numbers must be 2 is 336 k find value of k

(A)
8
(B)
7
(C)
6
(D)
5
JEE Main 2023 (13 April Shift 2)
LEVELJEE Main

Total numbers of 3-digit numbers that are divisible by 6 and can be formed by using the digits 1, 2, 3, 4, 5 with repetition, is ________

JEE Main 2022 (29 June Shift 1)
LEVELJEE Main

Let be a 4-element permutation with for and for , such that either are consecutive integers or are consecutive integers. Then the number of such permutations is equal to ______.

JEE Main 2022 (29 June Shift 2)
LEVELBoard

The total number of four digit numbers such that each of the first three digits is divisible by the last digit, is equal to ______.

JEE Main 2022 (26 July Shift 2)
LEVELJEE Main

Numbers are to be formed between 1000 and 3000, which are divisible by 4, using the digits 1, 2, 3, 4, 5 and 6 without repetition of digits. Then the total number of such numbers is ______.

JEE Advanced 1998
LEVELBoard

An -digit number is a positive number with exactly digits. Nine hundred distinct -digit numbers are to be formed using only the three digits 2, 5 and 7. The smallest value of for which this is possible is

(A)
6
(B)
7
(C)
8
(D)
9
JEE Main 2021 (22 July Shift 1)
LEVELBoard

If the digits are not allowed to repeat in any number formed by using the digits 0, 2, 4, 6, 8, then the number of all numbers greater than 10,000 is equal to

JEE Main 2022 (25 June Shift 1)
LEVELJEE Main

The number of 3-digit odd numbers, whose sum of digits is a multiple of 7, is ______.