Sub topic 12
Choosing Test Values and Finding Counterexamples
This chapter assumes you know the parity rules for sums, products, and powers, the sign rules for products, quotients, and powers, and how multiplying an inequality by a negative number reverses it. Here you turn those rules into a procedure. When a GRE question says "must be true," "could be true," or asks you to compare two quantities, you can often settle it by trying a few well-chosen numbers.
Why Testing Works, and Where It Stops
A claim like "x² is greater than x" is a statement about every value that satisfies the conditions. Two facts follow from this:
- One failing example disproves a "must be true" claim. That example is called a counterexample.
- Many passing examples never prove a "must be true" claim. They only make it more plausible.
A "could be true" claim is the mirror image. One example that satisfies every condition and makes the claim true settles it. No number of failures proves it impossible.
| Question type | One example that works | One example that fails |
|---|---|---|
| Must be true | Does not settle it | Settles it: the claim is false |
| Could be true | Settles it: the claim is possible | Does not settle it |
| Quantitative Comparison | Gives one outcome for the comparison | A second, different outcome means the answer is D |
In a multiple-choice "must be true" question, this lets you eliminate choices quickly. You only need to find one choice that no counterexample can break. The parity and sign rules from earlier chapters then confirm that choice.
Build a Standard Set of Test Values
Which values you try matters more than how many. Most number-property traps hide in a few special regions of the number line, so keep a standard set and pick from it.
| Test value | What it exposes |
|---|---|
| 0 | Neither positive nor negative. It is even, it makes products zero, and it breaks "greater than" claims that are really "at least." |
| 1 | Neither prime nor composite. It is odd, and every power of 1 equals 1. |
| -1 | An odd negative. Its even powers are 1 and its odd powers are -1. |
| 2 | The only even prime, and a small positive even integer. |
| -2 | A negative even integer. |
| A fraction such as 1/2 | Positive numbers below 1 behave differently: x² < x. Use it only if the problem allows non-integers. |
| A negative fraction such as -1/2 | Combines the sign effects with the shrinking effect of powers. |
| A large value such as 10 | Shows what happens once the variable is far from zero. |
If the problem says "integer," drop the fractions. If it says "positive," drop 0, -1, and -2. The most common error is testing a value the problem has already ruled out. Before trying a number, check it against every stated condition.
A Worked "Must Be True" Example
Suppose x and y are integers and x + y is odd. Which of these must be true?
- xy is even.
- x is odd.
- x² + y² is even.
By the addition rule, a sum is odd only when exactly one addend is odd. So test pairs where one number is odd and the other is even, including negatives and zero:
- (1, 2): the sum is 3. The product is 2, which is even. x is odd. x² + y² = 5, which is odd.
- (2, 1): the sum is 3. The product is 2. x is even. x² + y² = 5.
- (-1, 0): the sum is -1. The product is 0, which is even.
Statement 2 fails at (2, 1), because x is even there. Statement 3 fails at (1, 2), because 5 is odd. Statement 1 survives every test. The rule confirms it: exactly one factor is even, and any product with an even factor is even. So only statement 1 must be true.
Searching Systematically with Code
Hand testing and a brute-force search follow the same logic. The program below applies the third example from the plan. It searches small integers for a pair where xy is even but x is not even.
cases = [(x, y) for x in range(-3, 4) for y in range(-3, 4)
if (x * y) % 2 == 0 and x % 2 != 0]
print(cases[0])The first result is (-3, -2). The product is 6, which is even, but x = -3 is odd. This disproves "if xy is even, then x is even."
You can generalize this into a reusable counterexample finder. It uses exact fractions so there is no rounding error.
from fractions import Fraction
from itertools import product
def first_counterexample(claim, conditions, values):
for x, y in product(values, repeat=2):
if conditions(x, y) and not claim(x, y):
return (x, y)
return None
values = [Fraction(n, 2) for n in range(-4, 5)]
print(first_counterexample(
claim=lambda x, y: x + y > 0,
conditions=lambda x, y: x * y > 0,
values=values,
))This tests the claim "if xy > 0, then x + y > 0." The search prints (Fraction(-2, 1), Fraction(-2, 1)). Both numbers are negative, so the product is positive and the sum is negative. The conditions function filters out any test value that the problem does not allow. That filter is exactly the "check the conditions first" step you do by hand.
Single-Variable Claims with Powers
Claims about powers need a different set of tests. Consider "x² > x." You can run it over a spread of values:
from fractions import Fraction
for x in (Fraction(-2), Fraction(-1, 2), Fraction(0), Fraction(1, 2), Fraction(1), Fraction(2)):
print(x, x**2 > x)The output is True for -2, True for -1/2, False for 0, False for 1/2, False for 1, and True for 2. The claim holds for all negatives and for numbers above 1. It fails at 0, 1, and every number strictly between 0 and 1. Three different regions of the number line produce three different behaviors, and an integer-only test set would never reach the interval (0, 1).
A Decision Flow for Test Cases
The last box matters. A claim that survives your tests is a candidate. Back it with a rule before you commit, unless time pressure forces a choice among the surviving options.
Testing in Quantitative Comparison
In Quantitative Comparison, you compare Quantity A with Quantity B. The test pattern is different: you want to find two outcomes.
- Choose any allowed value and compare the two quantities.
- Deliberately try a value from a different region, such as negative instead of positive, or a fraction instead of an integer.
- If both quantities are equal for one value but unequal for another, the answer is D. The same holds if the comparison flips direction between two values.
- If every region you try gives the same outcome, the answer is probably A, B, or C. Support it with a rule.
For example, suppose x ≠ 0, Quantity A is x², and Quantity B is x. At x = 2, A is 4 and B is 2, so A is greater. At x = 1/2, A is 1/4 and B is 1/2, so B is greater. The two outcomes differ, so the answer is D. Only two tests were needed, and they came from two different regions of the number line.
Edge Cases and Traps
Several habits cause most errors when testing.
- Ignoring zero. Zero is even, is neither positive nor negative, and makes any product zero. A condition like "x ≥ 0" allows it, while "x > 0" does not.
- Assuming integers. If the problem never says "integer," the variable can be a fraction or a decimal. Parity says nothing about non-integers, so any parity argument needs an integer condition.
- Testing only positives. Many sign claims fail for negatives, and many inequality claims reverse. Always include at least one negative value if negatives are allowed.
- Testing only small values. Small values hide behavior that appears when the variable is large. Include one large value when the claim involves growth, such as powers.
- Picking values that make everything equal. Using x = y = 1 may make two expressions look identical when they differ elsewhere. Vary your values so that variables are unequal when the problem permits it.
- Treating "not must be true" as "false." A counterexample only shows the claim does not hold in every case. The claim may still be true for some values.
Putting the Procedure Together
On test day, you will typically follow this sequence. Read the conditions and mark the variable's type (integer or not) and sign (positive, negative, or unrestricted). Test the simplest allowed values first, such as 0, 1, -1, and 2. Move to fractions or larger values if the first tests all agree. Stop as soon as a counterexample appears. If nothing breaks the claim, check it against the parity or sign rule that explains why it holds. This keeps the work to a handful of calculations while still guarding against the traps above.
Exercise
Integers a and b satisfy ab < 0. Must a + b be negative? Give a counterexample if not.
Show answer
No. Since ab < 0, one of the numbers is positive and the other is negative. Take a = 5 and b = -2. Then ab = -10 < 0, but a + b = 3, which is positive. A single counterexample is enough to show the claim is not always true.
Exercise
For x > 0, Quantity A is x³ and Quantity B is x². Which comparison holds: A greater, B greater, equal, or cannot be determined?
Show answer
Cannot be determined (D). At x = 2, A is 8 and B is 4, so A is greater. At x = 1/2, A is 1/8 and B is 1/4, so B is greater. At x = 1, both equal 1. Different positive values give different outcomes, so the comparison depends on x.
Exercise
If n is an integer and n² is odd, test small values and state what must be true about n.
Show answer
Testing n = 1, -1, 3, -3 gives odd squares, and n = 0, 2, -2, 4 gives even squares. So n must be odd. The parity rule confirms this: an even integer has an even square, so n² odd forces n odd.