We have $n$ sticks and we want to choose $k$ of them. So, the number of choices is given by the binomial coefficient:
$$\binom{n}{k} = \frac{n!}{k!(n-k)!}$$
(b) To solve this problem, we can think of it as placing $k$ "balls" (the chosen sticks) into $n-k+1$
Show more…