1

A bookshelf has $15$ books. in how many ways can $4$ books be removed such that no two adjacent books are chosen?

I started to solve the question by saying that the first book can be selected in $15$ ways, the second one can be selected in $13$ ways,the third one in 11 ways and the fourth one in $9$ ways. Total number of ways:$15\times13\times11\times9=19305$. However the correct answer must be $495$. Can you explain why my counting technique is false and provide me with hints about the correct one? Thanks you for your help

N. F. Taussig
  • 76,571
Roy Rizk
  • 171
  • 1
    There are two problems. One is double counting; you are counting every selection $4!$ times. The other is that if a book is selected from the middle of the shelf, there are only $12$ ways to select the next book. It's only when you select one of the two books on the ends that there are $13$ choices for the second book. – saulspatz Jul 14 '18 at 14:25
  • I tried to count starting from the middle I got 15x12x10x8=14400 and dividing by 4! Because the order among the selection doesn’t matter I got then 600 instead of 495 – Roy Rizk Jul 14 '18 at 14:34
  • Please help me with this question – Roy Rizk Jul 14 '18 at 14:47
  • Your over-counting error is that in counting the number of ways that the second one can be selected. If the first one was one the outside, then yes there are 13 ways to select the second. However if, (for example) the first book selected was the second-most from the right, then there are only 12 ways to select the next book. – Martin Roberts Jul 14 '18 at 16:02

2 Answers2

2

This solution uses the stars and bars method of counting.

Consider the 4 books you select as bars and the 11 remaining books as stars. That is, we have need to arrange 4 bars and 11 stars, under the constraint that between any two bars there is at least one star.

There are $3$ spaces between the bars, so there must be 3 stars between them.

That now simply requires us to fix the remaining 12 objects (8 stars and 4 bars).

We can do this in $\binom{12}{4}=495$ ways.

The obviously generalises to the following:

For $n\ge2m-1$, there are $\dbinom{n-m+1}{m}$ ways to select $m$ non-consecutive items from a set of $n$ items.

0

The remaining $11$ books create $12$ slots where the four chosen books could have been. There are ${12\choose4}=495$ ways to choose $4$ slots.