Sub topic 6
Parity of Integer Powers
This chapter covers how the parity of a base determines the parity of its power, and how to use that on GRE "must be true" questions. It assumes you can already classify integers as even or odd, know that an even times anything is even, and can read exponent notation such as x³ as x·x·x. It also assumes you know that 0 is even.
The Core Rule
A power is repeated multiplication. For a positive integer exponent n, xⁿ is x multiplied by itself n times. The product rule from the previous chapters therefore decides everything:
- A product is odd only when every factor is odd.
- A product is even when at least one factor is even.
Apply this to xⁿ, where every factor is the same number x:
- If x is odd, every factor is odd, so xⁿ is odd.
- If x is even, every factor is even, so xⁿ is even.
The exponent does not change the parity of the result. Only the base does. For a positive integer exponent n, xⁿ has the same parity as x.
| Base x | Exponent n | xⁿ | Parity of xⁿ |
|---|---|---|---|
| 3 | 2 | 9 | odd |
| 3 | 5 | 243 | odd |
| 4 | 2 | 16 | even |
| 4 | 3 | 64 | even |
| -3 | 3 | -27 | odd |
| -2 | 4 | 16 | even |
| 0 | 7 | 0 | even |
Parity is about being a multiple of 2, so negative results are classified the same way. -27 is odd and -2 is even.
You can check the rule by running it on a range of bases and exponents:
for x in (-4, -3, -2, -1, 0, 1, 2, 3):
for n in (1, 2, 3, 4):
assert (x**n) % 2 == x % 2
print("xⁿ has the same parity as x in every case")Python's % returns 0 or 1 for a modulus of 2, even for negative numbers, so the comparison is valid here.
Why the Exponent Does Not Matter
Consider why an odd number can never become even by repeated multiplication. Write an odd number as 2k + 1. Multiplying two odd numbers gives
(2k + 1)(2m + 1) = 4km + 2k + 2m + 1 = 2(2km + k + m) + 1,
which has the form 2(something) + 1, so it is odd again. Each additional factor repeats this step and the result stays odd.
For an even base, one factor of 2 is enough. Write x = 2k. Then xⁿ = 2ᵏ-style factors multiply out to 2 · (2ⁿ⁻¹kⁿ), which is a multiple of 2 whenever n ≥ 1.
The chain of reasoning looks like this:
Edge Cases With the Exponent
The rule needs a positive integer exponent. Three situations fall outside it, and the GRE uses them.
Exponent 0
For any nonzero x, x⁰ = 1, which is odd, regardless of x's parity. So 4⁰ = 1 is odd even though 4 is even. The base 0 with exponent 0 is not defined on the GRE, so you will not be asked to evaluate 0⁰.
Negative exponents
x⁻ⁿ = 1/xⁿ. This is not an integer unless x is 1 or -1, so parity does not apply. For example, 2⁻³ = 1/8 is not even or odd, because only integers have parity. If a problem says "x⁻² is an integer", it is telling you something strong about x.
Fractional exponents
Expressions like √x or x^(1/3) are integers only for specific bases (perfect squares, perfect cubes, and so on). If √x is an integer, then x = (√x)², and x has the same parity as √x by the core rule. For instance, if √x = 6, then x = 36, and both are even.
Working Backwards: From the Result to the Base
The rule runs in both directions, since each parity of base gives exactly one parity of result.
- If xⁿ is even, then x is even.
- If xⁿ is odd, then x is odd.
This is useful because it lets you extract information about x from a statement about a power. Suppose a problem says that x² is even. Then x is even, and so x³, x⁴, and x⁵ are all even too. Suppose instead that x³ + 1 is even. Then x³ is odd (an odd plus 1 is even), so x is odd.
Exercise
If n is an integer and n² - 4 is odd, what is the parity of n, and is n⁵ even or odd?
Show answer
Since 4 is even, n² - 4 has the same parity as n². So n² is odd, which means n is odd. Then n⁵ is odd.
Combining Powers With Sums
Most GRE questions mix powers with addition, so use the sum rules from earlier chapters on the parity of each term, after you reduce each power to the parity of its base.
Example: if a is odd and b is even, is a³ + b² even or odd?
- a is odd, so a³ is odd.
- b is even, so b² is even.
- Odd + even = odd.
So a³ + b² is odd.
A shortcut: since xⁿ has the parity of x, you may replace each power with its base when you only care about parity. The expression a³ + b² has the same parity as a + b. This simplification is valid only when the exponents are positive integers.
Here is a more involved case. If x is an integer, what is the parity of x² + x?
- If x is even, x² is even and x is even, so the sum is even.
- If x is odd, x² is odd and x is odd, so the sum is even.
In both cases the sum is even. Therefore x² + x is always even for every integer x. This agrees with factoring: x² + x = x(x + 1), a product of two consecutive integers, one of which must be even.
You can confirm it by brute force:
print(all((x**2 + x) % 2 == 0 for x in range(-10, 11)))This prints True.
A common error: treating exponents as multipliers
Some learners reason that 3 · 2 = 6 is even, so 3² must be even. That confuses the exponent with a factor. Compare 3² = 3 · 3, a product of two odd numbers, with 3 · 2, a product that contains the even number 2. The exponent counts how many copies of the base are multiplied, and it is never an extra factor.
A second error is thinking that a large exponent "makes the number bigger, so more likely even." Size has nothing to do with parity. 3¹⁰⁰ is odd.
Parity With Different Bases and Sums Inside the Base
The base can itself be an expression. Reduce the inside first, then apply the rule.
Example: x and y are integers, x is odd, and y is odd. What is the parity of (x + y)⁵?
- Odd + odd = even, so x + y is even.
- An even base gives an even power, so (x + y)⁵ is even.
Example: what is the parity of (x + 1)ⁿ when x is even and n is a positive integer?
- Even + 1 = odd.
- So (x + 1)ⁿ is odd.
Be careful with the distinction between (x + y)ⁿ and xⁿ + yⁿ. They are different numbers, but for a positive integer n they always have the same parity. For example, with x = 1, y = 2, and n = 2: (1 + 2)² = 9 is odd and 1² + 2² = 5 is odd. With x = y = 1: (1 + 1)² = 4 and 1² + 1² = 2, both even. That is a good check, but the two expressions are not equal in general, so never replace one with the other when the problem asks for a value.
Powers of 2 and Other Even Bases
Powers of 2 are even for every positive integer exponent, but 2⁰ = 1 is odd. A GRE problem may present 2ᵏ with k unspecified. If k is a positive integer, 2ᵏ is even. If k could be 0, the parity is not determined. When the problem says k is a nonnegative integer, include k = 0 as a test case.
Likewise, an expression such as 2ᵏ + 1 is odd when k ≥ 1, but equals 2 (even) when k = 0. Always check whether the exponent can be 0.
for k in range(0, 5):
print(k, 2**k + 1, (2**k + 1) % 2)The output shows remainder 0 for k = 0 and remainder 1 for the others.
Checking a Claim With Test Values
Parity claims are a good fit for testing, because each integer has only two cases. For a statement about x, test one even and one odd value. For a statement about x and y, test the four combinations of parity.
Example: "If x and y are integers and x² + y² is odd, which must be true: (A) x is even, (B) y is even, (C) x + y is odd?"
Since x² + y² is odd, the squares have different parity, so x and y have different parity. One is even and the other is odd, but you cannot say which. So A and B need not hold, and x + y, odd + even, is odd. Only C must be true.
A test confirms this:
pairs = [(x, y) for x in range(-5, 6) for y in range(-5, 6)
if (x**2 + y**2) % 2 == 1]
print(all((x + y) % 2 == 1 for x, y in pairs))
print(any(x % 2 == 0 for x, y in pairs), any(x % 2 == 1 for x, y in pairs))The first line prints True. The second prints True True, which shows x can be either parity, so no claim about x alone must hold.
Summary of Rules
| Situation | Result |
|---|---|
| x even, n positive integer | xⁿ even |
| x odd, n positive integer | xⁿ odd |
| xⁿ even | x even |
| xⁿ odd | x odd |
| x nonzero, n = 0 | xⁿ = 1, odd |
| n negative | usually not an integer, so no parity |
| (x + y)ⁿ vs. xⁿ + yⁿ | different values, same parity for positive integer n |
Practice
Exercise
x and y are integers. If x³ y is odd, what is the parity of x + y², and what is the parity of x² + y?
Show answer
A product is odd only when every factor is odd. So x³ is odd and y is odd, which makes x odd. Then y² is odd, so x + y² is odd + odd = even. Also x² is odd, so x² + y is odd + odd = even. Both expressions are even.
Exercise
k is a nonnegative integer. Is 3ᵏ + 2ᵏ always odd, always even, or neither? Justify with test values.
Show answer
Neither. For k = 0, 3⁰ + 2⁰ = 1 + 1 = 2, which is even. For k = 1, 3 + 2 = 5, which is odd. For k ≥ 1, 3ᵏ is odd and 2ᵏ is even, so the sum is odd. The case k = 0 is the exception, so the parity is not determined unless k is known to be positive.
Exercise
If n is an integer and n(n² + 1) is even, must n be even?
Show answer
No. The factor n² + 1 has parity opposite to n². If n is odd, n² is odd and n² + 1 is even, so the product is even. If n is even, the product is even too. So n(n² + 1) is even for every integer n, and it gives no information about n. Testing n = 3 gives 3 · 10 = 30, which is even while n is odd.