Sub topic 11
Problems That Combine Parity and Sign
This chapter assumes you know the parity rules for sums, products, and powers, and the sign rules for products, quotients, and powers. It also assumes you are comfortable with exponent notation and with the fact that zero is even and neither positive nor negative. Here you combine those rules. Many GRE questions give a little information about parity and a little about sign, then ask what must be true.
Why combined problems need care
Parity and sign are independent properties. A number can be even and negative (-4), even and positive (6), odd and negative (-3), odd and positive (5), or zero, which is even and has no sign. Knowing one property tells you nothing about the other.
The usual mistake is to let one property leak into the other. For example, "x is odd" does not mean x is positive, and "x is negative" does not mean x is odd.
The table below classifies each combination, using the rules from earlier chapters.
| Expression | Parity rule | Sign rule |
|---|---|---|
| x + y | Even if x and y have the same parity, odd otherwise | No fixed rule. It depends on the sizes |
| x · y | Odd only if both are odd | Positive if the signs match, negative if they differ, zero if either is zero |
| x² | Same parity as x | Never negative |
| x³ | Same parity as x | Same sign as x |
Notice that the sum row has a parity rule but no sign rule. A sum of a positive and a negative number can be positive, negative, or zero. A sum of two numbers of the same sign keeps that sign.
A two-column method
For each variable, keep two labels: parity and sign. Write what you know and mark what you do not know.
Suppose a problem says "n is an odd integer and n < 0." Then n has parity odd and sign negative. Examples are -1, -3, and -5.
Now evaluate each expression twice, once for parity and once for sign.
- n²: odd (an odd number times an odd number) and positive (a negative times a negative).
- n³: odd and negative, because an odd power keeps the sign of the base.
- n + 1: even, because odd plus odd is even. Its sign is unknown. For n = -1 it is 0, and for n = -3 it is -2.
- 2n: even and negative.
Treating the two properties separately keeps you from mixing them.
for n in (-1, -3, -5):
print(n, n**2, n**3, n + 1, 2 * n)The output shows n² always odd and positive, n³ always odd and negative, and n + 1 always even. But n + 1 is 0 for n = -1 and negative otherwise, so its sign is not determined by the given information.
Worked example 1: a sign question hidden in a parity condition
Problem. The integer k is odd and k³ < 0. Which of the following must be true?
- k < 0
- k² is odd and positive
- k + 1 < 0
Reasoning.
- An odd power has the same sign as its base. Since k³ is negative, k is negative. This must be true.
- k is odd, so k² is odd. k is negative and nonzero, so k² is positive. This must be true.
- If k = -1, then k + 1 = 0, which is not less than 0. This need not be true.
Statement 3 fails at the boundary. Always test the value closest to zero that satisfies the conditions.
Worked example 2: a product that is even and negative
Problem. The integers a and b satisfy ab < 0 and ab is even. Which of the following must be true?
- a and b have opposite signs.
- a is even.
- a + b is odd.
Reasoning.
- A negative product requires opposite signs, and neither factor can be zero. This must be true.
- An even product only requires at least one even factor. Try a = -3 and b = 2. The product is -6, which is negative and even, and a is odd. This does not have to be true.
- Try a = -2 and b = 4. The product is -8, which is negative and even, and a + b = 2, which is even. This does not have to be true.
The search for a counterexample took one try each. This is the technique of the next chapter, and it is often faster than proving a statement.
cases = [(a, b) for a in range(-4, 5) for b in range(-4, 5)
if a * b < 0 and (a * b) % 2 == 0]
print(any(a % 2 != 0 for a, b in cases))
print(any((a + b) % 2 == 0 for a, b in cases))Both lines print True. The first confirms that a can be odd. The second confirms that a + b can be even.
Combining parity and exponents with sign
Exponent problems are where both properties appear together. Remember these two facts.
- The parity of xⁿ equals the parity of x, for any positive integer n.
- The sign of xⁿ depends on the parity of n. If n is even, xⁿ is nonnegative. If n is odd, xⁿ has the sign of x.
Notice the roles. The parity of the base controls the parity of the result. The parity of the exponent controls the sign of the result. Mixing these roles is a common error.
For example, take (-2)⁵. The base is even, so the result is even. The exponent is odd, so the result is negative. It equals -32, which is even and negative.
Now take (-3)⁴. The base is odd, so the result is odd. The exponent is even, so the result is positive. It equals 81.
for base, exp in ((-2, 5), (-3, 4), (-3, 3), (-2, 4)):
v = base ** exp
print(base, exp, v, "even" if v % 2 == 0 else "odd", "pos" if v > 0 else "neg")A variable exponent
Sometimes the exponent is itself an unknown integer. Suppose n is an integer and you must decide the sign of (-1)ⁿ.
- If n is even, (-1)ⁿ = 1.
- If n is odd, (-1)ⁿ = -1.
So (-1)ⁿ is always odd, since both 1 and -1 are odd, but its sign depends on the parity of n. This is a clean case where the parity of one quantity determines the sign of another.
Now consider (-1)ⁿ⁺¹ and (-1)ⁿ. Adding 1 to n flips its parity, so the two expressions always have opposite signs. Their sum is 0.
for n in range(-3, 4):
print(n, (-1) ** n, (-1) ** (n + 1))This code works for negative n too, because Python gives the float 1.0 or -1.0 for negative exponents. The signs match the pattern described above.
Worked example 3: consecutive integers and sign
Problem. n is an integer and n(n + 1) < 0. What can you conclude?
Reasoning. Consecutive integers have opposite parity, so n(n + 1) is always even. That fact is true but does not answer the question.
For the sign, the product is negative only if n and n + 1 have opposite signs. The integers n and n + 1 differ by 1, so the only way to straddle zero is for one to be negative and one positive, which would require an integer strictly between them. No such integer exists. The boundary case n = -1 gives n + 1 = 0, and the product is 0, not negative.
So no integer n satisfies n(n + 1) < 0. The condition is impossible.
This is a useful lesson. A problem can combine facts so that no value fits. If you cannot find a test value, check whether the constraints contradict each other.
print([n for n in range(-100, 101) if n * (n + 1) < 0])The output is an empty list.
Worked example 4: a Quantitative Comparison
Quantity A: x² + x, where x is an integer. Quantity B: 0.
Reasoning. First, parity: x² + x = x(x + 1), a product of consecutive integers, so it is always even. This tells you nothing about the sign.
Now test values.
- x = 2 gives 6, so A is greater.
- x = 0 gives 0, so the quantities are equal.
- x = -1 gives 0, so the quantities are equal.
- x = -3 gives 6, so A is greater.
Is the value ever negative? For an integer x, x(x + 1) is never negative, by the previous example. So Quantity A is always at least Quantity B, but it can equal 0. The two quantities are not always different, so the answer is that the relationship cannot be determined. Quantity A is greater for some values and equal for others.
print({x: x * x + x for x in range(-4, 5)})Common errors
- Assuming odd means positive. The integer -7 is odd. Test negative odd values.
- Forgetting zero. Zero is even, and it is neither positive nor negative. A condition such as xy > 0 excludes zero, but xy ≥ 0 allows it.
- Using the exponent's parity for the result's parity. In 2ⁿ, the result is even for every positive integer n, no matter whether n is even or odd.
- Treating "x² > 0" as "x > 0". The statement x² > 0 gives x ≠ 0, and x can be negative.
- Assuming a sum has a sign. A sum of integers of different signs can take any sign.
A decision flow
The diagram shows the order of questions to ask when a problem combines the two properties.
Summary of the working rules
- Track parity and sign as two separate labels.
- The base controls the parity of a power. The exponent controls its sign.
- Sums have parity rules but usually no sign rule.
- Products have both. The parity needs one even factor, and the sign needs matching or differing signs.
- Always test the boundary values closest to zero.
Exercise
The integer m is odd and m < 0. For each expression, say whether it must be even or odd, and whether it must be positive, must be negative, or has no determined sign: (a) m⁴, (b) m⁵, (c) m + 2, (d) -m.
Show answer
(a) m⁴ is odd, because the base is odd, and positive, because the exponent is even. (b) m⁵ is odd and negative, because an odd power keeps the sign of the base. (c) m + 2 is odd, because odd plus even is odd. Its sign is not determined: m = -1 gives 1, which is positive, and m = -3 gives -1, which is negative. (d) -m is odd and positive, because negating a negative integer gives a positive integer and does not change parity.
Exercise
The integers p and q satisfy pq > 0 and p + q is odd. Could both p and q be positive? Could p be even? Explain using parity and sign.
Show answer
A sum that is odd means p and q have opposite parity, so one is even and one is odd. A product greater than zero means p and q have the same sign and neither is zero. Both could be positive: p = 2 and q = 3 gives pq = 6 and p + q = 5. Yes, p could be even, as in that example. Both could also be negative: p = -2 and q = -3 gives pq = 6 and p + q = -5. What cannot happen is both p and q being even or both odd.
Exercise
Quantity A: (-1)^n, where n is a positive integer. Quantity B: 0. Which is greater, or can this not be determined?
Show answer
(-1)^n is either 1 or -1 depending on the parity of n. If n is even, Quantity A is 1 and is greater. If n is odd, Quantity A is -1 and is less. The relationship cannot be determined.