I am currently struggling with the question in combinatorics: there are 24 balls, 12 of which are red and 12 are blue, and 3 urns. How many ways are there to distribute these balls independently of their color into the three urns if each urn contains 8 balls?
My answer would be $\binom{24}{8}\cdot\binom{16}{8}\cdot\binom{8}{8}$. Is this correct?
My problem with my answer is that i cannot distuinguish the red or blue balls from each other so I think I am counting too many possibilities this way. So for example if there are 12 boys and 12 girls and we ask how many ways are there to form 3 groups of 8 people each regardless of their gender the above expression would be correct because I can distinguish between the individual students, right? I would be happy if somebody could confirm or help. Thank you
Your proposed answer of $\pmatrix{24 \\ 8} \pmatrix{16 \\ 8} \pmatrix{8 \\ 8} = 9,465,511,770$ is wildly wildly off.
For indistinguishable urns, there are 13 ways.
Consider just the red balls. If we know where they lie, then we know where the blue balls lie. Order the urns by the one that contains the largest number of reds, then the second largest number of reds, then the least number of reds. Actually, $i \geq j \geq k$ where $i + j + k = 12$.
Here they are:
Here's the Mathematica code that provides these, once you realize that you must count entries with $0$.
This computes the integer partitions of 12 that are of length 2 or 3. Then it selects only those whose largest entry are less than $9$ (as only 8 can fit in an urn). The
PadRightjust adds $0$ to each list to make the length 3 (as there are three urns).If you want the mathematical formula:
$$\sum\limits_{i=4}^8 \sum\limits_{j = \lceil \frac{12-i}{2} \rceil}^{\min [i, 12-i]} 1 = 13,$$
where $\lceil n\rceil$ is the "ceiling" function... the smallest integer above or equal to $n$.
Here's a plot of the discrete configurations for the first two urns, $i$, and $j$. (The third urn is simply $12-i-j$ and isn't shown.)