Sub topic 5
Consecutive Integers and Alternating Parity
Prerequisites and Scope
This chapter assumes you know the definition of an integer, can do arithmetic with negative numbers, and understand divisibility and remainder. It also assumes you have seen the parity rules for sums and products from the earlier chapters: even + even, odd + odd, and even + odd give even, even, and odd. A product is odd only when every factor is odd.
Here we apply those rules to consecutive integers. These are integers that follow one another with no gap, such as 7, 8, 9 or -2, -1, 0, 1. The GRE uses them to ask "must be" questions about sums, products, and expressions built from a single unknown integer.
The Core Pattern: Parity Alternates
Between any integer n and the next integer n + 1, parity always changes. If n is even, n + 1 is odd. If n is odd, n + 1 is even. This holds for negative integers and for zero too. Zero is even, so -1, 0, 1 reads odd, even, odd.
Starting from n, the parities are fixed by the parity of n:
| Term | If n is even | If n is odd |
|---|---|---|
| n | even | odd |
| n + 1 | odd | even |
| n + 2 | even | odd |
| n + 3 | odd | even |
Two consequences follow. Integers two apart share parity, because adding 2 never changes it. Integers an odd distance apart have opposite parity, and integers an even distance apart have the same parity.
If n were odd, every label in the diagram would flip. The alternation stays the same.
Sums of Consecutive Integers
Two consecutive integers
n and n + 1 always contain exactly one even and one odd integer. Their sum is therefore always odd. Algebraically, n + (n + 1) = 2n + 1, which has the form "even + 1".
Three consecutive integers
The pattern depends on where you start. If n is even, you have even, odd, even, so there are two evens and one odd. If n is odd, you have odd, even, odd, so there are two odds and one even. The sum of three consecutive integers is n + (n + 1) + (n + 2) = 3n + 3 = 3(n + 1). Its parity equals the parity of n + 1, so it is not fixed. Compare 1 + 2 + 3 = 6 (even) with 2 + 3 + 4 = 9 (odd).
Four consecutive integers
Four consecutive integers always contain two evens and two odds. The sum is n + (n + 1) + (n + 2) + (n + 3) = 4n + 6, which is always even. It is also never divisible by 4, because 4n + 6 leaves remainder 2 when divided by 4.
General rule
The sum of an even count of consecutive integers is even only if the count is a multiple of 4. For counts that are 2 mod 4, the sum is odd. Counts that are odd give a sum whose parity depends on the starting value. You do not need to memorize this. Pair up the terms, or write the sum algebraically, and read off the parity.
Products of Consecutive Integers
Any two consecutive integers include one even integer. Because a product with an even factor is even, the product n(n + 1) is always even. The same reasoning covers longer runs: any product of two or more consecutive integers is even, since at least one factor is even.
This gives a quick check. Suppose a problem says that n is an integer and asks whether n(n + 1) is even. The answer is "always", whatever n is. It also explains why n² + n is always even, since n² + n = n(n + 1).
for n in range(-4, 5):
print(n, n * (n + 1) % 2, (n + (n + 1) + (n + 2)) % 2)The second column is 0 for every n, so n(n + 1) is always even. The third column switches between 0 and 1, showing that the sum of three consecutive integers has no fixed parity.
Expressions Built From One Integer
A common GRE format gives an unknown integer n and asks about an expression. The method is to find the parity of each piece and combine the pieces.
- Decide whether the expression's parity depends on n at all.
- If it might, test n even and n odd. Each case needs only one pass through the rules.
Take 2n + 1. The term 2n is even for every integer n, and even + 1 is odd. So 2n + 1 is always odd, and this is how an arbitrary odd integer is written.
Take n² + n + 1. Since n² + n = n(n + 1) is always even, adding 1 always yields an odd number. The expression is always odd, even though it looks like it depends on n.
Take n + 3. Adding an odd number flips parity. This expression is even when n is odd and odd when n is even, so its parity is not fixed.
Differences and Negative Values
Subtraction behaves like addition for parity, because subtracting b has the same parity effect as adding b. So (n + 1) - n = 1 is odd, and (n + 2) - n = 2 is even.
Negative integers follow the same alternation. The sequence -3, -2, -1, 0, 1 reads odd, even, odd, even, odd. A frequent slip is to treat 0 as neither even nor odd, or to forget that -1 is odd. Both mistakes break the alternation and give wrong answers.
Counting Evens and Odds in a Range
To count integers in a consecutive run, use "last minus first plus 1". From 5 to 12 inclusive, the count is 12 - 5 + 1 = 8. Because parity alternates, an even-length run splits evenly. Here 4 of the integers are odd (5, 7, 9, 11) and 4 are even (6, 8, 10, 12).
An odd-length run has one extra of whichever parity starts and ends it. From 5 to 11 there are 7 integers. They are odd, even, odd, even, odd, even, odd, so 4 odd and 3 even. The extra belongs to the parity of the endpoints.
Consecutive Even and Consecutive Odd Integers
"Consecutive even integers" means even integers in order, such as 4, 6, 8. Consecutive odd integers are 5, 7, 9. In both cases the gap between neighbors is 2, so they are written n, n + 2, n + 4 where n has the stated parity. All the terms share that parity.
This changes the parity results above. The sum of three consecutive even integers is even + even + even, which is even. The sum of three consecutive odd integers is odd + odd + odd, which is odd. The sum of two consecutive odd integers is odd + odd, which is even.
A frequent error is to use n, n + 1, n + 2 for "consecutive even integers". That describes consecutive integers, which alternate. Read the wording of the problem for the word "even" or "odd".
Worked Examples
Example 1: a must-be-true question
n is an integer. Which of these must be even? (a) n + 2, (b) n(n + 3), (c) 2n + 3.
- (a) n + 2 has the same parity as n, so it is not always even.
- (b) n and n + 3 differ by 3, which is odd, so they have opposite parity. One of them is even, so the product is always even.
- (c) 2n + 3 is even + odd, which is always odd.
Only (b) must be even.
Example 2: sum of consecutive integers
The sum of five consecutive integers is odd. What is the parity of the smallest one?
Write the sum as n + (n + 1) + (n + 2) + (n + 3) + (n + 4) = 5n + 10. The 10 is even, so the sum has the parity of 5n, which is the parity of n. The sum is odd, so n is odd. Check with n = 3: 3 + 4 + 5 + 6 + 7 = 25, which is odd.
Example 3: a counterexample
Claim: if the sum of three consecutive integers is even, the largest is even. Test n = 1: the integers are 1, 2, 3, with sum 6, which is even, and the largest, 3, is odd. The claim fails. The sum is even when n + 1 is even, which makes n odd and n + 2 odd.
Common Errors
- Assuming three consecutive integers always sum to the same parity. It depends on the start.
- Using n, n + 1, n + 2 for consecutive even or odd integers.
- Forgetting that zero is even, which breaks runs that cross zero.
- Concluding that n(n + 2) is always even. The factors share parity, so the product is odd when n is odd. Test n = 3: 3 · 5 = 15.
- Treating "consecutive" as positive. Negative runs alternate the same way.
Exercise
n is an integer. Is n(n + 1)(n + 2) always even? Is n(n + 2) always even? Explain, and give a test value for any answer that is "no".
Show answer
n(n + 1)(n + 2) is always even, because it contains two consecutive integers n and n + 1, and one of them is even. n(n + 2) is not always even. When n is odd, n + 2 is also odd, so the product is odd. For example, n = 3 gives 3 · 5 = 15, which is odd.
Exercise
The sum of four consecutive integers is 38. Find the integers and explain why the sum could never be odd.
Show answer
The sum is 4n + 6 = 38, so n = 8 and the integers are 8, 9, 10, 11. Check: 8 + 9 + 10 + 11 = 38. Four consecutive integers always contain two evens and two odds, so the sum is even + even + odd + odd, which is even. Algebraically 4n + 6 is always even.
Exercise
How many odd integers are there from -7 to 12 inclusive?
Show answer
The run has 12 - (-7) + 1 = 20 integers. It starts with an odd integer (-7) and ends with an even integer (12), so the parities alternate evenly and exactly half are odd. The answer is 10.