Easy way to do permutations/combinations..but multi times?

This topic has expert replies
Master | Next Rank: 500 Posts
Posts: 202
Joined: Tue Sep 08, 2009 11:34 pm
Thanked: 15 times
GMAT Score:760
First check out this excellent post: https://www.beatthegmat.com/a/2009/10/12 ... asy-method. Simplest explanation of permutations and combinations I've ever seen.

Now, an important caveat he mentions is that it doesn't apply to situations where you can use the item/person more than once.

How would you modify the methods in this case? Suppose you had five colors of stones, and you want to set three stones in a ring. Assuming you have unlimited of each color, you could determine this by simply not subtracting one for each.

ONE OF EACH COLOR
5 x 4 x 3 = 60

UNLIMITED OF EACH COLOR
5 x 5 x 5 = 125 ways to set three stones in the ring, where each way is unique in the amount and position of each color.

However, what if the question was how many different combinations of color are there?

ONE OF EACH COLOR
[5 x 4 x 3] / [1 x 2 x 3] = 60 / 6 = 10

UNLIMITED OF EACH COLOR
[5 x 5 x 5] / [1 x 2 x 3] = 125 / 6 = Not integer?

I assume you can't take 125 / 6, because it's not an integer, so there needs to be a way to modify the combination approach. Any ideas?

Update: Maybe there's not a way to modify? I listed out all combinations, and I got 35.

C1 = Color 1, C2 = Color 2, etc.

All C1
All C2
All C3
All C4
All C5

Total = 5

2 C1, other color (4)
2 C2, other color (4)
...

Total = 20

C1, C2, C3
C1, C2, C4
C1, C2, C5
C1, C3, C4
C1, C3, C5
C1, C4, C5
C2, C3, C4
C2, C3, C5
C2, C4, C5
C3, C4, C5

Total = 10

Total combinations = 35

35 is not a factor of 125, so doesn't appear to be an easy way to calculate combinations with replacement.
Source: — Problem Solving |

GMAT/MBA Expert

User avatar
GMAT Instructor
Posts: 2623
Joined: Mon Jun 02, 2008 3:17 am
Location: Montreal
Thanked: 1090 times
Followed by:355 members
GMAT Score:780

by Ian Stewart » Wed Oct 14, 2009 7:53 am
There is a formula for counting how many combinations you can make when repetition is allowed; if you are choosing k things from n, where order is irrelevant, and you are allowed repetition, you can make (n+k-1)!/[ (k!) (n-1)!] selections. So if you have five colors of stones, and you want to know how many ways we can choose three stones for a ring, if we don't care about order and we can use a color more than once, we have n = 5, k = 3, and thus (5+3-1)!/[3! * 4!] = 7!/(3!)(4!) = 35 possible selections.

You might want to know why this works. This is far beyond the scope of the GMAT, so for interest only! If we have, say, the five colors (I'll just use letters) R, G, B, Y, W, then if we make the selection of two Rs and one W, we could write this as a word:

RxxGBYWx

and if we select one G, one B and one Y, we could write the word:

RGxBxYxW

and so on. That is, we insert one 'x' after each letter for each time we wish to select that letter. Since the word will never begin with an x, there will be 5 locations where we can place the first x, 6 where we can place the second (since it can be immediately to the left or right of the first x), and 7 where we can place the third. Since the order of the 3 x's is irrelevant, we then must divide by 3!, so the x's can be placed in 7*6*5/3! = 35 ways.

There's a problem which, on the surface, looks quite different from the above, but actually boils down to the same fundamental principle - I posted a solution (scroll down) using a similar method:

https://www.beatthegmat.com/combination-t41362.html

That said, I've *never* seen a real GMAT question where you might be able to use this formula, and you can always break any similar problem into cases - for the ring problem, we can have three stones of the same color, two of the same color and one of a different color, or three of different colors. Adding the number of ways to make each type of selection will give the answer, as you found above.
For online GMAT math tutoring, or to buy my higher-level Quant books and problem sets, contact me at ianstewartgmat at gmail.com

ianstewartgmat.com

Master | Next Rank: 500 Posts
Posts: 202
Joined: Tue Sep 08, 2009 11:34 pm
Thanked: 15 times
GMAT Score:760

by cbenk121 » Wed Oct 14, 2009 12:00 pm
Perfect, thank you! Good to know both the formula, and the probability that it will be on the test (infinitesimal) :).