

InterviewSolution
Saved Bookmarks
1. |
A sequence is a termary sequence, if it contains digits 0, 1 and 2. The total numbre of teranryn sequences of length 9 which either begin with 210 or end with 210, isA. 1458B. 1431C. 729D. 707 |
Answer» Since each digit in a ternary sequence of length 9 can be filled in 3 ways. Therefore, the number of nine-digit ternary sequence beginning with 210 is `3^(6)` and the number fo nine-digit ternary sequence ending with 210 is also `3^(6)`. The number of ternary sequence of 9 digits which being and end with 210 is `3^(3)`. Thus, the total number of sequences which either begin with 210 or end with 210 is `3^(6)+3^(6)-3^(6)=729-27=1431` |
|