In how many ways can 10 identical red balls, 5 identical green balls and 5 identical blue balls be arranged in a row, if there can't be two adjacent balls of the same color?
What I tried: The arrangement must be of the form:
red - another color - red - another color - ... etc.
or
another color - red - another color - red ... etc.
So the problem is equivalent to find the number of arrangements of 5 green balls and 5 blue balls and then multiply by 2.
the number of arrangements of 5 green balls and 5 blue balls is $\frac{10!}{5!5!}=252$.
So, there are $2 \times 252 = 504$ arrengements.
I'd like to know if this solution is correct. Thank you for your help.