Red, green and blue balls

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.


The answer is 56.

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.

1 solution

Geoff Pilling
Nov 9, 2018

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

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.

Henry U - 2 years, 7 months ago

Log in to reply

Sorry, I goofed. The original wording had a mistake. I've corrected it.

Geoff Pilling - 2 years, 7 months ago

"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 R_1R_2R_3B_1B_2B_3G_1G_2G_3 \rightarrow G_1G_2G_3R_1R_2R_3B_1B_2B_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 R_1R_2R_3B_1B_2B_3G_1G_2G_3 \rightarrow G_1G_2G_3R_{\color{#D61F06} 2}R_{\color{#D61F06} 1}R_3B_1B_2B_3 the same way?

Calvin Lin Staff - 2 years, 7 months ago

Log in to reply

Good point... Hows my update?

Geoff Pilling - 2 years, 7 months ago

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.

Calvin Lin Staff - 2 years, 7 months ago

Log in to reply

@Calvin Lin True. Lemme think of a better way to explain....

Geoff Pilling - 2 years, 7 months ago

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.

Calvin Lin Staff - 2 years, 7 months ago

Log in to reply

@Calvin Lin Interesting... Lemme see if I can come up with a non-trivial derangement problem...

Geoff Pilling - 2 years, 7 months ago

Thought about suggesting a follow-up where we add 3 yellow balls into the mix. But no .... that becomes an unholy mess. :O

Brian Charlesworth - 2 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...