Introduction
At first glance, adding consecutive numbers seems to produce a different total every time. Yet one number can often be reached in several ways: 18 is both 5 + 6 + 7 and 3 + 4 + 5 + 6. These patterns are not coincidences. A simple formula explains why they happen, and a link to the factors of a number reveals which totals have the most representations.
- Why different runs can have the same sum
- A formula for consecutive-number sums
- Why odd and even lengths behave differently
- What factors have to do with the answer
- How the divisor pattern emerges
- A practical way to find the sequences
- Consecutive integers are not always positive
- Why the pattern is useful
- Conclusion
Why different runs can have the same sum
A sequence of consecutive integers increases by 1 at each step. To find its sum, pair the first term with the last, the second with the second-to-last, and so on. Each pair has the same total, so the sum is closely connected to the number of terms and the average of the first and last terms.
For example, the numbers 5, 6, and 7 have an average of 6. There are three terms, so their sum is 3 × 6 = 18. The numbers 3, 4, 5, and 6 have an average of 4.5, and four terms, so their sum is 4 × 4.5 = 18 as well. A shorter sequence with a higher average can balance a longer sequence with a lower one.
This is the central idea: different consecutive sequences can have the same total when their lengths and averages balance out. The arithmetic is straightforward, but the possible matches are governed by useful patterns.
A formula for consecutive-number sums
Suppose a sequence begins with a positive integer a and contains k terms. Its terms are a, a + 1, a + 2, and so on, ending at a + k − 1. The sum is:
Sum = k(2a + k − 1) ÷ 2
This formula comes from multiplying the number of terms by the average of the first and last terms. The average is [a + (a + k − 1)] ÷ 2, which simplifies to (2a + k − 1) ÷ 2.
For a run of six numbers beginning at 3, the formula gives 6(2 × 3 + 6 − 1) ÷ 2 = 6 × 11 ÷ 2 = 33. Checking directly, 3 + 4 + 5 + 6 + 7 + 8 also equals 33.
To see why another run might match, set the formula equal to a target total. For instance, a sequence of k consecutive numbers sums to 18 when its average is 18 ÷ k. If k is 3, the average must be 6, giving 5, 6, 7. If k is 4, the average must be 4.5, giving 3, 4, 5, 6. Both averages fit sequences of consecutive integers.
Why odd and even lengths behave differently
The position of the average explains an important distinction. A sequence with an odd number of terms has one middle term, and that term is also the average. For example, in 8 + 9 + 10 + 11 + 12, the middle number is 10. Since there are five terms, the total is 5 × 10 = 50.
A sequence with an even number of terms has no single middle term. Instead, its average falls halfway between the two central integers. In 3 + 4 + 5 + 6, the central pair is 4 and 5, so the average is 4.5. Four terms multiplied by 4.5 give 18.
These facts provide a quick test for a proposed sequence. If a total is divided by an odd length, the result must be a whole-number middle term. If it is divided by an even length, the average must end in .5 so that the terms on either side can be integers. Not every length will meet the relevant condition.
What factors have to do with the answer
There is a deeper way to count representations of a positive whole number. When we count sums of consecutive positive integers, including the number on its own as a one-term sequence, the number of possible representations equals the number of odd positive divisors of that total.
A divisor is a whole number that divides another whole number without a remainder. For example, the odd positive divisors of 45 are 1, 3, 5, 9, 15, and 45, so 45 has six representations as a sum of one or more consecutive positive integers.
Here they are:
45
22 + 23
14 + 15 + 16
7 + 8 + 9 + 10 + 11
5 + 6 + 7 + 8 + 9 + 10
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9
The first representation is just 45 by itself. The other five use at least two terms. This is why a question asking for “ways to write a number as consecutive positive integers” should make clear whether a single term counts.
Why powers of two are special
A power of two is a number such as 1, 2, 4, 8, or 16, formed by multiplying 2 by itself one or more times. These numbers have only one odd positive divisor: 1. The divisor rule therefore says each has just one representation as a sum of consecutive positive integers when a single term is allowed. For example, 16 can be written as 16, but it cannot be split into a longer run of consecutive positive integers.
Other totals have more odd divisors and therefore more possible runs. The number 18 has odd divisors 1, 3, and 9, giving three representations: 18; 5 + 6 + 7; and 3 + 4 + 5 + 6. This matches the examples from the opening. The rule turns a search through many possible sequences into a question about divisibility.
How the divisor pattern emerges
The sum formula can be rearranged to reveal why divisors matter. If a sequence has k terms and total N, then:
2N = k(2a + k − 1)
So the length k must be a factor of 2N, and the remaining factor must allow the starting value a to be a positive integer. The odd factors of N are especially important because, after the parity and positivity conditions are taken into account, they correspond to the different allowable lengths and positions of the runs.
For a compact illustration, consider 15. Its odd divisors are 1, 3, 5, and 15. They correspond to these four runs:
15
7 + 8
4 + 5 + 6
1 + 2 + 3 + 4 + 5
This connection is useful as a counting rule, but it does not mean every divisor is itself one of the terms in a sequence. The divisors help identify how many representations exist; the actual starting number and length are determined by the sum formula.
A practical way to find the sequences
For a modest target, you can test possible lengths directly. Choose a length k, divide the total by k to find the required average, and check whether that average could sit at the centre of a consecutive run.
If the length is odd, the average must be an integer. For a length of five, a target of 50 requires an average of 10, producing 8 + 9 + 10 + 11 + 12. If the length is even, the average must be halfway between two integers. For a length of four, the target 18 requires an average of 4.5, producing 3 + 4 + 5 + 6.
You must also make sure the first term is positive if the question requires positive integers. A mathematically possible sequence that starts at zero or below does not count under that convention. Testing lengths only up to a sensible limit is usually enough: as a run gets longer, its smallest possible positive-integer sum grows. The sum of the first k positive integers is k(k + 1) ÷ 2, so no longer run can fit a target smaller than that minimum.
Consecutive integers are not always positive
The counting rule above relies on a specific convention: every term is a positive integer. If negative integers or zero are allowed, the set of possible runs changes. For instance, 3 can be written as 3, but also as −1 + 0 + 1 + 2 + 3. That additional representation is excluded when only positive terms are permitted.
For a fixed total, allowing zero and negative terms still does not automatically mean there are infinitely many representations; the possible lengths are constrained by the arithmetic. However, the simple odd-divisor count is no longer the right rule in the same form. Before solving a problem, check whether it asks for positive integers, non-negative integers, or integers of any sign.
Why the pattern is useful
These sums make a good introduction to several mathematical ideas at once. The pairing method shows how averages can simplify addition. The length test demonstrates how parity—whether a number is even or odd—affects the structure of a sequence. The divisor connection shows that a question about arranging numbers can also be answered by examining the factors of a total.
The pattern can also help check arithmetic. If someone claims that a number has a certain number of representations as consecutive positive integers, counting its odd divisors gives an independent way to test the claim. For example, a total with only one odd divisor cannot have several distinct positive-integer runs, including the one-term run.
Most importantly, the examples show that a sum is not determined by its number of terms alone. Changing the length changes the average required to reach the same total. Once both quantities are considered together, apparently surprising matches become predictable.
Conclusion
Different runs of consecutive numbers reach the same total because their lengths and averages can balance: a shorter run may have a higher average, while a longer one has a lower average. For positive integers, the number of representations, counting the number itself, matches the number of its odd divisors. That link explains why some totals have several forms while powers of two have only one.

