Given any six integers written in a row, some nonempty consecutive block has a sum divisible by six. The word consecutive is essential: we are not allowed to select unrelated positions. This original proof exercise uses remainders and the pigeonhole principle, with an example showing why a repeated prefix remainder identifies exactly such a block.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send SASMO-PREFIX-1126 and tell us your school year and question.
Include the empty prefix as a real case
Write the numbers as a1 through a6. Define S0=0, and let Sk be the sum of the first k numbers. There are seven prefix sums, from S0 to S6. Including S0 lets the eventual block start at the first number; it also gives the count needed for the pigeonhole argument.
Place seven sums into six remainder classes
Every integer has one of six remainders modulo six: zero through five. Seven prefix sums cannot all have different remainders. Hence there are indices i and j with i less than j and Si and Sj in the same remainder class. This argument works even when some original integers are negative or repeated.
Subtract prefixes to recover a consecutive block
The difference Sj-Si is divisible by six. All terms before position i+1 cancel, leaving ai+1 through aj with no gaps. Since j is larger than i, the block contains at least one term. This cancellation is the reason prefix sums solve a consecutive-block problem rather than merely proving that some arbitrary subset works.
Track a concrete row without guessing
Consider 4,9,2,5,7,8. Its prefix sums are 0,4,13,15,20,27,35. The corresponding remainders are 0,4,1,3,2,3,5. Remainder three appears at positions three and five. Subtracting 15 from 27 gives twelve, so the fourth and fifth entries, five and seven, form the required consecutive block.
Notice what the proof does not promise
It does not say that the sum of all six entries is divisible by six; the example total is thirty-five. It also does not promise a block of exactly six terms, a unique block or a shortest block. If a question asks for one of those additional properties, it requires more analysis than the existence argument supplied here.
Generalise the count with care
For any positive integer n, n integers yield n+1 prefix sums and only n remainder classes, producing the same conclusion modulo n. Explain both counts and the subtraction step rather than citing the principle alone. Organiser information is linked separately; this example is not an official SASMO task and does not predict an award or contest score.
Continue reading: SASMO-Style Reasoning: Why 31 Numbers from 1 to 60 Force a Divisible Pair.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO-PREFIX-1126. Include your school year, country or competition region, experience and the question you want to discuss.

On your phone, use the button or save the QR image and scan it within WeChat.
Official information and further reading: Source 1
