Sub topic 15
Applying it on the GRE: test numbers and quantitative comparison
This chapter assumes you know the earlier material in this tutorial. That means divisibility rules, prime factorization, GCD and LCM, the form n = dq + r, remainders of sums and products, and the guaranteed-divisibility facts about consecutive integers. Here you use those tools under test conditions. The focus is on choosing which test numbers to try, knowing when trying is enough, and knowing when you need a proof.
How quantitative comparison questions work
A quantitative comparison (QC) question gives you Quantity A and Quantity B. You choose one of four answers:
- Quantity A is greater.
- Quantity B is greater.
- The two quantities are equal.
- The relationship cannot be determined from the information given.
The fourth choice changes how you should think. Choices 1 to 3 each claim that one relationship holds for every value allowed by the problem. Choice 4 claims that the allowed values disagree. Your task is to decide whether the relationship is the same for all allowed values or whether it can change.
- To prove choice 4, you need two allowed values that give different outcomes. Two such tests are enough.
- To justify choice 1, 2, or 3, passing a few tests is not enough. You need a reason the outcome cannot change, such as a factorization or a remainder argument.
Choosing test numbers deliberately
Random test numbers tend to be ordinary, such as 3, 5, or 10. GRE writers set traps at the unusual values. Use this checklist and stop as soon as two tests disagree.
| Test value | Why it catches traps |
|---|---|
| 0 | Divisible by every nonzero integer, neither positive nor negative, and it makes products and quotients degenerate. |
| 1 | Neither prime nor composite, and 1 raised to any power is 1, so powers do not grow. |
| 2 | The only even prime. Statements like "p is prime, so p is odd" fail here. |
| A negative integer | Squaring flips the sign, and n = dq + r still needs 0 ≤ r < d. |
| A large value | Reveals which quantity grows faster, such as n² against 2n. |
| A value sharing factors with the other numbers | Reveals GCD and LCM effects. |
Only use values the problem allows. If the problem says x is an integer, do not test 1/2. If it says x is positive, do not test 0.
Worked QC examples
Example 1: Powers and special values
x is an integer.
- Quantity A: x²
- Quantity B: x
Try x = 2. Then A = 4 and B = 2, so A is greater. Try x = 1. Then A = 1 and B = 1, so they are equal. Two different outcomes mean the answer is D. Note that x = 0 and x = 1 both give equality, so a learner who only tested those two values would wrongly pick C. The disagreeing test came from a typical value.
Example 2: A remainder that never changes
n is an odd integer.
- Quantity A: the remainder when n² is divided by 8
- Quantity B: 1
Testing n = 3 gives 9, which leaves remainder 1. Testing n = 5 gives 25, remainder 1. Testing n = 7 gives 49, remainder 1. The tests agree, so look for the argument. Write n = 2k + 1. Then n² = 4k² + 4k + 1 = 4k(k + 1) + 1. The product k(k + 1) is two consecutive integers, so it is even, and 4k(k + 1) is a multiple of 8. Thus n² = 8m + 1 for some integer m, and the remainder is always 1. The answer is C.
The argument also covers negative odd n, because negative n still has the form 2k + 1 for some integer k.
Example 3: Positivity matters
k is a positive integer divisible by both 12 and 18.
- Quantity A: k
- Quantity B: 36
The LCM of 12 = 2² × 3 and 18 = 2 × 3² is 2² × 3² = 36. Every common multiple is a multiple of 36, and positivity means k ≥ 36. If k = 36, the quantities are equal. If k = 72, A is greater. The answer is D.
Remove the word "positive" and k could also be 0 or a negative multiple of 36, which would make B greater. The answer is still D, but the reason changes. Always check which constraint your reasoning depends on.
Letting code check your reasoning
During practice, you can automate test numbers to confirm an argument. The function below evaluates both quantities over a set of candidates and reports the outcomes it sees. One outcome suggests an invariant relationship worth proving. Two outcomes confirm choice D.
def compare(qty_a, qty_b, candidates):
outcomes = set()
for n in candidates:
a, b = qty_a(n), qty_b(n)
if a > b:
outcomes.add("A greater")
elif a < b:
outcomes.add("B greater")
else:
outcomes.add("equal")
return sorted(outcomes)
# Example 2: odd n, remainder of n^2 divided by 8 versus 1
odd_values = range(-9, 10, 2)
print(compare(lambda n: n * n % 8, lambda n: 1, odd_values))
# ['equal']
# Example 1: integer x, x^2 versus x
print(compare(lambda x: x * x, lambda x: x, range(-3, 4)))
# ['A greater', 'equal']A single outcome from a finite search is evidence, not proof. The first result matches the algebra above, but the algebra is what justifies the answer.
Factor-based strategies for numeric entry
Numeric entry questions have no answer choices to test against, so factor reasoning does the work.
Example 4: Making a perfect square
What is the smallest positive integer n such that 360n is a perfect square?
Factor 360 = 2³ × 3² × 5. A perfect square has an even exponent on every prime. The exponent of 2 is odd, and so is the exponent of 5. Multiply by 2 × 5 = 10 to get 2⁴ × 3² × 5² = 3600 = 60². The answer is 10. You do not need to test values one at a time.
Example 5: Counting with constraints
How many positive divisors of 360 are odd? An odd divisor can contain no factor of 2, so it comes from 3² × 5. That gives (2 + 1)(1 + 1) = 6 divisors. For comparison, the total of 24 divisors includes 18 even ones.
Check the question's wording before computing. "Positive divisors," "divisors," and "prime divisors" give different counts, and negative divisors double the total.
Common traps
- Assuming positive. "n is an integer" includes 0 and negatives. Divisibility questions with 0 are legal: 0 is divisible by every nonzero integer.
- Treating 1 as prime. It is not. Its only positive divisor is itself.
- Treating 2 as odd or "typical." It is the only even prime.
- Misreading remainders for negatives. The GRE's convention is 0 ≤ r < d. So −7 divided by 5 has quotient −2 and remainder 3.
- Testing only values that satisfy a hidden pattern. If you test only multiples of 6, you will not see behavior that depends on a remainder of 1 or 5.
- Stopping at agreement. Several matching tests do not prove equality. Find the factor or remainder reason.
A routine for exam day
- Underline every constraint: integer, positive, nonzero, prime, distinct.
- Translate the stated facts into a form you can use: a factorization, an n = dq + r statement, or a list of allowed values.
- Test a typical value, then 0, 1, a negative, and 2 where allowed.
- Stop on the first disagreement and answer D.
- If every test agrees, find the structural reason before committing.
Exercise
p is a prime number greater than 3. Quantity A is the remainder when p² is divided by 6. Quantity B is 1. Which relationship holds?
Show answer
Quantity A equals Quantity B (answer C). Test p = 5: 25 leaves remainder 1. Test p = 7: 49 leaves remainder 1. For the argument, a prime greater than 3 is not divisible by 2 or 3, so p is odd and p is not a multiple of 3. Then p² − 1 = (p − 1)(p + 1) is a product of two consecutive even numbers, so it is divisible by 8, and one of the three consecutive integers p − 1, p, p + 1 is a multiple of 3, which cannot be p, so 3 divides (p − 1)(p + 1). Therefore 6 divides p² − 1, and the remainder is 1.
Exercise
n is a positive integer. Quantity A is the number of positive divisors of n². Quantity B is the number of positive divisors of n, multiplied by 2. Which relationship holds?
Show answer
The relationship cannot be determined (answer D). Test n = 1: n² = 1 has 1 divisor and B is 1 × 2 = 2, so B is greater. Test n = 6: 36 = 2² × 3² has 3 × 3 = 9 divisors, and 6 has 4 divisors, so B is 8 and A is greater. The outcomes differ, so the answer is D.