Moved over from StackExchange.
You are taken to play a basketball game where you can shoot basketballs at n slots using a machine that is equally likely to shoot the balls into those n slots. You can stop whenever you see fit and get a reward based on your performance. For every slot with only one ball, you get \$1, for every slot with k balls (k>1), you lose \$k, empty slots don't count. What's your strategy to maximize your reward and what will your maximum reward be?
After some discussion, I think the stopping rule should be that you quit once $n\leq2x_1+4x_2$, where $x_1$ and $x_2$ are numbers of slots with one ball and more than one ball, respectively.
I'm having a hard time getting the maximum expected reward.