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

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
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?

[tex] ^4 C_1 \times ^8 C_3 \times 4!=5376[/tex]

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.