Forty-five can be written as a sum of consecutive positive integers in several ways. Finding examples is easy; proving that the list is complete needs a systematic stopping rule. This original exercise counts representations with at least two terms, in increasing order, and treats a different starting value or length as a different representation. It is not an official SASMO question.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send SASMO-CONSECUTIVE-1127 and tell us your school year and question.
Use a length and a starting term
Let a be the first positive integer and k the number of terms. The sum is k times (2a+k-1) divided by two. Setting it equal to forty-five gives 90=k(2a+k-1), or a=(90/k-k+1)/2. A permitted length must give an integer a that is at least one. Divisibility alone is necessary but is not the whole test.
Find a finite range before listing candidates
For a fixed length k, the smallest positive consecutive sum is 1+2+...+k=k(k+1)/2. Since ten terms already sum to fifty-five, k cannot reach ten. With the requirement of at least two terms, only k from two through nine need checking. This bound is what lets a short table prove completeness instead of merely collecting a few successful examples.
Check the divisors and the parity condition
Among two through nine, only 2,3,5,6 and 9 divide ninety. The formula gives starting values 22,14,7,5 and 1 respectively, all positive integers. Lengths four, seven and eight cannot work because ninety divided by k is not an integer. Each accepted length still needs its starting value checked; the division test must not replace the original positive-integer requirement.
Write all five representations explicitly
The five sums are 22+23; 14+15+16; 7+8+9+10+11; 5+6+7+8+9+10; and 1+2+3+4+5+6+7+8+9. Their lengths are 2,3,5,6 and 9. Including the one-term representation forty-five would raise the count to six, but it is excluded by the stated wording. The convention belongs beside the final count.
See why zero changes a borderline case
Length ten would give a=0, producing 0+1+...+9=45. That is a valid consecutive nonnegative sum but not a consecutive positive sum. Allowing negative integers would change the possible lengths further. Terms such as positive, nonnegative, at least two and increasing should therefore be translated into algebraic restrictions before counting begins.
Reuse the method without memorising the answer
For another target N, replace ninety by 2N and bound k using k(k+1)/2 at most N. Then check integrality and positivity in the starting-term formula. The same structure gives both examples and an explanation that none were missed. Official organiser information is linked separately; the target, derivation and table here are original study material rather than a qualification or award claim.
Continue reading: SASMO Number Patterns: Why the First Consecutive Odd Numbers Add to a Square.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO-CONSECUTIVE-1127. 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
