Question
Question: Let \({a_n}\) denote the number of all n-digit positive integers formed by the digits 0, 1 or both s...
Let an denote the number of all n-digit positive integers formed by the digits 0, 1 or both such that no consecutive digits in the term are 0. Let bn= the number of such n-digit integers ending with digit 1 and cn= the number of such n-digit integers ending with digit 0. Which of the following is correct?
A) a17=a16+a15
B) c17=c16+c15
C) b17=b16+c16
D) a17=c17+b16
Solution
According to the question we have to determine the correct expression when let an denote the number of all n-digit positive integers formed by the digits 0, 1 or both such that no consecutive digits in the term are 0. Let bn= the number of such n-digit integers ending with digit 1 and cn= the number of such n-digit integers ending with digit 0. So, first of all we have to consider the possible number for a1 which is only a one digit number.
Now, we have to determine the possible number a2which is a two digits number and now same as we have to we have to determine the possible number a3which is a three digits number and same as we have to determine the possible number a4which is a four digits number.
Now, we have to observe all of the relationships to choose the correct expression.
Complete step-by-step answer:
Step 1: First of all we have to consider whether the last digit is ‘0’ or ‘1’ and when we consider ′a1′ so there is only one number possible which is 1.
Step 2: Now, same as the step 1 we have to consider ′a2′ such number and two such possible numbers can be ‘10’ and ’11’
Step 3: Now, when we consider ′a3′ then three such number are possible can be ‘101’, ‘111’, and ‘110’
Step 4: Now, when we consider ′a4′ then five such number are possible can be ‘1010’, ‘1011’,’1110’,’1101, and ‘1111’
Step 5: Now, on observing all the steps we get a relationship which is an=an−1+an−2 so, on substituting n = 17 in the relationship as obtained,
⇒a17=a17−1+a17−2 ⇒a17=a16+a15
Hence, we have obtained the correct relationship which is a17=a16+a15.
Therefore our correct option is (A)
Note: Alternative method:
Step 1: First of all we have to use the Recursion formula to obtain the correct expression which is an=an−1+an−2 and same as bn=bn−1+bn−2 and cn=cn−1+cn−2∀n⩾3
Step 2: So, we can obtain for a1=1,a2=2,a3=3, and a4=5
Step 3: Now, same as the step 2, b1=1,b2=1,b3=2, and b4=3
Step 4: Now, same as the step 3, c1=0,c2=1,c3=1, and c4=2
Step 5: Now, with the help of solutions steps we get bn−1=cn. Hence,
⇒ a17=a16+a15