edited by
12,349 views
38 votes
38 votes

Two girls have picked $10$ roses, $15$ sunflowers and $15$ daffodils. What is the number of ways they can divide the flowers among themselves?

  1. $1638$
  2. $2100$
  3. $2640$
  4. None of the above
edited by

7 Answers

0 votes
0 votes

First let me give you naive solution and then the proper approach or short cut

There are 10 roses,15 sunflowers , 15 daffodils

Roses Sunflowers Daffodils

0 – 10

15 – 0 15  – 0
1 – 9 14 – 1 14  – 1
2 – 8 13 –  2 13  – 2
3 – 7 12 – 3 12  – 3
4 – 6  11 – 4  11  – 4
5 – 5 10 – 5 10  – 5
6 – 4 9 – 6 9  – 6
7 – 3 8 – 7 8  – 7 
8 – 2 7 – 8 7  – 8
9 – 1  6 – 9 6  – 9
10 -0  5 – 10 5  – 10
  4 – 11 4  – 11
  3 – 12 3  – 12
  2 – 13 2  – 13
  1 – 14 1  – 14
  0 – 15 0  – 15

Number ways of distributing Roses  = 11

Number ways of distributing Sunflower  = 16

Number ways of distributing Daffodils  = 16

Total number of ways of distributing flowers = 11*16*16 =  2816


n identical objects  can be distributed among kk distinct people in  =$^{n+k−1}$$C_n$ ways

 

Here there are 2 girls. So, k=2

1. 10Roses

So n=10 Substitute in the formula, we get,=$^{10+2−1}$$C_{10}$=11                

2. 15 Sunflowers

So, n=15. Substitute in the formula, we get, $^{15+2−1}$$C_{15}$=16   

3. 15 Daffodils

So, n=15. Substitute in the formula, we get, $^{15+2−1}$$C_{15}$=16          

Total ways = 11∗16∗16=2816.

 

edited by
0 votes
0 votes

A solution using generating functions. 

 

​​​​​​Note the number of roses is 10. Hence I will be interested in finding the x^10 coefficient. And for both daffodils and sunflowers we are interested how 15 of them each is divided hence x^15 coefficient.

 

​​​​​G(x) = 1+x+x²+x³+.… = 1/(1-x)

the reason is simple because a girl could get 0flowers, or 1flower or 2flowers and so on. 

suppose if the question was, the girls could get only odd number of flowers, then G(x) would have been, 

x+x³+x⁵+x⁷+… for each girl. 

G(x) = x/(1-x).

If you want to know more read the below given pdf or watch Kimberly Brehm videos on generating functions on YouTube.

Videos on generating functions.

 

 

 

 

​​​​​​A solution using generating functions. Note that the model for all the three types of flowers is the same. But since we are interested in finding the number of ways in which 10 roses and 15 daffodils and 15 sunflowers could be divided between two girls so we are finding coefficient of x^10 for roses and x^15 for sunflower and daffodils.

edited by
Answer:

Related questions

30 votes
30 votes
5 answers
1
Kathleen asked Sep 23, 2014
9,095 views
The number of binary strings of $n$ zeros and $k$ ones in which no two ones are adjacent is$^{n-1}C_k$$^nC_k$$^nC_{k+1}$None of the above
23 votes
23 votes
2 answers
2
Kathleen asked Sep 23, 2014
11,330 views
The number of binary relations on a set with $n$ elements is:$n^2$$2^n$$2^{n^2}$None of the above
54 votes
54 votes
3 answers
4
Kathleen asked Sep 23, 2014
15,569 views
A certain processor supports only the immediate and the direct addressing modes. Which of the following programming language features cannot be implemented on this proces...