# Thread:

1. ## Number of ways in which 7 distinct objects can be put..?

Find the number of ways in which 7 distinct objects can be put in three identical boxes so that no box remains empty.

2. This is similar to a problem i had in an old course where you had to find integers x,y,z s.t. x + y + z = some +ve integer.

So i think this one can be reworded as the 3 boxes being x,y and z. And n being 7 distinct objects.

Since you want +ve integers what to do is set x' = x-1 etc and then you get x' + y' + z' = 4.

This is done by using the binomial expression $\left(\begin{array}{cc}n + k-1\\k-1\end{array}\right)$ where k is the number of 'boxes'

So we get $\left(\begin{array}{cc}4+3-1\\3-1\end{array}\right) = \left(\begin{array}{cc}6\\2\end{array}\right)$ = 15.

3. Originally Posted by Deadstar
This is similar to a problem i had in an old course where you had to find integers w,x,y,z s.t. w + x + y + z = some +ve integer.

So i think this one can be reworded as the 4 boxes being w,x,y and z. And n being 7 distinct objects.

Since you want +ve integers what to do is set w' = w-1 etc and then you get w + x + y + z = 5.

This is done by using the binomial expression $\left(\begin{array}{cc}n + k-1\\k-1\end{array}\right)$ where k is the number of 'boxes'

So we get $\left(\begin{array}{cc}5+4-1\\4-1\end{array}\right) = \left(\begin{array}{cc}8\\3\end{array}\right)$ = 56.
its $3$ boxes.

4. Ah grim. Fixed!

5. Actually my first post was totally full of fail thanks for noticing that boxes thing...

6. The answer is 322. Are we missing something?

7. Yeah i think my way was if there was 7 identical objects... 15 is waaaay to low.
But how did you get 322? I just did a 'brute force' method and came up about 99 but didnt really check it.
Since each box must contain 1 object it can be simplified down to how many ways can 4 objects be distributed between 3 boxes... This questions bugging me now...

EDIT: Is the answer just $3^4 = 81$?

8. Well,this is how it goes.

Since the boxes are identical the problem reduces to the fact $7$ distinct objects have to be divided(not distributed) into $3$ groups as arrangement among the boxes are immaterial since the boxes are identical

The groupings can be done as follows $<img src=$1,3,3),(1,2,4),(2,2,3),(1,1,5)" alt="1,3,3),(1,2,4),(2,2,3),(1,1,5)" />

This can be done in following ways:
= $\frac{7!}{1!3!3!}\frac{1}{2!}+\frac{7!}{1!2!4!}+\f rac{7!}{2!2!3!}\frac{1}{2!}+\frac{7!}{1!1!5!}\frac {1}{2!}$

$=70+105+105+21$

$<br /> =301<br />$

Either the answer is 301 or I have missed a grouping which is not likely

9. Originally Posted by pankaj
Well,this is how it goes.

Since the boxes are identical the problem reduces to the fact $7$ distinct objects have to be divided(not distributed) into $3$ groups as arrangement among the boxes are immaterial since the boxes are identical

The groupings can be done as follows $<img src=$1,3,3),(1,2,4),(2,2,3),(1,1,5)" alt="1,3,3),(1,2,4),(2,2,3),(1,1,5)" />

This can be done in following ways:
= $\frac{7!}{1!3!3!}\frac{1}{2!}+\frac{7!}{1!2!4!}+\f rac{7!}{2!2!3!}\frac{1}{2!}+\frac{7!}{1!1!5!}\frac {1}{2!}$

$=70+105+105+21$

$<br /> =301<br />$

Either the answer is 301 or I have missed a grouping which is not likely
What about $(1,4,2)$? Or $(1,5,1)$? Also why did you divide by $2!$?

10. 301 is correct.

The number is also $S(7,3)$, where S is the Stirling Number of the 2nd Kind.

11. Originally Posted by Sampras
What about $(1,4,2)$? Or $(1,5,1)$? Also why did you divide by $2!$?
(1,2,4) is same as (1,4,2) since boxes are identical.There is no such thing as the first box or the second or the third .

If 2 groups contain same number of objects then it is required that we divide by 2!.
For example if {a,b,c,d,e,f,g} are the 7 obects.One grouping containing (2,2,3) objects can be described as follows.
{a,b},{c,d}{e,f,g} and another can be {c,d},{a,b}{e,f,g}.
Now arent these groupings same.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 25, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9359069466590881, "perplexity_flag": "middle"}