Probability Question: 3-Digit Combination Lock

AI Thread Summary
The discussion revolves around calculating the probability of a 3-digit combination lock passcode containing two fives. It is established that since order does not matter, there are three configurations for placing the fives, leading to 21 valid combinations when considering the remaining digits. The total number of possible passcodes is 512, resulting in a probability of 21/512, or approximately 4.1%. However, there is confusion regarding a book answer of 8.2%, which seems to stem from a misunderstanding of how to account for the order of the digits. Ultimately, the participants agree that the initial calculation of 4.1% is correct.
MeesaWorldWide
Messages
9
Reaction score
1
Homework Statement
A combination lock opens with the correct 3-digit code. Each wheel rotates through the digits 1 to 8. What is the probability of a randomly chosen passcode having exactly 2 fives?
Relevant Equations
n/a
A passcode having 2 fives implies that order does not matter (5 7 5 is the same passcode as it would be if we switched the 2 fives). There are 8 available digits in total, but 5 is being used twice, so we only have 7 options for the third number in the code. There are 3 possible cases for the distribution of the fives ( 5 _ 5 , 5 5 _ , and _ 5 5), so 7 x 3 is 21.
There are 8 x 8 x 8 total possible passcodes (which = 512)
So 21/512 = 0.041 = 4.1%
However, the answer is apparently 8.2% (twice as much), so I'm not sure where I went wrong...?
Any explanation would be greatly appreciated.
 
Physics news on Phys.org
I think I agree with your answer.
MeesaWorldWide said:
A passcode having 2 fives implies that order does not matter (5 7 5 is the same passcode as it would be if we switched the 2 fives). ...
Good. So you have your 3 possibilities for placing the 5's instead of 6. I think a better way to look at it is that there are 3 places to place the non-5 digit.
MeesaWorldWide said:
There are 8 x 8 x 8 total possible passcodes (which = 512)
I agree. I suspect that the book answer use the fact that the order of the 5's doesn't matter here, but I don't think it applies (575 is only counted as one passcode here, not two). This If you divide 512 by 2, you get their answer. I will have to think about it more.
 
MeesaWorldWide said:
However, the answer is apparently 8.2% (twice as much)
That is not the answer to the question you wrote: your answer is correct.

Can you think of another method to verify your answer?
The probability of choosing five is 1/8
 
  • Like
Likes FactChecker
I also am convinced your answer is correct.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top