in Combinatory retagged by
11,178 views
23 votes
23 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)$
in Combinatory retagged by
11.2k views

4 Comments

4
4

Just in case someone is confused with the short trick used:

https://math.stackexchange.com/questions/910809/how-to-use-stars-and-bars

1
1

Total m balls and each contain at least k balls. So give k balls each n bags and remaining = (m – kn)

Now (m – kn) we have to permute in n bags So, C ( m-kn+n-1 , n-1).

Note : (n-1) because for n numbers we do (n-1) partitions. Find similarity from the no. of ways X+Y+Z = 12. how many X, Y,Z values possible. Here we do (3-1) partitions.

1
1

IODB TEMPLATE

0
0

9 Answers

44 votes
44 votes
Best answer
As there have to be at least $k$ balls in each bag, so firstly put $k$ balls in each bag i.e., $\left(k*n\right)$ balls.

Now, we have total $\left(m-k*n\right)$ balls remaining.

We can use balls $\&$ sticks method now $!$

$n$ bags $= n$ variables, they need to be equal to $\left(m-k*n\right)$, no restrictions on how many balls in each bag $!$

$x_{1}+x_{2}+\ldots+x_{n}= \left ( m-k*n \right ),x_1,x_2\ldots x_n\geq 0.$

On solving, we get

$C(m - k*n + n - 1, n-1 ) = C(m - k*n + n - 1, m- k*n )$

Correct Answer: $B$
edited by

4 Comments

edited by
yup B is correct
0
0

As there have to be atleast k balls in each bag, so firstly put k balls in each bag i.e k*n balls. Then after, (m - kn) identical balls are left which we have to put it in n distinct bags, so can we use this 

remaining of 1st ball be placed in either of n bags in = n ways.

similarly 2nd ball = n ways and so on 

so n^(m-kn) ways to place the remaining balls in bags.

please correct me if i am wrong.

 

0
0
good approach
0
0
14 votes
14 votes

As there have to be atleast k balls in each bag, so firstly put k balls in each bag i.e k*n balls. Then after, (m - kn) identical balls are left which we have to put it in n distinct bags, so use this general formula: 

C(n + m - kn - 1, n -1).

So, answer would be b.

3 Comments

According to the general formula the answer would be C(n+m-kn-1, n).

how you got n-1?
1
1
yes i also can not understand.wht (n-1) in place of n?
0
0

In stars and bars problem when we divide into n parts then we use n-1 sticks ...not n sticks.

3
3
7 votes
7 votes

Simplest way possible: 10 sec 

3 votes
3 votes

Concept Used:

Number of non-negative integral solution to the equation

$x_{1} + x_{2} + x_{3} + ... + x_{k} = n$ 

where, $(n≥k)$, 

            $x_{i} \geq 0,$ and

            $i = \left \{ 1, 2, 3, ..., k \right \}$

$=\binom{n \ + \ k \ - \ 1}{k \ - \ 1}$ or $\binom{n \ + \ k \ - \ 1}{n}$.

 

Problem:

$m\ (m\geq nk)$ identical balls have to be placed in $n$ distinct bags such that each bag contains at least $k$ balls.

 

Solution:

Let $Bag_i$ contains $x_i$ number of balls where $i = \left \{ 1, \ 2, \ 3, \ ..., \ n \right \}$

Then sum of all the balls in each bag = $m$        where $(m\geq nk)$

$\implies$ $x_{1} + x_{2} + x_{3} + ... + x_{n} = m$.

$\because$ Each bag should contain atleast $k$ number of balls so we can write each of the $x_i$'s as sum of $y_i + k$

$\implies$ $(y_{1}+k) + (y_{2}+k) + (y_{3}+k) + ... + (y_{n}+k) = m$.

$\implies$ $y_{1} + y_{2} + y_{3} + ... + y_{n} = m - nk$.

Now, we have to find all such values of $y_{1}$, $y_{2}$, $y_{3}$,...,$y_{n}$ that satisfy the above equation.

In other words, the problem basically reduces to  finding the number of non-negative integral solution to the above equation.

$\therefore$ The required number of ways is $\binom{m \ - \ nk \ + \ n \ - \ 1}{n \ - \ 1} = \binom{m \ - \ nk \ + \ n \ - \ 1}{m \ - \ nk}$.

Therefore, correct option- (B).

edited by

1 comment

I posted an answer to the wrong question. Now neither can i delete or remove. So converting this to a comment.
1
1
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true