How to calculate possible combinations of sets

In summary, the woodworker is designing a two part magnetic/spring lock for a blanket chest. The first part has 3 master buttons (A, B, C) and the second part has 11 secondary buttons (1-11). The user must choose one of the master buttons and an unknown amount of secondary buttons to open the lock. The interior of the lock is made up of springs, magnets, steel rods, and blocks of wood. There are an infinite amount of possible sequences of secondary buttons if the length is arbitrary. If buttons cannot be pressed multiple times and the order does not matter, there are 12,288 possible combinations. If all secondary buttons must be pressed once and the order matters, there are 1,
  • #1
davidbdix
16
0
Posts: 10


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 have to choose button(s), but the user does NOT know how many buttons need to be pressed to open the rest of the lock. The user also doesn't know if the buttons have to be pressed in a certain order OR if they can be pressed again. So, not only do you have to choose the correct master button, but the 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).

To sum up: You are choosing A, B, or C, and then some unknown amount of buttons #1-11. How many combination possibilities are there? Can this problem even be calculated?
 
Physics news on Phys.org
  • #2
There is an infinite amount if possible sequences of secondary buttons - if you allow sequences of arbitrary length. Just consider the options
1,1,1,... (n times), 2
For every n, this is a unique sequence to be pressed.

If buttons cannot be pressed multiple times, and the order does not matter, every button has the option "has to be pressed" or "must not be pressed" (I assume that pressing wrong buttons will not open the chest). This gives 212 possible combinations of the secondary buttons, and 3 choices for the master button, for a total of 3*212=12 288 options.

If all secondary buttons have to be pressed once, and the order does matter, you have 12!=479 001 600 possible orders. *3 for the master button -> 1 437 004 800
If those sequences can be shorter, you get even more combinations (but not so many). If they have to be shorter, the number reduces a lot.

Something else?
 
  • #3
Thank you for the reply. I expected it would be an infinite answer. I've redesigned the lock. Same scenerio as before. 3 primary buttons, 11 secondary buttons. This time, the user is aware that each secondary button can only be pressed once, and order still does not matter. Choose 1 primary button, it stays depressed. You don't know how many secondary buttons are to be pressed though. It could be 1, maybe 6, maybe 10. The real answer would be four of the eleven, but that information will not be given to 3 the user. What is the equation to solve it?

On the first part of your answer, how did you figure 212? But that is the correct scenario.

Oh, I just looked up and saw the second half of your answer. I didn't think the answer could be 12! because there are 3 different (what I call) sets. 11 buttons when you have A depressed, 11 buttons when B depressed, and 11 buttons when C depressed.
 
Last edited:
  • #4
By the way, pressing the wrong buttons reinforces the lock. Each wrong button has a lock bar on it, sliding into the lock, making it stronger than before. :)
 
  • #5
If the order doesn't matter, the user can choose any subset of the 11 buttons and press each one of those. So he has one decision("press it" or "don't press it") to make for each of 11 buttons, resulting in 211 = 2048 possiblities.

If he knows that he must press at least one button, and not all eleven, you must subtract those possibilities from that number, and you end up with 2046 possibilities, one correct one, and 2045 false ones.

Multiply 2046 by 3 (for the first button), and you have 6138 possibilities for the whole lock.

Does that help?
 
  • #6
great! thank you
 

1. How do I calculate the total number of combinations between two sets?

To calculate the total number of combinations between two sets, you can use the formula nCr = n! / (r!(n-r)!), where n is the total number of items in the first set and r is the number of items in the second set. This formula is known as the combination formula, and it is used to determine the number of ways you can choose r items from a set of n items without replacement.

2. How do I calculate combinations with repetition?

To calculate combinations with repetition, you can use the formula nCr = (n+r-1)! / (r!(n-1)!), where n is the number of items in the set and r is the number of items being chosen. This formula is used when you are allowed to choose the same item more than once. For example, if you have 3 letters (a, b, c) and you want to choose 2 of them with repetition, the formula would be (3+2-1)! / (2!(3-1)!) = (4! / 2!2!) = 6 combinations (aa, ab, ac, bb, bc, cc).

3. How do I calculate the number of combinations when order matters?

To calculate the number of combinations when order matters, you can use the formula nPr = n! / (n-r)!, where n is the total number of items in the set and r is the number of items being chosen. This formula is known as the permutation formula, and it is used when the order of the items being chosen is important. For example, if you have 5 letters (a, b, c, d, e) and you want to choose 3 of them in a specific order, the formula would be 5P3 = (5! / (5-3)!) = 5!/2! = 60 combinations (abc, abd, abe, acb, acd, ace, adb, adc, ade, aeb, aec, aed, bac, bad, bae, bca, bcd, bce, bda, bdc, bde, bea, bec, bed, cab, cad, cae, cba, cbd, cbe, cda, cdb, cde, cea, ceb, ced, dab, dac, dae, dba, dbc, dbe, dca, dcb, dce, dea, deb, dec, eab, eac, ead, eba, ebc, ebd, eca, ecb, ecd, eda, edb, edc).

4. Can I use combinations to determine the probability of an event?

Yes, you can use combinations to determine the probability of an event. To do so, you would use the formula P = nCr / N, where P is the probability, n is the number of successful outcomes, and N is the total number of possible outcomes. For example, if you have a bag with 10 marbles (5 red, 3 blue, 2 green) and you want to calculate the probability of choosing a red marble, the formula would be P = 5C1 / 10C1 = 5/10 = 0.5 or 50% chance of choosing a red marble.

5. Are there any online tools or calculators available to help me calculate combinations?

Yes, there are several online tools and calculators available to help you calculate combinations. Some popular options include Wolfram Alpha, Combinations Calculator, and Math Is Fun's Combination Calculator. These tools allow you to input the necessary values and will provide you with the calculated result.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
2K
Replies
3
Views
2K
Replies
4
Views
2K
  • Electrical Engineering
Replies
2
Views
486
  • Set Theory, Logic, Probability, Statistics
Replies
18
Views
2K
Replies
23
Views
3K
Replies
4
Views
664
  • Mechanical Engineering
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
12
Views
3K
Back
Top