Combinations with Irregular Repetition

In summary, the conversation is about the question of how many unique decks can be built for the card game Magic: The Gathering, given that there are 1729 cards to choose from, 60 cards in each deck, and some cards can have any number of copies while others can only have up to four copies. The conversation also mentions the use of statistics in building a deck and the possibility of using generating functions to find a solution to the problem.
  • #1
Strymon
2
0
Hey folks, I believe this is the correct thread for this topic. I was debating between general mathematics and statistics. I believe it falls here.

So, I play the card game Magic: The Gathering, and one of the core tenants of the game is building a deck from a large variety of cards. The deck is then randomized (shuffled) and the actual game involves doing your best with the cards you've drawn, as well as knowing what you are likely to draw (reminiscent of poker.) Interestingly, in building a deck, knowledge of statistics is very useful as some cards you may want to see more than others.

One thing I've always been curious of, though, is how many possible decks can be created. It would seem like a simple combination problem, or even Combination with Repetition, except for a problem. Most cards you may have no more than four of in your deck, but there are five cards that you may have any number of in your deck.

=============================

So, here's the question:

A deck consists of 60 cards.
There are 1729 cards of which you may have 0 to 4 copies each in your deck.
There are 5 cards of which you may have any number of copies in your deck.

How many unique decks can be built?

=============================

More than the answer (though I'd be excited to see it,) I'd like to know how to frame an equation that would handle a situation like this. Any thoughts are welcome!

Thanks!
 
Last edited:
Physics news on Phys.org
  • #2
If the problem is too complex to find a direct formula, split it in sub-problems:

Assume N of those 60 cards are used which cannot appear more than 4 times, and M different cards of that type are used (##M\geq \frac{N}{4}##).
This gives well-known problems for the number of combinations for those N cards and the 60-N other cards. I am too lazy to look up the formulas.
Afterwards, you can sum over all N and M.
 
  • #3
Mfb, thanks for your reply!

I actually was not aware there were formulas for combination with limited repetition like this. I had searched around online briefly but wasn't able to find anything that would quite work, even as a partial solution. Are there some particular keywords I could search under to find them?
 
  • #4
One way is using generating functions, so the solution is the coefficient of x^60 in (1+x+x^2+x^3+x^4)^1729/(1-x)^5
 
  • #5


I find this topic very interesting and relevant to the field of statistics and probability. In this case, we are dealing with combinations with irregular repetition, which is a common problem in many real-world scenarios such as card games, stock portfolios, and even genetic combinations.

To answer the question, we first need to understand the concept of combinations with repetition. In this case, we have 1729 cards, and we can choose 0 to 4 copies of each, which gives us a total of 5 options for each card. This means that the number of possible combinations for these cards is 5^1729.

However, we also have 5 cards that can have any number of copies in our deck. This means that for each of these 5 cards, we have an infinite number of options, which makes the calculation more complex.

To solve this problem, we can use the concept of generating functions, which is a powerful tool in combinatorics. A generating function is a power series that represents a sequence of numbers, in this case, the number of possible combinations for each card. By multiplying these generating functions together, we can get the total number of possible combinations for the entire deck.

Without going into too much detail, the equation for this problem would be:

(1+x+x^2+x^3+x^4)^1724 * (1+x+x^2+x^3+x^4+x^5+x^6+...)^5

Where the first part represents the 1724 cards with 0 to 4 copies each, and the second part represents the 5 cards with any number of copies. By expanding this equation and simplifying it, we can get the total number of unique decks that can be built.

In conclusion, the answer to the question would be a very large number, and it would be difficult to calculate it without using generating functions. This problem highlights the importance of understanding statistics and probability in various real-world scenarios, and how they can be applied to solve complex problems.
 

1. What are combinations with irregular repetition?

Combinations with irregular repetition refer to the number of ways in which a set of items can be selected, where the order of selection does not matter and items can be repeated an irregular number of times.

2. How are combinations with irregular repetition different from combinations with regular repetition?

The main difference is that in combinations with irregular repetition, the number of times an item can be repeated is not fixed, whereas in combinations with regular repetition, the number of repetitions for each item is predetermined.

3. What is the formula for calculating combinations with irregular repetition?

The formula for calculating combinations with irregular repetition is nCr = (n+r-1)! / r!(n-1)!, where n is the total number of items and r is the number of items to be selected.

4. Can you give an example of combinations with irregular repetition?

One example is selecting toppings for a pizza. You have a total of 8 toppings to choose from, and you want to select 3 toppings for your pizza. You can choose the same topping multiple times, for example, you can have 2 slices with pepperoni and 1 slice with mushrooms. This is an example of a combination with irregular repetition.

5. How are combinations with irregular repetition useful in real life?

Combinations with irregular repetition are useful in various fields such as finance, economics, and computer science. They can be used to calculate the number of different investment portfolios, the number of possible outcomes in a game of chance, and the number of unique combinations in a computer program.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
391
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
925
  • General Math
Replies
1
Views
728
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
1K
  • Sci-Fi Writing and World Building
Replies
9
Views
2K
  • Computing and Technology
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
11
Views
1K
Back
Top