SASMO Proof Practice: Prefix Sums Find a Consecutive Block Divisible by Six

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.

Scan to contact Hanlin on WeChat. Send SASMO-PREFIX-1126.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

SASMO Reasoning Practice: Opposite Pairing Can Minimise a Sum of Products

Pair each of the numbers 1,3,5 with exactly one of 2,4,6, using every number once. What is the smallest possible sum of the three products? This original extension activity for interested SASMO learners introduces an exchange argument. It is not a reproduced contest question or a statement that every grade studies the same method.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send SASMO-REARRANGEMENT-1125 and tell us your school year and question.

Compare two candidate arrangements

Pairing both lists in increasing order gives 1 times 2 + 3 times 4 + 5 times 6 = 44. Pairing them in opposite order gives 1 times 6 + 3 times 4 + 5 times 2 = 28. Finding 28 shows that the minimum is at most 28. It does not yet prove that one of the other four pairings cannot do better.

Investigate a two-pair swap

Let a be smaller than b, and c smaller than d. The same-order sum is ac + bd, while the crossed sum is ad + bc. Subtracting the crossed sum from the same-order sum gives (b-a)(d-c), which is positive for distinct increasing values. Thus crossing these two pairs reduces the total. This is an algebraic reason, rather than a pattern guessed from one set of numbers.

Apply the swap to the full arrangement

Arrange the first list in increasing order. If the assigned partners contain an increasing pair, swapping those two partners reduces the sum while leaving every other product unchanged. A minimum therefore cannot contain such an increasing pair when all the numbers are distinct. Its partners must be in decreasing order, which is exactly 6,4,2 for this problem.

Verify all six totals independently

The partner orders (2,4,6), (2,6,4), (4,2,6), (4,6,2), (6,2,4), (6,4,2) give totals 44,40,40,32,32,28. The exhaustive check agrees with the exchange proof. Enumeration is manageable for three pairs, while the swap argument explains what will remain true for longer lists without listing every permutation.

Notice what the objective actually is

The aim is the sum of products with a one-to-one pairing. It is not the sum of the original six numbers, which never changes, nor the product of all six numbers, which also never changes. If the task changes to minimising the largest individual product, the same proof does not automatically settle it: a different objective needs a fresh comparison.

Use strictness carefully

With repeated values, a swap may leave the sum unchanged, so more than one arrangement can attain the minimum. The factorised difference still explains that case because one factor can be zero. A good proof states which quantities are ordered and what an allowed swap preserves. That habit makes a short numerical solution into a reusable reasoning method, with the organiser resource below available for official practice context.

Continue reading: SASMO Practice: Add All the Numbers Without Listing Every Number.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO-REARRANGEMENT-1125. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send SASMO-REARRANGEMENT-1125.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

Online Customer Service
Contact Customer Service