Distributing m&m’s \textbf{m\&m's}

We all know that the famous chocolate, m & m’s \textbf{m \& m's} generally comes in r e d \textcolor{#D61F06}{red} , o r a n g e \textcolor{#EC7300}{orange} , y e l l o w \textcolor{#CEBB00}{yellow} , g r e e n \textcolor{#20A900}{green} , b l u e \textcolor{#3D99F6}{blue} and b r o w n \textcolor{#624F41}{brown} .

Right now, I have 3 m & m’s \textbf{3 m \& m's} for each of the 6 \textbf{6} colors mentioned above, making a total of 18 \textbf{18} .

12 \textbf{12} children come to me hoping that they could enjoy some chocolates.

Unfortunately, they are pretty picky and each of them makes a different request as follows:

The 1st \textbf{1st} child wants no more than 1 \textbf{1} r e d \textcolor{#D61F06}{red} m & m’s \textbf{m \& m's} .

The 2nd \textbf{2nd} child wants no more than 1 \textbf{1} o r a n g e \textcolor{#EC7300}{orange} m & m’s \textbf{m \& m's} .

The 3rd \textbf{3rd} child wants no more than 1 \textbf{1} y e l l o w \textcolor{#CEBB00}{yellow} m & m’s \textbf{m \& m's} .

The 4th \textbf{4th} child wants no more than 1 \textbf{1} g r e e n \textcolor{#20A900}{green} m & m’s \textbf{m \& m's} .

The 5th \textbf{5th} child wants no more than 1 \textbf{1} b l u e \textcolor{#3D99F6}{blue} m & m’s \textbf{m \& m's} .

The 6th \textbf{6th} child wants no more than 1 \textbf{1} b r o w n \textcolor{#624F41}{brown} m & m’s \textbf{m \& m's} .

The 7th \textbf{7th} child wants no more than 2 \textbf{2} r e d \textcolor{#D61F06}{red} m & m’s \textbf{m \& m's} .

The 8th \textbf{8th} child wants no more than 2 \textbf{2} o r a n g e \textcolor{#EC7300}{orange} m & m’s \textbf{m \& m's} .

The 9th \textbf{9th} child wants no more than 2 \textbf{2} y e l l o w \textcolor{#CEBB00}{yellow} m & m’s \textbf{m \& m's} .

The 10th \textbf{10th} child wants no more than 2 \textbf{2} g r e e n \textcolor{#20A900}{green} m & m’s \textbf{m \& m's} .

The 11th \textbf{11th} child wants no more than 2 \textbf{2} b l u e \textcolor{#3D99F6}{blue} m & m’s \textbf{m \& m's} .

The 12th \textbf{12th} child wants no more than 2 \textbf{2} b r o w n \textcolor{#624F41}{brown} m & m’s \textbf{m \& m's} .

Each of the child has a special request for each of the color.

For each of a child who does not make request for the other remaining colors, he or she can receive any non-negative number \textbf{non-negative number} of them.

Any one of the child will cry if his or her request is not fulfilled.

How many ways are there to distribute your m & m’s \textbf{m \& m's} to them so that no one cries?

If your answer when expressed in prime factorization, is p 1 n 1 p 2 n 2 p_{1}^{n_{1}} \cdot p_{2}^{n_{2}} ,

where p 1 , p 2 p_{1},p_{2} are primes which are distinct \textbf{distinct} and n 1 , n 2 n_{1},n_{2} are positive integers which need not \textbf{need not} be distinct \textbf{distinct} .

Give your answer as p 1 + n 1 + p 2 + n 2 p_{1}+n_{1}+p_{2}+n_{2} .

Bonus: \textbf{Bonus:} Do not use calculator.

This is part of the set Things Get Harder! .


The answer is 40.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Donglin Loo
Jun 9, 2018

We notice that there is recursion of demands that comes in pairs.

For instance,

the 1st \textbf{1st} child wants no more than 1 \textbf{1} r e d \textcolor{#D61F06}{red} m & m’s \textbf{m \& m's} and the 7th \textbf{7th} child wants no more than 2 \textbf{2} r e d \textcolor{#D61F06}{red} m & m’s \textbf{m \& m's} ,

the 2nd \textbf{2nd} child wants no more than 1 \textbf{1} o r a n g e \textcolor{#EC7300}{orange} m & m’s \textbf{m \& m's} and the 8th \textbf{8th} child wants no more than 2 \textbf{2} o r a n g e \textcolor{#EC7300}{orange} m & m’s \textbf{m \& m's} ,

...

With that being said, we shall focus on computing the pair of requests from one of the colors, say r e d \textcolor{#D61F06}{red} and compute the total number of ways of distribution by rule of product .

Let x 1 x_{1} be the number of chocolates received by the 1st \textbf{1st} child and x 7 x_{7} be the number of chocolates received by the 7th \textbf{7th} child.

The only possible solutions for x 1 , x 7 x_{1},x_{7} are:

x 1 = 0 , x 7 = 0 x_{1}=0,x_{7}=0

x 1 = 1 , x 7 = 0 x_{1}=1,x_{7}=0

x 1 = 0 , x 7 = 1 x_{1}=0,x_{7}=1

x 1 = 1 , x 7 = 1 x_{1}=1,x_{7}=1

x 1 = 0 , x 7 = 2 x_{1}=0,x_{7}=2

x 1 = 1 , x 7 = 2 x_{1}=1,x_{7}=2

When x 1 = 0 , x 7 = 0 x_{1}=0,x_{7}=0 ,

x 2 + x 3 + . . . + x 6 + x 8 + . . . + x 12 = 3 x_{2}+x_{3}+...+x_{6}+x_{8}+...+x_{12}=3

By Stars and Bars Theorem , there are ( 12 9 ) 12\choose9 non-negative integer solutions to the equation.

When x 1 = 1 , x 7 = 0 x_{1}=1,x_{7}=0 and x 1 = 0 , x 7 = 1 x_{1}=0,x_{7}=1 ,

x 2 + x 3 + . . . + x 6 + x 8 + . . . + x 12 = 2 x_{2}+x_{3}+...+x_{6}+x_{8}+...+x_{12}=2

By Stars and Bars Theorem , there are ( 11 9 ) 11\choose9 non-negative integer solutions to the equation.

But since there are two possible solutions for x 1 , x 7 x_{1},x_{7} , we have ( 11 9 ) 11\choose9 2 \cdot2 solutions here.

When x 1 = 1 , x 7 = 1 x_{1}=1,x_{7}=1 and x 1 = 2 , x 7 = 0 x_{1}=2,x_{7}=0 ,

x 2 + x 3 + . . . + x 6 + x 8 + . . . + x 12 = 1 x_{2}+x_{3}+...+x_{6}+x_{8}+...+x_{12}=1

By Stars and Bars Theorem , there are ( 10 9 ) 10\choose9 non-negative integer solutions to the equation.

But since there are two possible solutions for x 1 , x 7 x_{1},x_{7} , we have ( 10 9 ) 10\choose9 2 \cdot2 solutions here.

When x 1 = 2 , x 7 = 1 x_{1}=2,x_{7}=1 ,

x 2 + x 3 + . . . + x 6 + x 8 + . . . + x 12 = 0 x_{2}+x_{3}+...+x_{6}+x_{8}+...+x_{12}=0

There is a only 1 1 non-negative integer solution here.

\therefore , for one single color, there is a total of ( 12 9 ) 12\choose9 + + ( 11 9 ) 11\choose9 2 \cdot2 + + ( 10 9 ) 10\choose9 2 \cdot2 + 1 +1 = 351 =351

By rule of product , the number of ways of distribution = 35 1 6 = ( 3 3 13 ) 6 = 3 18 1 3 6 =351^6=(3^3\cdot13)^6=3^{18}\cdot13^6

p 1 + n 1 + p 2 + n 2 = 3 + 18 + 13 + 6 = 40 \therefore p_{1}+n_{1}+p_{2}+n_{2}=3+18+13+6=40


Bonus: \textbf{Bonus:}

( 12 9 ) 12\choose9 + + ( 11 9 ) 11\choose9 2 \cdot2 + + ( 10 9 ) 10\choose9 2 \cdot2 + 1 +1

= = ( 12 9 ) 12\choose9 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9 + 1 +1 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9

= = ( 12 9 ) 12\choose9 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9 + + ( 10 10 ) 10\choose10 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9

= = ( 12 9 ) 12\choose9 + + ( 11 9 ) 11\choose9 + + ( 11 10 ) 11\choose10 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9

= = ( 12 9 ) 12\choose9 + + ( 12 10 ) 12\choose10 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9

= = ( 13 10 ) 13\choose10 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9

= = ( 13 10 ) 13\choose10 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9 + 1 +1 1 -1

= = ( 13 10 ) 13\choose10 + + ( 11 9 ) 11\choose9 + + ( 10 9 ) 10\choose9 + + ( 10 10 ) 10\choose10 1 -1

= = ( 13 10 ) 13\choose10 + + ( 11 9 ) 11\choose9 + + ( 11 10 ) 11\choose10 1 -1

= = ( 13 10 ) 13\choose10 + + ( 12 10 ) 12\choose10 1 -1

= = ( 13 3 ) 13\choose3 + + ( 12 2 ) 12\choose2 1 -1

= = 13 12 11 3 2 1 \cfrac{13\cdot12\cdot11}{3\cdot2\cdot1} + + 12 11 2 1 \cfrac{12\cdot11}{2\cdot1} 1 -1

= = 286 + 66 1 286+66-1

= = 351 351

The identities I utilized in my computation above are ( n r ) n \choose r + + ( n + 1 r ) n+1 \choose r = = ( n + 1 r + 1 ) n+1 \choose r+1 and ( n r ) n \choose r = = ( n n r ) n \choose n-r

Detailed proofs can be read here .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...