(b) No generality is lost if we number the books \({{\rm{b}}_{\rm{1}}}{\rm{,}}{{\rm{b}}_{\rm{2}}}{\rm{, \ldots ,}}{{\rm{b}}_{\rm{n}}}\)and think of placing book\({{\rm{b}}_{\rm{1}}}\), then placing\({{\rm{b}}_{\rm{2}}}\), and so on. There are clearly \({\rm{k}}\)ways to place\({{\rm{b}}_{\rm{1}}}\), since we can put it as the first book (for now) on any of the shelves. After \({{\rm{b}}_{\rm{1}}}\)is placed, there are \({\rm{k + 1}}\)ways to place\({{\rm{b}}_{\rm{2}}}\), since it can go to the right of \({{\rm{b}}_{\rm{1}}}\)or it can be the first book on any of the shelves. We continue in this way: there are \({\rm{k + 2}}\)ways to place \({{\rm{b}}_{\rm{3}}}\)(to the right of\({{\rm{b}}_{\rm{1}}}\), to the right of\({{\rm{b}}_{\rm{2}}}\), or as the first book on some shelf), \({\rm{k + 3}}\)ways to place\({{\rm{b}}_{\rm{4}}}\), \({\rm{ \ldots ,k + n - 1}}\)ways to place \({{\rm{b}}_{\rm{n}}}\).
As a result, the answer is the product of these two numbers, which may be written as \({\rm{(k + n - 1)!/(k - 1)!}}\).
Another, possibly simpler, way to arrive at this solution is to consider first selecting the book locations, which we did in part (a), and then selecting a permutation of the \({\rm{n}}\)books to place in those sites (shelf by shelf, from the top down, and from left to right on each shelf). As a result, the solution is \({\rm{C(k + n - 1,n)}}{\rm{.n!}}\), which is the same as the result of our previous analysis.