Problem:
A cafe has 3 tables and 5 individual counter seats. People enter in groups of size between 1 and 4, inclusive, and groups never share a table. A group of more than 1 will always try to sit at a table, but will sit in counter seats if no tables are available. Conversely, a group of 1 will always try to sit at the counter first. One morning, groups consisting of a total of people enter and sit down. Then, a single person walks in, and realizes that all the tables and counter seats are occupied by some person or group. What is the minimum possible value of ?
, 2013
Solution
Solution:
Answer: 16
We first show that . Consider the point right before the last table is occupied. We have two cases:
First, suppose there exists at least one open counter seat. Then, every table must contribute at least 3 to the value of , because no groups of 1 will have taken a table with one of the counter seats open. By the end, the counter must contribute at least to , as there must be at least two groups sitting at the counter. It follows that .
For the second case, assume the counter is full right before the last table is taken. Then, everybody sitting at the counter must have entered as a singleton, since they entered when a table was still available. Consequently, the counter must contribute 10 to , and each table contributes at least 2, so once again .
Now, is achievable with eight groups of one, who first fill the counter seats, then the three tables. Thus, our answer is 16.