Two-part problem; calculating possibilities of lock

  • Thread starter davidbdix
  • Start date
  • Tags
    Lock
In summary: A. He could potentially try to reset the lock (assuming it's not too complicated). If he couldn't do it, then presumably he would try the other combinations until he found one that worked. He would know that the order of the buttons didn't matter, since the master button is the only one that can be pressed. He would get 286 combinations from that. B. Assuming the thief knows that only one master button can be pressed, he could try to reset the lock by trying different combinations of the secondary buttons. He would get 858 combinations from that. C.
  • #1
davidbdix
16
0
I am a woodworker, and am designing a two part magnetic/spring lock for my blanket chest. The first part has 3 master buttons (primary buttons A, B, C), and the second part has 11 secondary buttons (1, 2, 3, ...11). What you do first is choose 1 of the 3 master buttons that opens the first part of the lock. Then out of the secondary buttons, you choose 3 out of the 11 that will open the rest of the lock (and can be pressed in any particular order). So, not only do you have to choose the correct master button, but 3 secondary buttons as well. The master control that you choose stays depressed because of a lever, but each secondary button is spring-loaded so it pushes back out when you release it. The interior of the lock (the guts) is made up of springs, neodymium magnets, steel rods, and blocks of wood (Which really should not matter because it has nothing to do with the math problem). So essentially you are choose 1 out of 3 and 3 out of 11 at the same time. So my question is how do i figure out how many differentpossibilities are there in this lock? for example, A, 1, 2, 3 or C, 4, 9, 11.

Is there an equation for this problem, or do I have to sit down and figure it out the long way?
 
Physics news on Phys.org
  • #2
Howdy.

First of all, you choose the master button independently of the choice of the secondary buttons. So if N is the number of ways to choose the secondary buttons, then the total should be 3N.

Now N is the number of ways to pick out 3 of the 11 buttons (and order doesn't matter). There is a specific formula for that exact thing. It is called a binomial coefficient and also goes by the name "11 choose 3" or under the subject heading of "combinations" in a basic probability book. The formula is
(11!)/(3!)(8!) = 11*10*9/(3*2*1) = 165

So the answer to your question is 3*165=495 (unless I multiplied wrong).

See the wikipedia entry if you are interested in information on that formula.
http://en.wikipedia.org/wiki/Binomial_coefficient
 
  • #3
Vargo said:
So the answer to your question is 3*165=495 (unless I multiplied wrong).



Thank you very much! That is not enough combination possibilities for me, so I need to raise the stakes a little bit.

What if the user pushing the buttons didn't know they only had to push 1 master 3 secondary. In fact they don't know how many buttons had to be pushed in at all? The only hint would be that only 1 master button could be pushed in at a time.
 
  • #4
Hello again,

First of all, I realized I might have misinterpreted your original description. There are two different scenarios.

(This is the one I answered)
Step 1. You pick 1 master button.
Step 2. You pick 3 secondary buttons, but you can't pick the same one twice (i.e. 1,3,2 is allowed and is the same as 1,2,3, but 1,1,1 is not allowed.

OR
Step 1. You pick 1 master button.
Step 2. You pick 3 secondary buttons and you can pick the same one repeatedly (1,1,2 is allowed and is the same as 2,1,1 is the same as 1,2,1)

I can't tell which of the two possibilities is correct from your original description. From the user's perspective (not knowing the inner workings), the springs in the secondary buttons would make it seem plausible that the correct combination could involve hitting the same button twice. In that case, you do get more possibilities. The number of ways to press the secondary buttons would be (11+3-1) choose 3 or 13 choose 3 which is 286. Multiplying by 3 to account for the master button you get 858 total choices.


Now for your next scenario, maybe you could clarify the question a bit. So, I guess a thief gets ahold of the box. You want to know his chances of opening the lock? Or how long it would take him by brute force? Let's say he can figure out that just one master button can be pressed. As far as the thief would know, there are endless possibilities just from looking at the dials.

A. Could he figure out how to reset the lock in case he wants to start over?
B. Presumably, he would figure out that only one master buttons could be pressed. Could he figure out that the master button must be pressed first?
C. Can you press the same secondary button twice? (I am assuming that you can at least press it twice, but could the thief tell whether repeated presses have any effect?)
D. The thief would probably assume that the order of the secondary buttons matters.
 

FAQ: Two-part problem; calculating possibilities of lock

What is a two-part problem?

A two-part problem is a type of problem that requires two separate pieces of information to be solved. It usually involves two different components or conditions that need to be considered in order to find the solution.

How do I calculate the possibilities of a lock?

To calculate the possibilities of a lock, you need to know the number of digits or symbols in the lock code and the number of digits/symbols that can be used in each position. Then, use the formula nr, where n is the number of options for each digit/symbol and r is the number of digits/symbols in the code. This will give you the total number of possible combinations.

What is the significance of calculating the possibilities of a lock?

Calculating the possibilities of a lock is important because it helps determine the strength and security of the lock. The higher the number of possibilities, the more difficult it is to guess or crack the code, making the lock more secure.

Can the possibilities of a lock be calculated for any type of lock?

Yes, the possibilities of a lock can be calculated for any type of lock as long as the number of digits/symbols and the number of options for each digit/symbol are known.

What other factors should be considered when calculating the possibilities of a lock?

Besides the number of digits/symbols and options for each position, other factors that may affect the possibilities of a lock include the order in which the digits/symbols can be used, any restrictions on repeating digits/symbols, and any pattern or sequence that may be used in the code.

Back
Top