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 tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top