How many different playlists can you make if you allow repeated songs?

1.5k Views Asked by At

The question is:

You own 6 songs by Adele, 4 by Katy Perry, and 5 by Lady Gaga. How many different playlists can you make that consist of 4 Adele songs, 3 Perry songs, and 2 Gaga songs, if you do allow repeated songs?

One method I tried is 4^6 * 3^4 * 2^5.

I also tried C(6,4) * C(4,3) * C(5*2).

Both of these are wrong and I am not sure how to calculate this correctly.

2

There are 2 best solutions below

0
On BEST ANSWER

If you look only at the order of the artists being played, then there are $$\frac{9!}{4!3!2!} = \frac{362880}{24*6*2} = 1260$$ possible orderings. This is because there are $9$ songs, which would have $9!$ orderings if all songs were different, but for now we treat the the songs by each artist as the same so we divide out the number of ways we could order the $4$ Adele songs, and similarly divide by $3!$ for Perry and $2!$ for Gaga.

Another way to see the above would be to first choose which $4$ of the $9$ slots will be Adele songs, which gives $\binom{9}{4}$ choices. Of the remaining $5$ slots, choose which $3$ of them will be Katy Perry songs. This gives $\binom{5}{3}$ choices. The remaining 2 slots will then be Gaga songs. Put together this gives $$\binom{9}{4}\binom{5}{3} = \frac{9!}{4!5!}\frac{5!}{3!2!} = \frac{9!}{4!3!2!}$$ as above.

Now that we know which artist is in which slot, we have to choose the songs to play. Each song that comes on by a particular artist can be any one of the songs by that artist. So for each Adele song there are $6$ possibilities, and there are $6*6*6*6=6^4$ selections of four Adele songs all together. Similarly $4^3$ for Katy Perry songs, and $5^2$ for Lady Gaga.

Putting this together, you get $\binom{9}{4}\binom{5}{3}*6^4*4^3*5^2 = 2612736000$.

0
On

For Adele there are $\binom{6}{4} = 15$ four song combinations where all songs are different plus $\binom{6}{3}\cdot 3 = 60$ where $2$ are the same, plus $\binom{6}{2} = 15$ where $2$ pairs are the same, plus $\binom{6}{2}\cdot 2 = 30$ where $3$ are the same and $6$ where all $4$ are the same. This makes a sequence of $15+60+15+30+6$.

Repeating this for Perry is a sequence of $4+12+4$ and for Gaga a sequence of $10+5$

This gives a total of $126\cdot 20\cdot 15 = 37800$ unique nine-song playlists which can't all be permutated in the same way if order matters. This would be:

$600\cdot 9! + 4500\cdot \frac{9!}{2!} + 1800\cdot \frac{9!}{3!} + 240\cdot \frac{9!}{4!} + 9900\cdot \frac{9!}{2!2!} + 6900\cdot \frac{9!}{2!3!} + 840\cdot \frac{9!}{2!4!} + 5700\cdot \frac{9!}{2!2!2!} + 3600\cdot \frac{9!}{2!2!3!} + 900\cdot \frac{9!}{2!2!2!2!} + 300\cdot \frac{9!}{2!2!2!3!} + 600\cdot \frac{9!}{2!3!3!} + 360\cdot \frac{9!}{2!2!4!} + 120\cdot \frac{9!}{2!3!4!} + 1200\cdot \frac{9!}{3!3!} + 240\cdot \frac{9!}{3!4!} = 2612736000$