Q
Suppose that I place n items into k boxes. What is the largest number m such that I can be guaranteed that one of the boxes contains at least m items?
First off, I'm not completely understanding the question. "The largest number m such that I can be guaranteed that one of the boxes contains at least m items?" The largest number m? Why the largest? If you have at least m items, how can it be the largest?
A
Bogus solution: we can put $\frac{n - 1}{k}$ balls into each of the k boxes. This accounts for $k (\frac{n - 1}{k}) = n - 1$ of the balls. There is 1 ball left over, which must go in some box, and thus some box must contain at least $\frac{n - 1}{k} + 1$ balls. Seems reasonable, and works with n = 25 and k = 6. So why is this not quite correct?
The problem is that $\frac{n - 1}{k}$ might not be an integer. The best we can do in out initial step is to put $\lfloor{\frac{n - 1}{k}}\rfloor$ balls in each box. Then our leftover ball(s) ensure that at least on box will have $\lfloor{\frac{n - 1}{k}}\rfloor + 1$ balls.
What I'm not understanding here, is why $n - 1$ is used in $\lfloor{\frac{n - 1}{k}}\rfloor$. I can see that it doesn't always work with n or $n - 2$, but what is it about $n - 1$ that makes it work? Is it so that you can say that at least one box has at least m balls?
Also, let's say that I have 7 balls and 5 boxes. The pigeonhole principle works when you put each ball in a box, not when you put all balls in one box (or am I wrong?) My question is, after 5 balls have been put into 5 boxes, and we have two balls left, do the two leftover balls also still need to be distributed, or can I put the two balls into one box?
Because the generalized Pigeonhole Prinicple states that: if we place n balls into k boxes, then at least one box must contain at least $\lfloor \frac{n - 1}{k} \rfloor + 1$ balls.
In the case of 7 balls and 5 boxes, this seems to imply to me that the two leftover balls can be deposited in one box. If we place 7 balls into 5 boxes, then at least one box must contain at least $\lfloor \frac{7 - 1}{5} \rfloor + 1 = 2$ balls. This statement would therefore also be true if one box contains 3 balls.