Two-part problem; calculating possibilities of lock

  • Context: Undergrad 
  • Thread starter Thread starter davidbdix
  • Start date Start date
  • Tags Tags
    Lock
Click For Summary

Discussion Overview

The discussion revolves around calculating the number of possible combinations for a two-part magnetic/spring lock designed by a woodworker. The lock involves selecting one master button from three options and three secondary buttons from eleven, with considerations for different scenarios regarding button selection and repetition.

Discussion Character

  • Mathematical reasoning
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant outlines the initial problem of selecting one master button and three secondary buttons, suggesting that the total combinations can be calculated as 3 times the number of ways to choose 3 from 11 secondary buttons.
  • Another participant provides the binomial coefficient formula to calculate the combinations of secondary buttons, arriving at a total of 495 combinations based on the assumption that each secondary button must be unique.
  • A later reply introduces a new scenario where the user does not know the exact number of buttons to press, suggesting that the possibility of pressing the same secondary button multiple times could increase the total combinations significantly.
  • Further clarification is sought regarding the rules of button pressing, including whether repeated presses of secondary buttons are allowed and how this affects the total number of combinations.
  • Questions are raised about the perspective of a potential thief attempting to unlock the mechanism, including considerations about the order of button presses and the ability to reset the lock.

Areas of Agreement / Disagreement

Participants express differing views on the rules governing the selection of secondary buttons, particularly regarding whether repetition is allowed. The discussion remains unresolved as to which scenario accurately reflects the intended design of the lock.

Contextual Notes

Assumptions about the mechanics of the lock and the user's knowledge of the button-pressing requirements are not fully clarified, leading to multiple interpretations of the problem.

davidbdix
Messages
16
Reaction score
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
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
 
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.
 
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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
Replies
8
Views
2K
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
10K
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K