A Combinatorics Question: Why Is My Solution Wrong, And The Given Solution Correct?

I think it is evidently clear how the maximum gap must be less than 3. If the gap exceeds 2, then there will have to be at least one gap of 3 which will allow the next person to sit in the middle.

As we increase the no. of gaps, the value of N will consequently decrease. Thus to find the least value of N for the given conditions to satisfy, we must consider the case where maximum permitted gaps are present.

This is in the case of every third seat being occupied (as this allows a gap of 2 between each person, which is max. permitted gap)

Thus the least value of N turns out to be 20.

The problem with your answer is that, even though it satisfies the given conditions, it's not the best possible arrangement. As in, it isn't the least value of N (which is asked). It is easy to see how increasing the gap will decrease N. So in your case you haven't allocated the maximum gaps, that is the reason your answer came to be incorrect.


If every third seat is occupied, filling 20 seats, then decreasing $N$ any further means there is at least one gap of $4$, so that the person can sit themselves in the middle (seat $2$ of $4$) and not be next to anyone. Hence the minimum value of $N$ is $20$.