Counting Theory and Addition Rule Confuses Me

Click For Summary
SUMMARY

This discussion focuses on combinatorial problems involving 16-bit strings and poker hand calculations. The number of 16-bit strings containing exactly nine 1's is calculated using the binomial coefficient {{16}\choose {9}}, resulting in 11,440 valid strings. For strings containing at least fourteen 1's, the correct approach involves summing the combinations for 14, 15, and 16 ones, yielding a total of 137. Additionally, the discussion clarifies the correct method for determining two pairs in poker hands, emphasizing the importance of selecting denominations first to avoid double counting.

PREREQUISITES
  • Understanding of binomial coefficients and combinatorial mathematics
  • Familiarity with the concept of 16-bit strings
  • Basic knowledge of poker hand rankings and combinations
  • Ability to perform calculations involving combinations, such as {{n}\choose {k}}
NEXT STEPS
  • Study the properties and applications of binomial coefficients in combinatorics
  • Learn about the principles of combinatorial counting in computer science
  • Explore advanced poker probability calculations and strategies
  • Investigate the use of combinatorial methods in algorithm design
USEFUL FOR

Mathematicians, computer scientists, poker enthusiasts, and anyone interested in combinatorial problem-solving and probability theory.

sjaguar13
Messages
49
Reaction score
0
How many 16-bit strings contain exactly nine 1's? I said the total number is 2 to the 16th power, so to get half with 1's would be 2 to the 8th, or 256.

How many 16-bit strings contain at least fourteen 1's? I have no idea.

When determining a how to get 2 pair in a poker hand, why is getting the denomination of the first pair, then the 2 cards, then the demonitation of the second pair, then the 2 cards wrong? I know you have to get the two denominations first, 13 choose 2 instead of 13 choose 1 and then 12 choose 1, but I don't know why.
 
Physics news on Phys.org
sjaguar13 said:
How many 16-bit strings contain exactly nine 1's? I said the total number is 2 to the 16th power, so to get half with 1's would be 2 to the 8th, or 256.
I have no idea what you did here. The number of 16-bit strings with nine 1's is equal to the number of ways you can choose 9 spots in 16 (to fill them with ones, leaving the rest with zeroes). That number is:

[tex]{{16}\choose {9}} = 11440[/tex]
How many 16-bit strings contain at least fourteen 1's? I have no idea.
[itex]{{16}\choose {14}} + {{16}\choose {15}} + {{16}\choose {16}} = 137[/itex]*.
When determining a how to get 2 pair in a poker hand, why is getting the denomination of the first pair, then the 2 cards, then the demonitation of the second pair, then the 2 cards wrong? I know you have to get the two denominations first, 13 choose 2 instead of 13 choose 1 and then 12 choose 1, but I don't know why.
Notice that:

[tex]{{13}\choose {2}} = \frac{1}{2} \times {{13}\choose {1}} {{12}\choose {1}}[/tex]

That is, the stuff on the left is 1/2 the stuff on the right. Now why is the stuff on the left right? Because it correctly treats choosing 5 and J as denominations the same as choosing J and 5, whereas your approach treats them as two different cases, so you'd have to divide by 2 (which is already done if you do it the way you know you're supposed to).

*EDIT: Missed the part that said, "at least"
 
Last edited:
I don't think [itex]{{16}\choose {14}}[/itex] is the correct answer to the second problem, seeing as he's asking for the number of 16-bit strings with /at least/ 14 ones. That means you have to count the number of strings with 15 ones and 16 ones as well. So the answer should be:

[tex]{{16}\choose {14}} + {{16}\choose {15}} + {{16}\choose {16}}.[/tex]
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K