I’ve been working on problems similar to the one in the title for a few days, and I came up with two methods that I believe should both work, but get completely different answers. Clearly, only one of them is correct, but I don’t understand why the incorrect method doesn’t work. Here are the methods:
Instead of looking at ways to pick six rocks from the line of twenty, consider a line of 14 rocks to which we must add six such that no two are consecutive. We can put up to 1 rock in each spot at either end of the line of 14, or in between each pair of rocks, for a total of 15 spots. We then choose 6 of those 15 spots to put our rocks. There are 15choose6 ways to make that choice.
begin with the six rocks we pick. Fix 5 additional rocks such that none of the six rocks we pick are next to each other (since rocks are identical it does not matter which 5 we choose, but we must have these rocks in any final arrangement). We then find how many ways we can add the remaining 9 rocks to the array. For each rock, we can put the rock at either end of the array, or between two of the rocks we pick (since they’re identical, it doesn’t matter if we add to the left or right of the 5 fixed non-picked rocks) for a total of 7 choices. Each of the 9 remaining rocks can independently be placed in any of those 7 spots, providing 9*7 possible possible placements for the 9 rocks.
Clearly, 15choose6 is not the same as 63, but why do these methods count different things? That is, what possible arrangement can be achieved by the first method but not the second, or what arrangements does the first method over-count?