This is a question from the book Combinatorics -a problem oriented approach which states:
Q.1 Find the no. of distributions of a set of distinct balls into a set of distinct boxes, if no boxes can be empty.
Q.2 Find the number of words of a given length from a given set of letters, if each letter must occur at least once in each word.
The answer to both is the sum of all of the distribution numbers in which
$m$ = number of balls = length of each word
$n$ = number of boxes = number of letters in the set
and the numbers $m_1$,. . . , $m_n$ run through all possible sequences of n positive
integers adding up to m:
$\sum_{m_1,m_2,\ldots ,m_n \geq 1}$ $m\choose m_1,m_2\ldots ,m_n$
I still can't understand why is no. of boxes is equivalent to no. of letters in set.Please help...
@Markus-Scheuer already gave a fairly detailed explanation of one way to understand this problem, but I think I have some simpler and more general tips. This is a matter of understanding the mappings in each problem.
Different balls are distinct and can each go to exactly one box. Boxes are distinct and can have many balls. Balls in a given box are unordered and there must be at least one in each.
Different positions in a string are distinct and can each contain exactly one letter. Letters are distinct and can appear in many positions. Positions containing identical letters are unordered (they can be rearranged without affecting the word) and each letter must appear in at least one position.
From that it's obvious that boxes are letters and positions are strings. And in general, if you write down all of the properties of the mapping that you can think of, it will usually be obvious if and how the problems are equivalent. If the properties match up but you're still not convinced, brute force it for some small numbers and verify that the answers are the same.