How to Solve a Faded Safe Code: Math Counting Problem Explained"

AI Thread Summary
To open the safe, a code consisting of four numbers must be pressed in the correct order, leading to 24 possible combinations with the original faded numbers. The owner wants to change the code to include exactly one of the faded numbers and three from the remaining buttons, which total 10 buttons (4 faded and 6 non-faded). The correct calculation involves selecting one faded number and three from the six non-faded, then arranging the four selected numbers, resulting in 1,440 possible combinations. Initial confusion arose from miscounting the non-faded buttons, which are actually six, not eight. The discussion clarifies the correct approach and confirms the solution is valid.
danago
Gold Member
Messages
1,118
Reaction score
4
To open a safe, 4 number buttons must be pressed, in the correct order. Over time, the 4 numbers buttons of the code fade. A thief notices the faded buttons, so knows that the code consists of those 4 numbers.

How many possible codes are there?


4 numbers can be arranged in 4! different ways, so there are 24 different possible combinations.

The safe owner decides that he wants to change the code. How many possible codes are possible if each code can contain only 1 of the 4 faded numbers?

<br /> ^4 C_1 \times ^8 C_3 \times 4!=5376<br />

Since there are two groups, faded and non faded. One is selected from the faded numbers, and 3 from the remaining 8 non faded. i then multiplied by 4! since there are 4! ways of arranging the 4 numbers.

The answer guide says this is wrong though. Is anybody able to explain where i went wrong in my reasoning?

Thanks,
Dan.
 
Physics news on Phys.org
At first glance I would say that it has to do with the fact that you think 8 are non-faded. If there is a button for each digit then there will 10 buttons, 4 of which have faded. Thus there will be 6 non-faded buttons.
 
The buttons arent 0-9, theyre 1-12. There was a diagram with the question that showed this.
 
No repeated numbers allowed, right? And "can contain only 1 of the 4" means "contains exactly one of the 4"? If those are both correct then I can't see anything wrong with your solution.
 
Yep that's right. No repeats allowed, and EXACTLY 1 of the 4.

Well thanks for clearing that up. Glad i did it correctly then.
 
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