Variables and Expressions

Writing Expressions for Consecutive, Even and Odd Integers

Represent runs of integers with a single letter, solve classic number problems and prove simple facts about odd and even.

Key takeaways

  • Each next consecutive integer is 1 larger, so one letter names the entire run.
  • Even integers have the form 2k and odd integers the form 2k + 1, with k any integer.
  • Both consecutive even and consecutive odd integers step up by 2.
  • A solution that is not an integer, or has the wrong parity, means no such run exists.
  • Using different letters for independent odd or even numbers keeps a proof general.

Consecutive integers can be written as n, n + 1, n + 2 and so on, where n is any integer. Consecutive even integers are n, n + 2, n + 4 with n even, and consecutive odd integers follow the same pattern with n odd. To force a number to be even or odd, write it as 2k or 2k + 1, where k is any integer.

These few forms solve a whole family of word problems and also let you prove general facts that no list of examples could establish.

The integers and their steps

The integers are the whole numbers and their opposites: ..., −3, −2, −1, 0, 1, 2, 3, .... Consecutive integers are neighbors in this list, such as 14, 15, 16 or −2, −1, 0.

An even integer is one that equals 2 times some integer. So 0 = 2 · 0 is even, and so is −8 = 2 · (−4). An odd integer is one more than an even integer. For instance, −3 = 2 · (−2) + 1 is odd.

Parity is the word for whether an integer is even or odd. Every integer has exactly one of the two.

Four forms worth knowing

One letter for a whole run of integers
Consecutive n, n + 1, n + 2 Consecutive even 2k, 2k + 2, 2k + 4 Consecutive odd 2k + 1, 2k + 3, 2k + 5 Multiples of 5 5k, 5k + 5, 5k + 10 Consecutive n, n + 1, n + 2 Consecutive even 2k, 2k + 2, 2k + 4 Consecutive odd 2k + 1, 2k + 3, 2k + 5 Multiples of 5 5k, 5k + 5, 5k + 10

In each form, n or k stands for an integer.

You may also write consecutive odd integers as n, n + 2, n + 4, as long as you remember to check that n turns out odd. The 2k + 1 form builds that condition in.

A frequent error is to write consecutive odd integers as n, n + 1, n + 3, adding odd amounts because the numbers are odd. Look at 7, 9, 11: the gaps are 2. The oddness comes from the starting value, and the step of 2 preserves it.

Sum problems

Find three consecutive integers whose sum is 72.

n + (n + 1) + (n + 2) = 72
3n + 3 = 72                    combine like terms
3n = 69                        subtract 3
n = 23                         divide by 3

The integers are 23, 24 and 25, and 23 + 24 + 25 = 72.

Now find three consecutive odd integers with sum 81. Let them be n, n + 2 and n + 4. Then 3n + 6 = 81, so n = 25. The numbers 25, 27 and 29 are all odd and add to 81.

Always answer the question that was asked. If the problem wants the largest integer, report 29, not n. The habit of checking a solution against the original words catches this.

The middle-number shortcut

When a run has an odd number of terms, centering the letter simplifies the algebra. Call three consecutive integers m − 1, m, m + 1. Their sum is 3m, since the −1 and +1 cancel.

So a sum of 72 gives m = 24 at once. For five consecutive integers m − 2 through m + 2, the sum is 5m. For three consecutive even or odd integers, use m − 2, m, m + 2, with sum 3m.

This shows something general: the sum of three consecutive integers is always a multiple of 3, and the sum of five is always a multiple of 5.

Four consecutive integers behave differently. Their sum is n + (n + 1) + (n + 2) + (n + 3) = 4n + 6, which is never a multiple of 4, although it is always even.

When no answer exists

Can three consecutive even integers add to 80?

Let them be n, n + 2, n + 4. Then 3n + 6 = 80, so n = 74/3. That is not an integer, so no such integers exist. The conclusion "there is no solution" is a complete and correct answer.

Parity can also rule out a result. Suppose the sum of three consecutive even integers is said to be 69. Solving gives 3n + 6 = 69 and n = 21. The value is an integer, but it is odd, so it does not satisfy the requirement. The sum of even numbers is always even, so a total of 69 was impossible from the start.

Checking conditions like these is part of estimating before solving.

Product problems

Products lead to quadratic equations. Find two consecutive integers whose product is 132.

n(n + 1) = 132
n² + n − 132 = 0
(n + 12)(n − 11) = 0
n = −12 or n = 11

Both work. The pairs are 11 and 12, and −12 and −11. If the problem says "positive integers," keep only 11 and 12.

A quick estimate helps: consecutive integers with product 132 should sit near √132, which is about 11.5. That points straight at 11 and 12.

For two consecutive odd integers with product 63, write n(n + 2) = 63, so n² + 2n − 63 = (n + 9)(n − 7) = 0. The solutions give 7 and 9, or −9 and −7.

Proving facts about odd and even

Algebra turns examples into proofs. To show that the sum of two odd integers is even, name them with different letters: 2a + 1 and 2b + 1.

(2a + 1) + (2b + 1)
= 2a + 2b + 2
= 2(a + b + 1)            twice an integer, so even

Using the same letter twice would only prove something about adding a number to itself. Using 2a + 1 and 2a + 3 would cover only consecutive odds.

The product of two odd integers is odd:

(2a + 1)(2b + 1)
= 4ab + 2a + 2b + 1
= 2(2ab + a + b) + 1      one more than an even integer

And the product of consecutive integers, n(n + 1), is always even, because one of the two neighbors must be even.

Patterns hiding in consecutive numbers

Expanding expressions for consecutive integers reveals neat regularities.

The difference between consecutive squares is (n + 1)² − n² = 2n + 1, an odd number equal to the sum of the two integers. For example, 9² − 8² = 81 − 64 = 17 = 9 + 8.

Take three consecutive integers m − 1, m, m + 1. The product of the outer two is (m − 1)(m + 1) = m² − 1, always one less than the square of the middle. Thus 19 · 21 = 400 − 1 = 399.

The sum of two consecutive odd integers, (2k + 1) + (2k + 3) = 4k + 4, is always a multiple of 4. For instance, 13 + 15 = 28.

Try inventing a conjecture from a few cases, then writing it with a letter. If the algebra confirms it, you have proved it for every integer, a step beyond checking a few answers.

Multiples and other spacings

The same idea handles any fixed step. Consecutive multiples of 7 are 7k, 7k + 7, 7k + 14. If three of them add to 105, then 21k + 21 = 105, so k = 4 and the numbers are 28, 35 and 42.

Integers that leave a remainder of 1 when divided by 4 have the form 4k + 1, such as 5, 9 and 13. Consecutive page numbers, house numbers on one side of a street that step by 2, and years of a four-year cycle all fit the template of a start plus equal steps. That template is the beginning of linear functions as steady change.

Conditions that compare the numbers

Some puzzles relate the numbers to one another instead of giving a total. Find three consecutive even integers where the largest equals the sum of the other two.

n + 4 = n + (n + 2)
n + 4 = 2n + 2
2 = n

The integers are 2, 4 and 6, and indeed 2 + 4 = 6. Since n = 2 is even, the answer is valid.

Another example uses squares. Find consecutive positive integers whose squares add to 85. Then n² + (n + 1)² = 85. Expanding gives 2n² + 2n + 1 = 85, so n² + n − 42 = 0, which factors as (n + 7)(n − 6) = 0. The positive solution is n = 6, so the integers are 6 and 7. Check: 36 + 49 = 85.

Remember to square the whole expression n + 1. Writing n² + 1 for the second square would produce a different equation and a wrong answer, for the reason given in why a squared sum has a middle term.

Run lengths and totals

For a longer run, you rarely need to list every term. A run of k consecutive integers starting at n adds up to the number of terms times the average of the first and last, which is k(2n + k − 1)/2.

Test it on 5, 6, 7, 8: here k = 4 and n = 5, so the formula gives 4 · 13 / 2 = 26, matching 5 + 6 + 7 + 8.

If k is odd, the average is the middle integer and the total is a multiple of k. If k is even, the average falls halfway between two integers. This is a small case of steady change at work: each term rises by the same amount, so the terms balance around their center.

Negative runs

Nothing in these forms requires positive numbers. If three consecutive integers add to −48, then 3n + 3 = −48, so n = −17. The integers are −17, −16 and −15, listed from smallest to largest. Note that n is the smallest, so it has the largest distance from zero.

A sum of zero is possible too: −1, 0 and 1.

Setting up a problem step by step

  1. Decide which kind of run the problem describes: integers, evens, odds or multiples.
  2. Write each number in terms of one letter, in order.
  3. Translate the condition, with parentheses around each number that is multiplied or subtracted.
  4. Solve the equation.
  5. Check that the letter's value is an integer of the right kind, then answer in words.

Step 3 deserves care. "Twice the second" means 2(n + 1), not 2n + 1. A helpful companion is translating phrases into expressions.

For example, find consecutive integers where twice the smaller plus three times the larger is 58. Then 2n + 3(n + 1) = 58, so 5n = 55 and n = 11. Check: 22 + 36 = 58.

Common questions

Is zero even?

Yes. Zero equals 2 · 0, so it fits the form 2k.

Can fractions be consecutive?

The word "consecutive" in these problems refers to integers. Between any two fractions lie others, so a fraction has no immediate next neighbor.

Should I write 2k + 1 or 2k − 1 for odd numbers?

Both describe all odd integers as k ranges over the integers. If you want k = 1, 2, 3 to produce 1, 3, 5, then 2k − 1 is the convenient choice.

Written for 4Algebra with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 35 articles in Variables and Expressions →

Latest news on this topic