2
$\begingroup$

I have $5(N)$ boxes and some balls. Here's the description: Red Balls $= 2 (k1 = 2)$ Green Balls $= 3 (k2 = 3)$

    --------------------------
    |    |    |    |    |    |
    --------------------------

How many ways do I have to put in these balls in the five boxes? (The boxes are labeled/ordered)

p.s. One box can hold only one ball

$\endgroup$
1
  • $\begingroup$ How many balls should be in each box? $\endgroup$ Jul 5, 2013 at 22:02

1 Answer 1

1
$\begingroup$

For the solution, we assume that a box can contain any number of balls.

You are probably familiar with the Stars and Bars way of counting the number of ways to put $2$ red balls in $5$ boxes.

If so, you also can find the number of ways to put $3$ blue balls in $5$ boxes.

Multiply.

Remark: $1.$ If Stars and Bars is not familiar, one can make it familiar (the Wikipedia article cited is pretty clear). Or else one can count separately, by considering cases, the answers to the $2$ ball problem and the $3$ ball problem.

$2.$ If we are to have $1$ ball per box (this was not specified), then the number of ways is the number of ways to choose where the red balls will go. This is $\binom{5}{2}$.

$\endgroup$
2
  • $\begingroup$ Yup, 1 ball per box. Thanks! Actually I had to use it as a part of a larger problem. The task was to find out how many anagrams of a word are Palindromes. Thanks again! $\endgroup$
    – Aditya
    Jul 5, 2013 at 22:27
  • $\begingroup$ OK. If you need a check of that answer, please leave a message. Will not be able to reply immediately, but within a couple of hours. $\endgroup$ Jul 5, 2013 at 22:32

You must log in to answer this question.

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