Sub topic 2
Even and Odd Rules
This chapter assumes you can do integer arithmetic with negatives and zero, and that you can read exponent notation such as 2^3. It also assumes you know the remainder idea from long division. Parity is the first integer property the GRE tests, and it is one of the cheapest to use once you trust the rules.
What parity means
An integer is even if it is divisible by 2. It is odd if it is not. Every integer is exactly one of the two, so the property has two values, called its parity.
Equivalent definitions:
- An even integer has the form 2k for some integer k.
- An odd integer has the form 2k + 1 for some integer k.
- An even integer leaves remainder 0 when divided by 2. An odd integer leaves remainder 1.
The GRE's edge cases follow from these definitions.
- Zero is even. 0 = 2 × 0, and 0 is divisible by 2.
- Negative integers have parity too. -6 is even and -7 is odd.
- Only integers have parity. 2.5 and 1/2 are neither even nor odd.
- Consecutive integers alternate parity. Between any two consecutive integers, exactly one is even.
The remainder-1 definition holds for negatives under the GRE's convention that the remainder is never negative. For example, -7 = 2(-4) + 1, so -7 is odd. This is the same convention as n = dq + r with 0 ≤ r < d, which a later chapter covers.
The core rules
All of the rules come from writing integers as 2a or 2b + 1 and expanding. For example, (2a + 1) + (2b + 1) = 2(a + b + 1), which is even.
| Operation | Result |
|---|---|
| even + even | even |
| odd + odd | even |
| even + odd | odd |
| even - even, odd - odd | even |
| even - odd, odd - even | odd |
| even × even | even |
| even × odd | even |
| odd × odd | odd |
Subtraction has the same parity as addition, because subtracting b changes the parity of a in the same way as adding b. In general, a + b and a - b always have the same parity. A shortcut that covers the whole table: a sum or difference is even exactly when the two terms have the same parity, and a product is odd only when every factor is odd.
You can check these rules by testing sample values, including negatives and zero:
def parity(n):
return "even" if n % 2 == 0 else "odd"
evens = [-4, 0, 2, 10]
odds = [-5, -1, 3, 9]
sums = [("even+even", evens, evens), ("odd+odd", odds, odds), ("even+odd", evens, odds)]
for name, xs, ys in sums:
print(name, {parity(x + y) for x in xs for y in ys})
products = [("even*even", evens, evens), ("odd*odd", odds, odds), ("even*odd", evens, odds)]
for name, xs, ys in products:
print(name, {parity(x * y) for x in xs for y in ys})Each line prints a set with a single element, such as even+odd {'odd'}. A set of one value shows that the parity of the result does not depend on which numbers you picked. A sample is not a proof, but the algebra above is, and the code shows what the algebra means.
Many terms: count the odd ones
Adding many integers does not need the pairwise table. Only odd terms change the parity of a sum. Even terms contribute nothing to it.
- If a sum has an even number of odd terms, the sum is even.
- If a sum has an odd number of odd terms, the sum is odd.
For example, a sum of 7 odd integers and 12 even integers is odd, because 7 is odd. The sum of the first n odd integers is also n², which has the same parity as n. This agrees with the counting rule.
For products, the test is different. One even factor makes the whole product even. A product is odd only if every factor is odd. The diagram shows the decision.
Powers
A positive integer power has the same parity as its base. Since x^k is x multiplied by itself k times, it is even exactly when x is even.
- 6^5 is even, and 7^100 is odd.
- x^2 and x always have the same parity, so x^2 + x is always even, because it is either even + even or odd + odd.
- The expression x^2 - x has the same parity as x^2 + x, so it is also always even. This factors as x(x - 1), a product of two consecutive integers, which always includes an even one.
The exponent's parity does not matter for the result, as long as the exponent is a positive integer. Only the base counts.
A related trap: an odd base to any positive power stays odd, but an even base never becomes odd, however high the power. Zero as a base is even, so 0^k is even for positive k.
Working backwards from a parity statement
GRE questions often give the parity of an expression and ask what follows for the variables.
Example 1. If x is an integer and 3x + 4 is odd, what is the parity of x?
Since 4 is even, 3x + 4 is odd only if 3x is odd. A product 3x is odd only if both factors are odd, so x is odd.
Example 2. If m and n are integers and mn is odd, which of the following must be true: m + n is even, m - n is even, m + 1 is even?
An odd product requires both m and n to be odd. Then m + n is even, m - n is even, and m + 1 is even. All three statements are true.
Example 3. If a and b are integers and a + b is odd, what can you say about ab?
The sum is odd, so exactly one of a and b is odd and the other is even. The product has an even factor, so ab is even. You do not need to know which variable is the even one.
Some statements run only one way. If a + b is even, then a and b have the same parity, but they could both be odd or both be even. You then cannot determine the parity of ab. When both are odd, ab is odd. When both are even, ab is even.
Parity as a remainder
Parity is the remainder after division by 2. An even number has remainder 0, and an odd number has remainder 1. The remainder rules for sums and products generalize the table in this chapter. For example, odd × odd leaves remainder 1 × 1 = 1, and odd + odd leaves remainder (1 + 1) mod 2 = 0. This connection is developed in the chapter on remainders of sums and products.
Strategy on the GRE
Parity questions are usually "must be true" or "could be true" items, or quantitative comparisons. A reliable approach has four steps.
- Translate the given statement into parity facts about each variable, as in Examples 1 to 3.
- Apply the rules to the expression in the question.
- Test numbers when the rules don't settle it. Choose the smallest cases that cover the possibilities, which are usually one even value, one odd value, and zero.
- Include negatives and zero among your test values. The answer to a "must be true" question can fail at 0 or at a negative number, such as when a statement is about the sign of an expression and not its parity.
For a quantitative comparison, parity alone rarely decides which quantity is larger. It can show that a quantity must be an integer of a certain kind, or that two expressions can never be equal. For example, if x and y are integers, then x + y and x - y have the same parity, so they cannot differ by exactly 1.
Common errors
- Treating 0 as neither even nor odd. It is even.
- Claiming that odd + odd is odd, or that even × odd is odd. Check against the table.
- Assuming "x + y is even" means both are even.
- Assuming that a square or higher power can change the parity of a base. It can't.
- Applying parity to non-integers.
- Testing only positive numbers on a "must be true" question.
Exercise
x and y are integers. The product xy is even and the sum x + y is odd. Which of the following must be true: (i) x is even, (ii) exactly one of x and y is even, (iii) x^2 + y^2 is odd?
Show answer
Only (ii) and (iii) must be true. A sum x + y is odd only when the two have different parity, so exactly one is even, which proves (ii). Statement (i) fails because x could be the odd one, for example x = 3 and y = 2. For (iii), the squares keep the parities of x and y, so x^2 + y^2 is also odd + even, which is odd. The fact that xy is even adds nothing, since it follows automatically from one factor being even.
Exercise
A list contains 9 odd integers and 6 even integers. A student adds them all and then multiplies the total by 4. What is the parity of the final result, and what is the parity of the sum before multiplying?
Show answer
The sum has 9 odd terms, and 9 is odd, so the sum is odd. The final result is the sum times 4. Because 4 is even, the product is even, whatever the sum is.
Exercise
If n is an integer, explain why n^2 + n + 1 is always odd.
Show answer
The expression n^2 + n equals n(n + 1), a product of two consecutive integers, so it is even. Adding 1 to an even number gives an odd number. So n^2 + n + 1 is odd for every integer n, including negatives and zero.