In how many ways can we distribute 21 distinct balls in 3 different urns such that the first urn contains an even and the second urn contains an odd number of balls?

Alfredeim

Alfredeim

Answered question

2022-09-04

Distributing 21 balls in 3 urns with some condition
In how many ways can we distribute 21 distinct balls in 3 different urns such that the first urn contains an even and the second urn contains an odd number of balls? Since 21 can be written only as the sum of three odd numbers or two even numbers and an odd number, we can say the number of distributions of 21 balls in 3 urns is:
A 1 + A 2 + A 3 + B
where:
A i = The number of distributions where the ith urn contains an odd and the other urns contain an even number of balls
and:
B = The number of distributions where all urns contain an odd number of balls
Now A 1 = A 2 = A 3 (say x) since any state of any of these three can be mapped to the other ones by changing the order of the urns. Now Looks like B = x 1 and I want to prove this by defining a bijective function from the set of all states of the part A1 excluding one particular element to the set of all the states of the part B but the functions I define don't happen to be injective. (Moving one ball from an urn containing an even number of balls to the other one containing an even number of balls could be a possible solution but this function is not injective.) What function do you suggest for this? If we define a bijective function successfully then we'll have:
x + x + x + x 1 = 3 21 4 x 1 = 3 21 x = 3 21 + 1 4
Which is the answer to the problem.

Answer & Explanation

buciumau5r

buciumau5r

Beginner2022-09-05Added 8 answers

Step 1
The number of total distributions will be the coefficient of x 21 in the generating function
21 ! ( k = 0 x 2 k ( 2 k ) ! ) ( k = 0 x 2 k + 1 ( 2 k + 1 ) ! ) ( k = 0 x k k ! )
To explain why this is true, consider that each series term represents each urn.
When we expand this product and collect all the terms with coefficient x 21 , we are summing over all nonnegative integer solutions to ( 2 a ) + ( 2 b + 1 ) + c = 21.
For each of these particular ordered partitions of 21, we are summing the coefficient ( 21 2 a , 2 b + 1 , c ) , which represents the total number of ways to distribute the 21 distinct balls so that 2a balls are in the first urn, 2 b + 1 balls are in the second urn, and c balls are in the third urn.
Now we must actually determine the coefficient of x 21 in our generating function. We can use the taylor series
e x = k = 0 x k k !
to simplify the sums.
Step 2
Using roots of unity filter, we can also determine that
e x + e x 2 = k = 0 x 2 k ( 2 k ) !
e x e x 2 = k = 0 x 2 k + 1 ( 2 k + 1 ) !
You can expand the taylor series of the LHS of these two identities to see that they are indeed true.
Using these identities, our generating function simplifies to
21 ! ( e x + e x 2 ) ( e x e x 2 ) ( e x )
21 ! ( e 2 x e 2 x 4 ) ( e x )
21 ! 4 ( e 3 x e x )
The coefficient of x 21 in the expansion of this expression is
21 ! 4 ( 3 21 21 ! ( 1 ) 21 21 ! )
3 21 ( 1 ) 21 4
3 21 + 1 4
Anabelle Guzman

Anabelle Guzman

Beginner2022-09-06Added 14 answers

Step 1
For odd number of balls in bin 1, we are left with even number of balls to distribute between bin 2 and 3.
If the number of even balls is 2 k   ( k Z + ), then keeping one of the balls aside, there are   2 ( 2 k 1 )   possible ways to distribute balls in two bins. Every arrangement will have even number of balls in one of the bins and odd in the other. But by fixing the position of the last ball as the bin with odd number of balls, 2 ( 2 k 1 ) is the number of arrangements of 2k balls in two bins such that both bins have even number of balls. As there are 2 2 k arrangements in total, that leaves us with same number of arrangements 2 ( 2 k 1 ) , where there are odd number of balls in both bins.
Step 2
The above holds true for any odd number of balls but when there are 21 balls in bin 1, k = 0 and total number of arrangements in bin 2 and 3 is 2 2 k = 1, which is odd - there is one arrangement {21 0 0} with even number of balls in bin 2 and 3 but there are no arrangements with odd number of balls in bin 2 and 3.
That leads to   3 x + ( x 1 ) = 3 21 .

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?