I recently read this problem
A bag contains $500$ beads, each of the same size, but in $5$ different colors. Suppose there are $100$ beads of each color and I am blindfolded. What is the least number of beads I must pick before I can be sure there are $5$ beads of the same color among the beads I have picked blindfolded?
My intuitive answer was $401$, because the worst case would be picking $100$ beads of $4$ of the colors, then picking $1$ of the last remaning color. However, the given answer was $21$. Could someone explain how this answer was achieved?
You probably read the question wrong. You need $5$ beads of the same color. This means you can get $4$ beads of each color maximum to not-have $5$ beads that are the same color (which is $20$ beads) and then the next one makes sure you have $5$ beads of the same color (that was the $21$st bead).