How many ways can you arrange 5 identical balls into 4 boxes?

  • Thread starter jumbogala
  • Start date
  • Tags
    Balls
In summary, the total number of ways 5 identical balls can be arranged into 4 distinguishable boxes is 56. A general formula for this problem is (n + m - 1)! / (n!)(m - 1)!, where n is the number of indistinguishable balls and m is the number of distinguishable boxes.
  • #1
jumbogala
423
4

Homework Statement


Say you have 5 identical balls. You want to put them into 4 different boxes. What is the total number of ways the balls can be arranged?

For example, you could have all 5 balls in one box. You could have 3 balls in one box and 2 balls in another, etc.


Homework Equations





The Attempt at a Solution


Since the balls are identical, order doesn't matter and this is a combination. So I drew it out, and figured out the correct number of ways - basically by doing a tree diagram.

But what I'm actually trying to figure out is what the equation looks like. I want to generalize it so that it works for m boxes and n balls, so I thought I'd make up a more concrete example to help me.
 
Physics news on Phys.org
  • #2
In questions like these, it's good to consider one ball at a time:

Take one ball, how many possible options are there? Four, since there are four boxes in which it could be placed.

Take the second ball, how many possible options are there? Four again. So in total, for the two balls, I have 4 x 4 = 16 different combinations.

If you keep going, what do you end up with?
 
  • #3
That is, of course, for "distinguishable boxes". If the boxes were NOT distinguishable, that is if "3 balls in boxe A and 2 balls in box B" were counted as only one way, divide by 5!.
 
  • #4
Centrus said:
In questions like these, it's good to consider one ball at a time:

Take one ball, how many possible options are there? Four, since there are four boxes in which it could be placed.

Take the second ball, how many possible options are there? Four again. So in total, for the two balls, I have 4 x 4 = 16 different combinations.

If you keep going, what do you end up with?
The wrong answer -- your method would work for distinguishable balls (and distinguishable boxes). However, the following two sequence of choices are the same outcome in the problem:

  • 11234
  • 43211

In problems like these, once you think you have a way to model the actual problem with descriptions you can count, it's usually a good idea to actually check the two sets are bijective: every actual outcome corresponds to some description, every description corresponds to some outcome, and that the two correspondences are actually inverses.

For your method, if you thought about how to turn an outcome into a description, you probably would have noticed the problem.

But now that I've thought about it, it gives me an idea... (@ the opening poster) the answer is 56, right?

(... process the idea ... remove a redundant part ...)

Lay the five balls out in a row:
* * * * *​
Now, the first box begins on the left. Put a mark '|' in the space where the first box ends and the second box begins, and so forth. 3 marks in all.

Edit: Oh, hrm, it might have been even better to invert that: put the box edges in:
| | |​
and now add 5 '*' marks in the spaces where the balls go.
 
Last edited:
  • #5
Hurkyl said:
But now that I've thought about it, it gives me an idea... (@ the opening poster) the answer is 56, right?

(... process the idea ... remove a redundant part ...)

Lay the five balls out in a row:
* * * * *​
Now, the first box begins on the left. Put a mark '|' in the space where the first box ends and the second box begins, and so forth. 3 marks in all.

This is exactly the way as "combination with repetitions" is explained in books. :smile: And the result is indeed 56.


ehild
 
  • #6
For example, you could have all 5 balls in one box. You could have 3 balls in one box and 2 balls in another, etc.
I'm not sure from some of what the OP said that the boxes are even distinguishable? (jumbogala you need to clarify this).

So the answer may be 56, but then again it might be just 6.
 
  • #7
uart said:
I'm not sure from some of what the OP said that the boxes are even distinguishable? (jumbogala you need to clarify this).

So the answer may be 56, but then again it might be just 6.

I'm going with 6 based on the wording of the problem.
 
  • #8
Sorry everyone, the boxes are distinguishable.

I believe the result is 56 then.
 
  • #9
You are right. You can imagine that the boxes are ordered in a row, box 1 first, then box 2, and so on along with the balls, but the walls of the boxes can be placed at different positions, and the walls are indistinguishable, as Hurkyl explained in post 4. There has to be one wall at the front and one wall at the end, so you can set tree walls. You have then arrangements of 3 indistinguishable walls and 5 indistinguishable balls, these are permutations of 8 elements, from which 3 is one kind and 5 is an other kind.

ehild
 
  • #10
Thanks everyone! This makes a lot of sense. I understand now =)

A general formula would then be (n + m -1 )! / (n!)(m-1)!

Where n = number of indistinguishable balls, and m = number of distinguishable boxes.
 
  • #11
jumbogala said:
Thanks everyone! This makes a lot of sense. I understand now =)

A general formula would then be (n + m -1 )! / (n!)(m-1)!

Where n = number of indistinguishable balls, and m = number of distinguishable boxes.

Very good! You are :cool:! I needed very long time to understand these problems first, and after a couple of years, I have to think very hard to understand it again.

ehild
 
  • #12
I can come up with 96 distinct combinations!
 
  • #13
Scratch that ... make it 126 distinct combinations!

(That is, assuming the boxes can be individually identified)
 
Last edited:
  • #14
Pardon me, I incorrectly red "5 boxes!"
 

1. How many total arrangements are possible?

There are 35 total arrangements possible when arranging 5 identical balls into 4 boxes.

2. Is there a specific formula or method for calculating the number of arrangements?

Yes, the formula for calculating the number of arrangements for identical objects is nCr = (n+r-1)! / r!(n-1)!, where n is the number of objects and r is the number of boxes.

3. Are all arrangements equally likely?

No, not all arrangements are equally likely. The number of ways the balls can be arranged in each box can vary, resulting in some arrangements being more likely than others.

4. Can the balls be arranged in a way that all boxes have the same number of balls?

Yes, it is possible to arrange the 5 identical balls into 4 boxes in a way that each box has the same number of balls. This would result in 4 balls in each box.

5. How does the number of boxes affect the number of arrangements?

The number of boxes directly affects the number of arrangements. As the number of boxes increases, the number of possible arrangements also increases. For example, if there were 5 boxes instead of 4, there would be 70 total arrangements possible instead of 35.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
10
Views
988
  • Precalculus Mathematics Homework Help
Replies
7
Views
3K
  • Precalculus Mathematics Homework Help
Replies
9
Views
2K
  • Precalculus Mathematics Homework Help
Replies
16
Views
519
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
1K
Replies
27
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
3K
  • Precalculus Mathematics Homework Help
Replies
14
Views
2K
Back
Top