(probably easy) Combinatorics problem

  • Thread starter Thread starter Nikitin
  • Start date Start date
  • Tags Tags
    Combinatorics
Nikitin
Messages
734
Reaction score
27

Homework Statement


n dices are thrown. In how many ways can you get an m (<=n) amount of fives?

The Attempt at a Solution



Well, I thought since you can organize the 5s in m! ways, and for each such permutation you can organize the remaining dice rolls in ##5^{n-m}## ways, the solution must be ##m! \cdot 5^{n-m}##, or alternatively ##\frac{m! \cdot 5^{n-m}}{n!}## if the order is irrelevant.

EDIT: It seems I am completely wrong, as I get decimals for answers when I try out my formulas. Can somebody please help me? is the answer perhaps simply ##1^m 5^{n-m}##?
 
Last edited:
Physics news on Phys.org
Nikitin said:

Homework Statement


n dices are thrown. In how many ways can you get an m (<=n) amount of fives?

The Attempt at a Solution



Well, I thought since you can organize the 5s in m! ways, and for each such permutation you can organize the remaining dice rolls in ##5^{n-m}## ways, the solution must be ##m! \cdot 5^{n-m}##, or alternatively ##\frac{m! \cdot 5^{n-m}}{n!}## if the order is irrelevant.

EDIT: It seems I am completely wrong, as I get decimals for answers when I try out my formulas. Can somebody please help me? is the answer perhaps simply ##1^m 5^{n-m}##?

m out of the n dice must be 5's. So how many ways can you choose m things out of n things? There is no 'ordering' among the 5's. They are all identical. Then you count the number of outcomes for the remaining n-m dice that aren't 5's. I would do it assuming order matters. Otherwise, it's a whole different kind of problem and you don't get the answer by just dividing by n!.
 
  • Like
Likes 1 person
m out of the n dice must be 5's. So how many ways can you choose m things out of n things?

(n choose m) ways.

Is the answer perhaps ##\frac{n!}{(n-m)! \cdot m!}##?

And how can you solve this if order doesn't matter? If the order didn't matter, wouldn't there only be one unsorted permutation (i.e. what kind of numbers (1 to 6) and how many)?
 
Nikitin said:
(n choose m) ways.

Is the answer perhaps ##\frac{n!}{(n-m)! \cdot m!}##?

And how can you solve this if order doesn't matter? If the order didn't matter, wouldn't there only be one unsorted permutation (i.e. what kind of numbers (1 to 6) and how many)?

Yes, (n choose m) is the ways to select the 5's. You do have to multiply by possible outcomes from the other dice. And, yes, if you don't count order it's just the number ways to split the n-m dice that are not 5 into different sized groups with values in (1,2,3,4,6).
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top