0
$\begingroup$

Determine the number of ways n marbles can be placed inside five distint jars, if the 1st jar must contain 1 marble, 2nd jar must contain 4 marbles, 3rd jar must contain 5 marbles, 4th and 5th marble must contain 1 marble.

I figured this would mean subset is ($a_1$, $a_2$ + 4, $a_3$ + 9, $a_4$ + 9, $a_5$ + 9) But I am not sure how to approach after this. Thank you for the help.

I know that base case for n is 12 marbles which will provide 1 combination does that mean the answer is $\binom{n-7}{5}$

This somehow does not seem right

$\endgroup$
2
  • $\begingroup$ I am "sure ?" how to approach this? $\endgroup$
    – xrfxlp
    Jun 16, 2019 at 16:39
  • $\begingroup$ Are the jars distinguishable or indistinguishable? $\endgroup$
    – ArsenBerk
    Jun 16, 2019 at 16:43

2 Answers 2

1
$\begingroup$

Straightforward use of binomial theorem. $n\binom{n-1}{4}\binom{n-5}{5}(n-10)(n-11)$ I am assuming $n\ge 12$ and the order of the the jars doesn't matter.

$\endgroup$
2
  • $\begingroup$ I belive the order of the jars matter? I am not quite sure how the binomial theorem works because if n = 12 shouldn't the result be 1? Thank you for you help $\endgroup$
    – Yaseily222
    Jun 16, 2019 at 17:01
  • $\begingroup$ If the order of the jars matters, the the answer needs to be multiplied by 5! I assumed all the marbles are different. If they are all the same then the answer I gave does not apply. $\endgroup$ Jun 16, 2019 at 21:16
0
$\begingroup$

You're trying to solve the equation $$a_1+a_2+a_3+a_4+a_5+12 = n $$

So we have 5 categories and n-12 objects. So we can use the "stars and bars" method, sometimes known as combinations with repetition. We have to place 4 dividers amongst the n-12 objects. In other words, we have n-12+4=n-8 positions and want to choose 4 positions to place the dividers. The number of slots between divider $i$ and $i+1$ will be the value of $a_{i+1}$, with the proper understanding that the slots before the first divider is the value for $a_1$ and after the 4th divider constitutes $a_5$.

Thus we have $\binom{n-8}{4}=\binom{n-8}{n-12}$ ways to solve the equation.

$\endgroup$
1
  • $\begingroup$ Thank you for your help! $\endgroup$
    – Yaseily222
    Jun 16, 2019 at 17:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .