Solveeit Logo

Question

Question: A three-digit number for certain locks uses the digits \(0,1,2,3,4,5,6,7,8,9\)according to the follo...

A three-digit number for certain locks uses the digits 0,1,2,3,4,5,6,7,8,90,1,2,3,4,5,6,7,8,9according to the following constraints. The first digits cannot be 00or 11, the second digit must be 00 or 11, and the second and third digits cannot be 00in the same code. How many different codes are possible?
A) 144144
B) 152152
C) 160160
D) 168168
E) 176176

Explanation

Solution

Hint: In this question evaluate the possible combination for first digit, second digit and third digit according to the given condition. There will be two cases for the second and third digits.

Complete step-by-step answer:
We are given that a three-digit number for certain locks uses the digits 0,1,2,3,4,5,6,7,8,90,1,2,3,4,5,6,7,8,9.
There are some constraints in the question.
We solve our problem by making the cases.
Case-1
We are given that first digits cannot be 00or 11 it means the possible cases for first digit will be 88
The second digit must be 00 or 11
In this case we consider the second digit will be 00.
For the third digit the condition is that second and third digits cannot be 00in the same code.
It means in this case no 00 for the third digit.
Therefore, for the third digit there will be 99 possibilities.
Hence, in this case the total codes will be 8×9=728 \times 9 = 72
Case-2
The number of cases for the first digit will remain the same.
In this case we consider the second digit will be 11.
If the second digit will be 11 then there is no constraint for the third digit.
It means for the third digit there will be 1010 possibilities.
Hence, in this case the total codes will be 8×10=808 \times 10 = 80
There will be no further cases.
Therefore, the total number possibilities will be the sum of both the cases.

Hence, 80+72=15280 + 72 = 152 different codes are possible.
Therefore, option (B) is correct.

Note:
In these types of questions the constraints define the possibilities. Analyse the constraint given in the question and then make cases according to them and don’t forget to add the total number of each case.