A run of days that nets a multiple of n
Asked at Jump Trading, DE Shaw
A trader logs her daily profit or loss for consecutive days. Each day's figure is a whole number, and it may be positive, negative, or zero. The numbers can be anything at all.
Prove that there is always a stretch of one or more consecutive days whose profits and losses add up to an exact multiple of .
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.