Problem:
Let be the number of ways of distributing candies to children so that each child receives at most 2 candies. For example, if , then , and .
Determine the value of
Solutions — 2
Solution 1
Solution:
The number of ways of distributing candies to children is equal to the number of ways of distributing to a particular child and to the rest, plus the number of ways of distributing to the particular child and to the rest, plus the number of ways of distributing to the particular child and to the rest. Thus , so that the required sum is
In evaluating , suppose that there are children who receive candies; these children can be chosen in ways. Then there are candies from which at most one is given to each of children. Hence
with when and when . The answer is
Solution 2
Solution:
The desired number is the sum of the coefficients of the terms of degree not exceeding in the expansion of , which is equal to the coefficient of in the expansion of
Since the degree of every term in the expansion of the second member on the right exceeds , we are looking for the coefficient of in the expansion of the first member:
The desired number is
(Note that when .)