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.
The value of is
The value of is
- (A)7
- (B)8✓ Correct
- (C)9
- (D)11
Answer: (B)
Solution
We have the recurrence relations:
From these: (Fibonacci-like).
Starting values: (only "1"), ("10", "11").
Computing: , , , .
Since .
- (total = ending in 1 + ending in 0)
- (to end in 1, the previous digits can be any valid configuration)
- (to end in 0, the previous digit must be 1)
From these: (Fibonacci-like).
Starting values: (only "1"), ("10", "11").
Computing: , , , .
Since .
JEE Advanced · 2012 · 08 Apr 2012 · Paper 2 · Single correct option