Show that the sum of the cubes of any three consecutive integers is divisible by nine. This original UKMT-style proof should cover negative integers as well as positive examples. Checking a few sums can suggest the pattern, but a proof needs to account for every possible remainder of the middle integer and explain where both factors of three arise.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send UKMT-S10-1129 and tell us your school year and question.
Centre the three integers around one variable
Write the integers as n minus one, n and n plus one. Expanding their cubes and adding cancels the opposite square and constant terms, leaving three n cubed plus six n. Factor this as three n times (n squared plus two). One factor of three is now explicit, but divisibility by nine still requires another factor of three.
Check the middle integer modulo three
If n is divisible by three, the product n times (n squared plus two) is already divisible by three. If n has remainder one or two, its square has remainder one, so n squared plus two is divisible by three. These cases cover every integer, including negative ones through the same remainder classes.
Combine the two factors without overclaiming
The factor outside the brackets supplies one three, and the preceding case split supplies another within the remaining product. Thus the original cube sum is divisible by nine. We do not require both n and n squared plus two to be divisible by three at once; either source is sufficient for the second factor.
Verify a negative and a small positive example
For the consecutive integers minus two, minus one and zero, the cube sum is minus nine. For zero, one and two, it is nine. Both are multiples of nine, so the statement is not limited to sums with a positive first term. The case n zero gives the sum zero, which is also divisible by nine.
Test a tempting stronger statement
The sum need not be divisible by twenty-seven: zero cubed plus one cubed plus two cubed is nine. Some triples do produce a larger power of three, but that depends on their particular middle value. A proof of a guaranteed divisor should not turn an occasional extra factor into a universal conclusion.
Keep the algebraic object unchanged
A sum of cubes is not the cube of the sum. Although both expressions involve three consecutive numbers, replacing one with the other introduces cross terms and changes the problem. The useful structure here is symmetric expansion around the middle, followed by a complete small-modulus case split rather than a long list of numerical trials.
Continue reading: UKMT Number Proof: An Equation Can Force Every Variable to Share a Factor.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send UKMT-S10-1129. 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
