• retagged by
21,956 views
38 38 votes

$m$ identical balls are to be placed in $n$ distinct bags. You are given that $m \geq kn$, where $k$ is a natural number $\geq 1$. In how many ways can the balls be placed in the bags if each bag must contain at least $k$ balls?

  1. $\left( \begin{array}{c} m - k \\ n - 1 \end{array} \right)$
  2. $\left( \begin{array}{c} m - kn + n - 1 \\ n - 1 \end{array} \right)$
  3. $\left( \begin{array}{c} m - 1 \\ n - k \end{array} \right)$
  4. $\left( \begin{array}{c} m - kn + n + k - 2 \\ n - k \end{array} \right)$

12 Answers

1 1 vote
This can be easily solved using generating functions. For each bag, we need atleast k balls. So, no. of ways there can be 1 ball in a bag =0, 2 balls in a bag = 0 ... k balls in a bag = 1, k+1 balls in a bag = 1 and so on.

 

So, generating function for a bag will be $x^{k} + x^{k+1} + x^{k+2} +...$  which can be expressed as $f(x)=x^{k}/(1-x)$.

For n different bags, the generating function will be $(x^{k}/(1-x))^{n}$. For m balls, we need to find the coefficient of $x^{m}$ in this generating function.

Or we can say that we need to find the coefficient of $x^{m-nk}$ in $1/(1-x)^{n}$ which will be $\binom{m-nk+n-1}{m-nk}$
0 0 votes
Answer will be (b)

$x_1+x_2+x_3+....+x_n = m$

$x_i \ge k$

so we can take

$y_1+k+y_2+k+y_3+k+....+y_n+k = m$

$\implies y_1+y_2+y_3+....+y_n = m-nk$

so number of ways the balls be placed in the bags if each bag must contain at least k balls is $^{m-nk+n-1}C_{n-1}$
0 0 votes
apply the logic b1+b2+b3+....bn=m where b1,b2,b3....bn>=0 apply c(n=m-1,m)

so to make this equation valid first give k balls each in every bag so now balls rem=m-nk

so,b1+b2+b3+b4......bn=m-nk where b1,b2,...bn>=0 s0 c(m-nk+n-1,n-1)
0 0 votes
A star bar problem

There are 1,2,3,4,5...n bags.

And in each 'k' balls are already placed.

So, k,k,k,k,k,k...upto n bags total 'kn' balls placed.

Now only 'm-nk' balls left

 

m-nk balls equal to stars

And n bags equal to n-1 bars.

 

Applying the star bars logic

(m - kn + n - 1) choose (n - 1) ways possible.

 
0 0 votes
remeber the example of IODB template where deepaksir told 10 identical choclates distribute among 3 children where each child get at least one choclate... this type of question

total identical balls = m, disticnt box = n  and each box has at least kn balls m>= kn so see that now the stars = m - kn and the bars = n-1 so the ways as formula : (m-kn+n-1)C(n-1) . formula : (star + bar -1)C(bar -1)
Answer:
Position:
Show:

Related questions

43 43 votes
6 answers 6 answers
17.5k
17.5k views
Kathleen asked Sep 23, 2014
17,468 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
51 51 votes
8 answers 8 answers
18.0k
18.0k views
Kathleen asked Sep 14, 2014
18,008 views
A multiset is an unordered collection of elements where elements may repeat any number of times. The size of a multiset is the number of elements in it, counting repetiti...
61 61 votes
5 answers 5 answers
14.9k
14.9k views
Kathleen asked Sep 17, 2014
14,860 views
A program consists of two modules executed sequentially. Let $f_1(t)$ and $f_2(t)$ respectively denote the probability density functions of time taken to execute the two ...
64 64 votes
6 answers 6 answers
18.6k
18.6k views
Kathleen asked Sep 16, 2014
18,637 views
$n$ couples are invited to a party with the condition that every husband should be accompanied by his wife. However, a wife need not be accompanied by her husband. The nu...