Formula for a game of combinations of numbers

In summary, the formula for a game of combinations of numbers is nCr = n! / r!(n-r)!, and it can be used to calculate the number of combinations in any game that involves selecting a certain number of items from a larger set. Its purpose is to help players make strategic decisions and improve their chances of winning, but it may have limitations in games with different rules or variations.
  • #1
cubanopro
3
0

Homework Statement



First of all, let's imagine that there are 3 types of balls in a bag. Balls a, b and c. There are infinite balls of each sort and we have to pick an x number of times. Not long ago I asked someone to help me find a formula which states all the possibles combinations of numbers if we have tree variables (a,b,c) and an x number of trials. For example, if we have a, b and c and we do 5 picks, the number of possibles combinations would be 3 to the power of 5. The answer is 243. But now here is where the game gets harder.

Depending on what comes out of the bag we obtain different results in the game. For example, we have to pick 11 balls...So the possibles combinations are 177147. Out of those ones, we know that certain combinations make us lose the game, certain make us win and the rest are neutral. Here are the rules to follow:

The only way to lose is to have drawn a maximum of only two kinds of balls for a consecutive 11 picks. For example, aaaaaaaaaaa (we lose), acacacacaca (we lose), bbbbbbbbbbb (we lose)...you get the point.

In order to win:
First, we have to get the first 7 picks to be a combination of a MAXIMUM of two letters (except for a and b togeter). For example, aaaaaaa, bbbbbbb, aaaccac, bbbcbcc, and so on.

Second, once we have the first 7 balls as we stated earlier, we need to get at least once the missing letter before getting to 12. So for example, if the first seven balls are acaccca then in the last four picks left WE NEED to pick a B ball and vice-versa. Notice that in the conditions applied when loosing, there is never a combinations of the three letters.

In order to have a neutral result:
We need to have in the first 7 picks at least one A ball and B ball togeter (not in the last four picks...only in the first seven). For example, cbcacaababc makes it neutral since there is a at least one B ball and one A ball in the first 7 picks.

I was wondering if there was a way of calculating the winnings odds. At this moment, I have just been able to find the number of losing combinations which is (correct me if I'm wrong) (2to the power of 11) times 2.

The answer is 4096 losing combinations out of a total of 177147. Now we still need to find a way of calculating the possibles winning combinations and the rest which are the neutral ones. I found it very hard to calculate it by myself alone...maybe you guys could help me.

Thanks in advance!
Rafael


Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
  • #2
I think the best way to solve this would be to solve the number of winning combinations first. The number of winning combinations can be calculated by taking the total number of combinations (177147) and subtracting the number of losing combinations (4096) and the number of neutral combinations. The number of neutral combinations can be calculated by taking the total number of combinations (177147) and subtracting the number of losing combinations (4096) and the number of winning combinations. So the answer is: Number of winning combinations = 177147 - 4096 - Number of neutral combinations Number of neutral combinations = 177147 - 4096 - Number of winning combinations Hope this helps!
 

What is the formula for a game of combinations of numbers?

The formula for a game of combinations of numbers is nCr = n! / r!(n-r)!, where n is the total number of items and r is the number of items selected.

How do you calculate the number of combinations in a game?

To calculate the number of combinations in a game, use the formula nCr = n! / r!(n-r)!, where n is the total number of items and r is the number of items selected.

Can the formula for a game of combinations of numbers be applied to any game?

Yes, the formula for a game of combinations of numbers can be applied to any game that involves selecting a certain number of items from a larger set of items.

What is the purpose of using the formula for a game of combinations of numbers?

The purpose of using the formula for a game of combinations of numbers is to determine the total number of possible combinations in a game, which can help players make strategic decisions and improve their chances of winning.

Are there any limitations to using the formula for a game of combinations of numbers?

Yes, the formula for a game of combinations of numbers assumes that all items are distinct and that the order of selection does not matter. It may not be applicable to games with different rules or variations.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
930
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
2K
  • Programming and Computer Science
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
15
Views
1K
Back
Top