Identify Correct Recurrence Relation for Binary Sequences
Let denote the number of all -digit positive integers formed by the digits or both such that no consecutive digits in them are . Let the number of such -digit integers ending with digit and the number of such -digit integers ending with digit .
Which of the following is correct?
Options
Topics & Concepts
Step-by-Step Solution
To determine the correct relation, let us analyze the conditions given for the sequences:
An -digit positive integer formed by digits and must have its leading digit equal to (since a positive integer cannot start with ). It is also given that no two consecutive digits can be .
Let:
- be the total number of such valid -digit integers.
- be the number of such valid -digit integers ending in .
- be the number of such valid -digit integers ending in .
Since every valid -digit integer must end in either or , we have: a_n = b_n + c_n \quad \text{for all } n \ge 1 \tag{1}
Now, consider extending an -digit valid integer to an -digit valid integer:
- To obtain an -digit integer ending in , we can append to any valid -digit integer, regardless of whether it ends in or . Hence: b_n = a_{n-1} = b_{n-1} + c_{n-1} \quad \text{for all } n \ge 2 \tag{2}
- To obtain an -digit integer ending in , we can only append to a valid -digit integer that ends in (to avoid two consecutive zeros). Hence: c_n = b_{n-1} \quad \text{for all } n \ge 2 \tag{3}
Using equation (2) and equation (3), we can express for as: c_n = b_{n-1} = a_{n-2} \tag{4}
Substitute equations (2) and (4) into equation (1):
Now let us evaluate each of the given options:
-
Option (A): Since the recurrence holds for all , setting gives: Therefore, this statement is correct.
-
Option (B): From and , we have: Thus, is incorrect.
-
Option (C): From equation (2), , so is incorrect.
-
Option (D): We have . Since and , and generally , . Thus, this option is incorrect.
Hence, the correct option is A.