I forgot my friend's 7 digit telephone number, but i remembered that the first two digits of the number are either 25 or 53. Also the number is even and the digit 2 appears once. What is the maximum number of trials i have to make before i can contact my friend?
Answers
Answer:
Consider two separate cose,
Case 1: 25_ _ _ _ _ (2 is already present)
no. of possibilility = 9*9*9*9*4 (only four even numbers are possiblity in the last digit)
Case 2: 53_ _ _ _ _ Again here two different cases can occur
1. 2 is at the last digit
no. of possibilility = 9*9*9*9
2. 2 is not at the last digit
no. of possibilility = 4C1*9*9*9*4 (4C1 to choose any one place for 2, and 4 for remaing even numbers)
Add all the possibilities and get the answer.
Given:
- The number contains digits.
- The first two digits of the number are either or .
- The number is even.
- The digit appears once.
To Find:
The maximum number of trials I have to make before I can contact my friend.
Solution:
From the given information it is clear that out of the digit positions, the first two positions are reserved for either or .
Since the number is even, the last position can be filled by any of the digits .
Now, consider two separate cases:
Case 1: The first two digits are i.e.,
Since has already appeared, the third, fourth, fifth, and sixth positions can be filled by any of the available digits and the last position can be filled by .
Therefore, the total possible numbers in this case are .
Case 2: The first two digits are i.e.,
Here again, two cases arise.
1. Where is the last digit i.e,
Since has already appeared, the third, fourth, fifth, and sixth positions can be filled by any of the available digits .
Hence, the possible numbers are .
2. Where is not the last digit
can be filled in any of the four positions in ways. The remaining three positions can be filled by any of the available digits and the last position can be filled by .
Hence, the possible numbers are .
Adding all the possible numbers from both cases, we get
The total possible numbers are:
Thus, the maximum number of trials I have to make before I can contact my friend is .
#SPJ2