The number of ways in which 5 different books can be distributed among 10 people if each person can get at most two books is?
My Attempt:
The number of possibilities is
$(2,2,1)$[rest all zero],$(1,1,1,1,1)$[rest all zero], $(2,1,1,1)$[rest all zero]
Therefore, dividing 5 books and distributing them will give me,
$\binom{10}{3}[\frac{5!}{2!2!1!2!}] + \binom{10}{5}[\frac{5!}{1!1!1!1!1!}] + \binom{10}{4}[\frac{5!}{2!1!1!1!}]$
This may be the answer according to me.
But I don't know the correct answer to the given question. So, can anyone check my work?
Your approach is right. But suppose we are looking at the case $(2,2,1)$, then once you have chosen three people over the ten, say people $p_1,p_2,p_3$ you have to choose which one of the three receives 1 book (i.e. multiply by three), then you have to choose which books are to be given to person 1 (choose two over five) and to person 2 (choose two over three). This will cover all cases in this setting.
$${10\choose 3}\times 3\times {5\choose 2}\times{3 \choose 2}.$$
The other two cases $(2,1,1,1)$ and $(1,1,1,1,1)$ are similar, I'll leave you to it.