Sums of consecutive numbers

Ask a friend to add five numbers in a row starting anywhere — say 14+15+16+17+1814+15+16+17+18 — and they will reach for a calculator. You do not need one. Consecutive numbers like these hide a pattern: their sum always collapses to a short algebraic expression built from just two facts, how many numbers there are and where the run starts. This is the heart of the Number Play chapter's approach to numbers — instead of adding term by term, you write the run algebraically, simplify, and read off the answer (or run the logic backwards to test whether a given total is even possible at all). The same idea also tells you, without checking a single case, that certain totals like 9191 can never be written as a sum of four consecutive numbers. That is the payoff: a few lines of algebra replace a wall of trial and error.

The core insight

The sum of kk consecutive integers starting at nn is always S=kn+k(k−1)2S = kn + \dfrac{k(k-1)}{2}, so both the sum and the question "can this total be reached?" reduce to solving one simple linear equation.

The core idea

A run of consecutive numbers is just a list of whole numbers where each one is one more than the last. If the smallest number is nn and there are kk of them, the run is

n, n+1, n+2, …, n+(k−1).n,\ n+1,\ n+2,\ \ldots,\ n+(k-1).

Adding these up, the nn's contribute knkn in total, and the extra bits 0,1,2,…,(k−1)0, 1, 2, \ldots, (k-1) add up separately using the well-known triangular-number formula. That gives the general rule:

S=kn+k(k−1)2.S = kn + \dfrac{k(k-1)}{2}.

where: SS is the sum, kk is the number of terms in the run, and nn is the smallest (first) term. A second, often quicker way to say the same thing is sum equals number of terms times the average of the first and last term:

S=k×n+(n+k−1)2.S = k \times \dfrac{n + (n+k-1)}{2}.

Two shortcuts are worth knowing by heart. First, when kk is odd, the run has one exact middle number mm, and the terms above and below it cancel out in pairs, so S=k×mS = k \times m — no formula needed, just spot the middle. Second, the sum of the first nn natural numbers is the special case 1+2+⋯+n=n(n+1)21 + 2 + \cdots + n = \dfrac{n(n+1)}{2}. This links straight back to parity (odd/even) reasoning from the same chapter: if kk is odd, S=k×mS = k \times m shows the sum is automatically a multiple of kk. If kk is even, there is no single middle term, and you must fall back on the full formula S=kn+k(k−1)2S = kn + \dfrac{k(k-1)}{2} — a common place students slip up. Why bother with algebra when you could just add the numbers by hand? For a five-term run like 1414 to 1818, direct addition is not hard. But the real power shows up when the question is reversed: given a target total, is it reachable as a sum of, say, seven consecutive numbers, and if so, which seven? Trying every possible starting point by guess-and-check could take a while, especially for large totals. Writing S=kn+k(k−1)2S = kn + \dfrac{k(k-1)}{2} turns that search into one linear equation in nn — solve it once, and either you get a clean whole number (the run exists, and you can write it out immediately) or you get a fraction or negative value (the run does not exist, proven instantly, with no case-checking at all). This is exactly the "explain, don't just observe" habit the Number Play chapter is built around: a pattern spotted by trial and error becomes a provable rule once it is written algebraically.

Figure
A number line showing five consecutive numbers fourteen to eighteen with the middle number sixteen highlighted and the sum eighty labelled below
Five consecutive numbers: pair around the middle 14 15 16 17 18 14 and 18 average to 16, so do 15 and 17 — five pairs of the middle value S = k times m = 5 times 16 = 80
Derivation ADeriving the sum formula for consecutive numbers

The goal is to show, from scratch, that a run of kk consecutive integers starting at nn always sums to S=kn+k(k−1)2S = kn + \dfrac{k(k-1)}{2}, using nothing more than writing out the terms and grouping like parts, so that this one formula can answer both "what is the sum" and "is a given total achievable" questions without checking cases one by one.

Step 1. Write the run explicitly. With first term nn and kk terms, the numbers are n, n+1, n+2, …, n+(k−1)n,\ n+1,\ n+2,\ \ldots,\ n+(k-1) — each term is nn plus an offset that runs from 00 up to k−1k-1.

Step 2. Split the sum into two separate sums. Adding all kk terms, S=(n+n+⋯+n)⏟k times+(0+1+2+⋯+(k−1))=kn+(0+1+2+⋯+(k−1))S = \underbrace{(n+n+\cdots+n)}_{k \text{ times}} + (0+1+2+\cdots+(k-1)) = kn + (0+1+2+\cdots+(k-1)). The first part is just nn added to itself kk times, giving knkn.

Step 3. Evaluate the offset sum using the triangular-number result. The sum 0+1+2+⋯+(k−1)0+1+2+\cdots+(k-1) is the sum of the first (k−1)(k-1) natural numbers, which by the standard formula m(m+1)2\frac{m(m+1)}{2} (with m=k−1m=k-1) equals (k−1)k2=k(k−1)2\dfrac{(k-1)k}{2} = \dfrac{k(k-1)}{2}.

Step 4. Combine both pieces. Substituting back, S=kn+k(k−1)2S = kn + \dfrac{k(k-1)}{2} — the general formula. Setting k=5,n=14k=5, n=14 gives S=5(14)+5×42=70+10=80S = 5(14) + \dfrac{5\times4}{2} = 70+10=80, matching the middle-term shortcut exactly, which confirms the derivation. Notice the formula only ever needs two pieces of information, the starting number nn and the count kk — you never have to write out and add every term by hand once the formula is trusted.

Worked example

Find the sum of five consecutive numbers starting at 14, and check it two ways.

Step 1. List the run: 14,15,16,17,1814, 15, 16, 17, 18, so k=5k=5 terms starting at n=14n=14.

Step 2. Since k=5k=5 is odd, spot the middle term: the 3rd number is 1616. So S=k×m=5×16=80S = k \times m = 5 \times 16 = 80.

Step 3. Verify with the general formula: S=kn+k(k−1)2=5(14)+5×42=70+10=80S = kn + \dfrac{k(k-1)}{2} = 5(14) + \dfrac{5 \times 4}{2} = 70 + 10 = 80. Both methods agree.

Final answer: S=80S = \mathbf{80}.

Competitive stretch

A student claims the sum of four consecutive numbers is 90. Check it, and then decide whether 91 is possible.

Step 1. Let the four numbers be n,n+1,n+2,n+3n, n+1, n+2, n+3; their sum is S=4n+(0+1+2+3)=4n+6S = 4n + (0+1+2+3) = 4n+6.

Step 2. Set 4n+6=904n+6=90, so 4n=844n=84 and n=21n=21 — a whole number, so it works: 21+22+23+24=9021+22+23+24=90. Yes, 90 is achievable.

Step 3. Try the same equation for 9191: 4n+6=91⇒4n=85⇒n=21.254n+6=91 \Rightarrow 4n=85 \Rightarrow n=21.25, not a whole number, so 91 is impossible. In fact 4n+64n+6 is always even, so no sum of four consecutive numbers can ever be odd — a parity rule that instantly rules out every odd target.

Common traps

  • Forgetting that an even count of terms (kk even) has no single middle number — students wrongly pick just one of the two central numbers instead of using the full formula.
  • Assuming every whole number can be written as a sum of consecutive numbers; numbers that are pure powers of 22 (like 1616 or 3232) cannot be written as a sum of two or more consecutive positive integers.
  • Confusing "consecutive numbers" (gap of 11) with "consecutive even" or "consecutive odd" numbers (gap of 22), which changes the formula.
  • Solving for nn but forgetting to check it is a whole (and, if required, positive) number — a fractional or negative nn means the target sum cannot be built that way.
  • Applying the odd-kk middle-term shortcut S=k×mS = k \times m when kk is actually even — always count the terms first before deciding which method to use.
  • Mis-stating the offset sum in the derivation as 1+2+⋯+k1+2+\cdots+k instead of 0+1+2+⋯+(k−1)0+1+2+\cdots+(k-1) — the run starts at offset 00 (the first term itself), so the last offset is k−1k-1, not kk.

Ask the tutor: Want to see why powers of two can never be written as a sum of consecutive positive integers, or try setting up the equation for a trickier target sum yourself?

Why does the middle-term trick only work when the number of terms is odd?

With an odd count there is one number sitting exactly in the middle of the run, and every term above it is matched by a term the same distance below it, so those pairs cancel to leave just kk copies of the middle value. With an even count, the two central numbers straddle the true middle, so there is no single number to multiply by kk — you must average the two central terms, or simply use the general formula S=kn+k(k−1)2S = kn + \dfrac{k(k-1)}{2} instead.

How do I check quickly whether a given total can be written as a sum of a fixed number of consecutive integers?

Set up the equation S=kn+k(k−1)2S = kn + \dfrac{k(k-1)}{2} with SS and kk known, and solve for nn. If nn comes out as a whole number (and positive, if the numbers must be positive), the total is achievable and you can list the run starting at nn. If nn is fractional or negative, that particular count kk cannot reach the target — no need to try adding numbers by trial and error.

Is there a link between sums of consecutive numbers and sums of consecutive odd numbers?

Yes, though they are different identities. Ordinary consecutive numbers (gap of 11) follow S=kn+k(k−1)2S = kn + \dfrac{k(k-1)}{2}. A separate, well-known pattern is that the sum of the first nn odd numbers, 1+3+5+⋯1+3+5+\cdots, always equals the perfect square n2n^2. Both are examples of the same Number Play habit: writing a pattern algebraically and simplifying, rather than adding term by term.

Before this

Where this leads