Sub topic 2
Using Ordered Options to Narrow the Range
This chapter assumes you can solve linear equations, work with ratios, and check remainders when dividing by a number. When the options are in increasing order, you can test one or two of them and settle the answer without checking all four.
Using ordered options to narrow the range
If the options are sorted, a test at one option tells you which side of the answer you are on. Suppose you need the smallest integer x with x² > 200, and the options are 13, 14, 15, and 16.
# Smallest integer x with x**2 > 200. Options: 13, 14, 15, 16.
options = [13, 14, 15, 16]
print(14**2 > 200) # False (196), so 13 and 14 are out
print(15**2 > 200) # True (225)
# 14 fails and 15 passes, so the smallest integer is 15.Testing 14 removes two options at once. Testing 15 confirms the answer. Two checks replace four.
Equations and inequalities
For an equation, substitute each candidate and see whether both sides match. For example, if 2x + 7 = 31 with options 10, 12, 14, and 16, test 12 first. Since 2(12) + 7 = 31, the answer is 12.
For an inequality, test the boundary option. If an option makes the inequality false, every option on the same side is also false.
Ratio, age, mixture and work problems
Back-substitution works well with ratios. Take two numbers in the ratio 3:5 with a sum of 48, and options 18, 25, 30, and 40 for the smaller number. Testing 18 gives a larger number of 30, and 18 : 30 reduces to 3 : 5. The sum is 48, so 18 is the answer.
Check every condition, not only the first one. An option that fits the ratio but not the sum is wrong.
Remainders and divisibility
Remainder questions suit ordered options. Test the smallest option first, then move up. The code below finds the smallest number that leaves remainders 2, 3, and 4 when divided by 3, 4, and 5.
# Smallest n leaving remainders 2, 3, 4 when divided by 3, 4, 5.
options = [29, 59, 119, 179]
for n in options:
if n % 3 == 2 and n % 4 == 3 and n % 5 == 4:
print(n) # prints 59
breakThe number 29 fails the mod-4 condition, so 59 is the first option that passes all three. The word "smallest" is what makes 59 the answer, because 119 and 179 also pass.
> Note: Test options in ascending order, and stop at the first one that passes all conditions when the question asks for the smallest value.
Exercise
Exercise
The options for the smallest integer n with n² > 500 are 21, 22, 23, and 24. Which option is the answer, and which single test decides it?
Show answer
Test 22: 22² = 484, which is not greater than 500, so 22 fails. Test 23: 23² = 529, which passes. The answer is 23, and the test at 22 shows that 21 and 22 are out.