Sub topic 10
When testing cases disproves but cannot prove
This chapter assumes you can already pick sensible test numbers, plug them into variables, and run a Quantitative Comparison (QC) test across zero, one, negatives, fractions, and large values. It covers what a pile of test results does and does not establish, so you know when to stop testing and when to switch to algebra.
The asymmetry between counterexamples and confirmations
Test cases are lopsided evidence.
- One failing case settles a claim of the form "always true." If a statement says something holds for every integer and you find one integer where it fails, the statement is false. No further checking is needed.
- Any number of passing cases does not settle it. Each passing case shows only that the claim survived that value. The next value you did not try could still break it.
The reverse holds for claims of the form "could be true" or "is possible." One passing case proves the claim. Failing cases prove nothing, because you may not have found the right value yet.
On the GRE, nearly every question is built around one of these two forms. Once you see which form the question uses, you know whether testing can finish the job.
Which outcomes are conclusive
| Situation | What your tests found | Conclusive? |
|---|---|---|
| QC, two tests give different relationships | A greater once, B greater once | Yes. The answer is D. |
| QC, every test gives the same relationship | A greater every time | No. Another value may reverse it. |
| "Must be true" choice, one test fails it | Counterexample | Yes. Eliminate the choice. |
| "Must be true" choice, every test passes | No counterexample yet | No. The choice is only not yet eliminated. |
| "Could be true" choice, one test passes it | One example | Yes. The choice is correct. |
| "Could be true" choice, every test fails it | No example yet | No. You may have missed the working value. |
| Backsolving, one answer choice satisfies every condition | A match | Yes, if the question has one correct answer. |
| Plugging in for a variable, exactly one choice matches | One surviving choice | Yes, as long as your number was legal and the other choices truly fail. |
The last two rows work because the GRE guarantees a single correct choice in standard multiple-choice questions. Elimination by counterexample is valid, so the one that is left must be correct. Select-all questions do not give you that guarantee, so surviving a few tests is weaker evidence there.
A claim that passes every test
Here is a claim: for every integer n, the value n² + n is even. Test it on a spread of integers.
# Is n**2 + n even for every integer n? Test negatives, zero, and positives.
for n in range(-5, 6):
print(n, (n**2 + n) % 2 == 0)Every line prints True. That supports the claim but does not prove it, because the loop covers only eleven of infinitely many integers. The proof comes from algebra: n² + n = n(n + 1), which is a product of two consecutive integers. One of any two consecutive integers is even, so the product is even.
The testing told you the claim was plausible. The factoring told you why it is true for all integers.
A claim that passes many tests and is still false
Passing results can pile up and still mislead. The expression n² − n + 41 produces a prime number for n = 0, 1, 2, and so on, for a long stretch. Check how long.
def is_prime(m):
if m < 2:
return False
d = 2
while d * d <= m:
if m % d == 0:
return False
d += 1
return True
for n in range(0, 60):
value = n * n - n + 41
if not is_prime(value):
print("first failure at n =", n, "value =", value)
break
else:
print("no failure found")The first 41 values (n = 0 through 40) are all prime. The program reports a failure at n = 41, where the value is 41², or 1681. The factoring shows why: at n = 41, n² − n + 41 = 41(41 − 1) + 41 = 41 × 41.
You will not meet this exact expression on the GRE. The point is that a claim can survive dozens of tests and be false. On the GRE the same thing happens on a smaller scale. If you test only 2 and 3 on a question where the trap is at 0, 1, or a negative number, every test agrees and the conclusion is wrong.
# Quantity A is n**3, Quantity B is n**2, for integer n.
# Testing only 2 and 3 suggests A is always greater. Test a wider spread.
for n in [2, 3, 1, 0, -1, -2]:
a, b = n**3, n**2
verdict = "A greater" if a > b else "B greater" if a < b else "equal"
print(n, a, b, verdict)The output shows A greater for 2 and 3, equal for 0 and 1, and B greater for −1 and −2. The wider spread gives answer D. The narrow spread would have given a wrong answer.
Two ways to turn tests into a proof
Testing becomes a proof in two situations.
The set of possibilities is small and you check all of it
If a problem restricts a variable to a handful of values, testing every one is a complete argument. For example, if n is an integer and 1 ≤ n ≤ 4, testing 1, 2, 3, and 4 covers every case. Check that the problem's constraints really limit the variable before you rely on this. A condition like "n is a positive integer" does not.
The cases fall into classes that behave uniformly
Some properties depend only on a class of number, such as even or odd, and not on its size. For parity questions you can test one even and one odd value and argue that every integer belongs to one of those two classes. This works only if you can explain why the result cannot depend on anything else about the number. If you cannot give that explanation, you have two data points and not a proof.
For n² + n: an even n makes both n² and n even, so the sum is even. An odd n makes both odd, and the sum of two odd numbers is even. Two classes cover all integers, so the claim holds.
Select-all questions
A select-all question lists several statements, and you choose every one that meets the condition. Treat each statement as a separate claim and decide which form it takes.
Suppose a question asks which of the following must be even for every integer n.
- I. n² + n
- II. n² + 1
- III. n³ − n
Test n = 0, 1, 2, 3.
- n = 0: I gives 0 (even), II gives 1 (odd), III gives 0 (even). Statement II fails, so eliminate it.
- n = 1: I gives 2, III gives 0. Both even.
- n = 2: I gives 6, III gives 6. Both even.
- n = 3: I gives 12, III gives 24. Both even.
Statement II is eliminated by one counterexample, and that elimination is conclusive. Statements I and III have only survived four tests. Before you select them, confirm with structure: I factors as n(n + 1), and III factors as (n − 1)n(n + 1), a product of three consecutive integers that always includes an even number. Both are always even, so select I and III.
If the question had asked which of the statements could be even, the logic would flip. One passing case would be enough for each statement, and failing cases would prove nothing.
Numeric entry and backsolving
Numeric entry questions have no choices to eliminate against, so a plugged-in number gives you only a candidate value. Check it against every condition in the problem before you type it in. A number that satisfies two of three conditions is a failed test.
Backsolving is conclusive when the question has exactly one correct answer, because one choice that satisfies every condition cannot coexist with another. The common mistake is to check one condition and stop. If the choice you tested satisfies the first condition but you never checked the second, you have not tested it.
A decision flow
Common errors
- Declaring a QC answer after a single test. One test shows one relationship. Always look for a second relationship before you commit to A, B, or C.
- Testing only comfortable values. Small positive integers rarely expose a trap. Include zero, one, a negative, and a fraction between 0 and 1 whenever the constraints allow.
- Treating survival as proof. In a "must be true" question, a choice that passed four tests is not yet correct. Confirm it with factoring, a parity argument, or another structural reason.
- Breaking the constraints. A counterexample counts only if it obeys every condition in the problem. If the problem says x is a positive integer, x = −1 is not a counterexample.
- Reading a counterexample as informative about the other direction. Finding that a statement fails once tells you it is not always true. It does not tell you it is never true.
- Checking too few choices. In a select-all question, each statement needs its own verdict. A test that eliminates one statement says nothing about the others.
Summary of the rules
- Counterexamples are conclusive against "always true" claims.
- Examples are conclusive for "could be true" claims.
- Two different outcomes in a QC settle it as D.
- Agreement across many tests is evidence, not proof. Support it with structure, or accept it as a time-limited guess.
- Testing proves a claim only when you have covered every possible case, or when the cases fall into classes whose behavior you can justify.
Exercise
Quantity A is x³ and Quantity B is x² for an integer x. You test x = 2 and x = 3 and find that A is greater both times. Can you answer A? If not, what test settles the question, and what is the answer?
Show answer
You cannot answer A, because two tests that agree do not cover every legal integer. Test x = −1: Quantity A is −1 and Quantity B is 1, so B is greater. Test x = 0: both quantities are 0, so they are equal. Because x = 2 gives A greater and x = −1 gives B greater, the relationship changes, and the answer is D.
Exercise
A student claims that for every positive integer n, the value n² + n + 1 is odd. The student tests n = 1, 2, 3, 4 and sees 3, 7, 13, 21, all odd. Explain why these tests are not a proof, then give an argument that settles the claim.
Show answer
Four passing tests cover four of infinitely many positive integers, so a later value could still fail. For a proof, factor the first two terms: n² + n = n(n + 1), a product of two consecutive integers, so it is always even. Adding 1 to an even number gives an odd number, so n² + n + 1 is odd for every positive integer n.