You have 9 balls - 3 red, 3 green and 3 blue - in a random order.
How many ways can you rearrange them so that no ball is replaced with a ball of the same color?
Assume that similarly colored balls are indistinguishable.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Maybe I'm misunderstanding this, but didn't you state in the problem that no ball can be replaced by a ball of a different color? So, the first arrangement defines the three spots for each color that the balls in the rearranged order can lie in, and balls from other colors can't go there.
Log in to reply
Sorry, I goofed. The original wording had a mistake. I've corrected it.
"way" needs to be defined better. For example, are two ways the same if I simply reorder which red ball gets mapped over? IE Is R 1 R 2 R 3 B 1 B 2 B 3 G 1 G 2 G 3 → G 1 G 2 G 3 R 1 R 2 R 3 B 1 B 2 B 3 and R 1 R 2 R 3 B 1 B 2 B 3 G 1 G 2 G 3 → G 1 G 2 G 3 R 2 R 1 R 3 B 1 B 2 B 3 the same way?
Log in to reply
Good point... Hows my update?
Log in to reply
Much better.
The "18 ways that blue can replace two of one color and one of another. And for each of those ways there are 3 ways to place the remaining colors" could be explained in a bit more detail.
Log in to reply
@Calvin Lin – True. Lemme think of a better way to explain....
Log in to reply
@Geoff Pilling – FYI The generalization of the derangements formula to allowing for indistinguishable objects is pretty disgusting. It isn't really illuminating in this case because many of the terms are 0, and the only non-zero terms are these 2 cases that you found.
Log in to reply
@Calvin Lin – Interesting... Lemme see if I can come up with a non-trivial derangement problem...
Thought about suggesting a follow-up where we add 3 yellow balls into the mix. But no .... that becomes an unholy mess. :O
Problem Loading...
Note Loading...
Set Loading...
There are 2 ways that one color can be completely replaced by another color.
After that there are 18 ways that blue can replace two of one color and one of another. And for each of those ways there are 3 ways to place the remaining colors.
2 + 3 * 18 = 56