Sub topic 14
Checking Answers and Choosing the Fastest Method
This chapter assumes you can convert between bases, do arithmetic in a non-decimal base, and use digit sums and divisibility rules from the earlier chapters. Its purpose is to help you verify a result in under 20 seconds and pick the shortest route to it. On CAT, a wrong answer costs marks, and a slow correct answer costs time. Both problems are reduced by a small set of habits.
Why checking matters in base and digit problems
Errors in these problems come from a few predictable sources:
- Reading remainders from first to last instead of last to first after repeated division.
- Using a digit that is not allowed in the base, such as a 5 in base 5.
- Carrying or borrowing 10 instead of the base.
- Forgetting that a three-digit number has a leading digit that cannot be zero.
- Off-by-one mistakes when counting digits or pages.
Most of these errors can be detected by one of three checks: a validity check, a size estimate, or a remainder check. The sections below cover each, then give a guide to method selection.
Check 1: Are the digits legal?
In base n, every digit must be an integer from 0 to n − 1. This is the fastest check and catches many mistakes.
- If your answer in base 6 contains an 8, it is wrong.
- If a question gives a numeral such as 3427 in base b, then b must be at least 8, because the largest digit is 7.
- In an unknown-base equation, the base you find must exceed every digit that appears. If you solve and get b = 4 but the problem contains the digit 5, reject that root.
The last point matters for quadratic equations in the base. Solving gives two roots, and often one is negative or too small. The digit rule removes it.
Check 2: Size estimation
A number with k digits in base n lies in a known range:
n^(k−1) ≤ value ≤ n^k − 1
Use this to test a conversion before doing anything else.
- A 4-digit binary number lies between 8 and 15.
- A 3-digit base-5 number lies between 25 and 124.
- A 3-digit hexadecimal number lies between 256 and 4095.
If you convert 213 in base 5 and get 580, the estimate shows the answer must be below 125, so something is wrong. The correct value is 2·25 + 1·5 + 3 = 58.
For the reverse direction, count digits. To write 45 in base 2, note that 32 ≤ 45 < 64, so the answer has 6 digits. The result 101101 has six digits, which agrees.
Check 3: Casting out nines and its base-n version
You know that a number leaves the same remainder mod 9 as its digit sum. This gives a quick check for decimal addition, subtraction and multiplication.
Check 7384 × 23 = 169,832.
- 7384 has digit sum 22, which reduces to 4 (mod 9).
- 23 has digit sum 5.
- The product of remainders is 4 × 5 = 20, which reduces to 2.
- 169,832 has digit sum 1+6+9+8+3+2 = 29, which reduces to 2.
The two remainders match, so the product passes the check.
The check has limits. It cannot detect two errors that cancel out, and it cannot detect swapped digits, because swapping digits leaves the digit sum unchanged. Treat a pass as strong evidence, not proof. Pair it with a size estimate: 7384 × 23 is about 7400 × 23 ≈ 170,000, which agrees.
The same idea in base n
The decimal trick works because 10 leaves remainder 1 when divided by 9. In base n, the number n leaves remainder 1 when divided by n − 1. So a base-n numeral and its digit sum leave the same remainder modulo n − 1.
- In base 8, the digit sum checks divisibility by 7.
- In base 5, the digit sum checks divisibility by 4.
- In base 16, the digit sum checks divisibility by 15.
Example: verify 436 (base 8) + 275 (base 8) = 733 (base 8). Work modulo 7.
- 4 + 3 + 6 = 13, which leaves 6 mod 7.
- 2 + 7 + 5 = 14, which leaves 0 mod 7.
- The sum of remainders is 6.
- 7 + 3 + 3 = 13, which leaves 6 mod 7.
The remainders match, so the sum passes.
Similarly, the last digit of a base-n numeral gives the remainder modulo n. A base-5 number ending in 3 leaves remainder 3 when divided by 5. A binary number is even exactly when it ends in 0.
The following Python code lets you test the base-n rule yourself.
def digit_sum(n, base):
total = 0
while n > 0:
n, r = divmod(n, base)
total += r
return total
for base in (5, 8, 16):
ok = all(digit_sum(x, base) % (base - 1) == x % (base - 1)
for x in range(1, 2000))
print(base, ok) # prints True for each baseCheck 4: Substitute back
For equations, substitution is the most reliable check.
- For an unknown-base equation, convert every numeral to decimal using your answer and confirm that both sides agree.
- For a digit problem such as "a two-digit number exceeds its reversal by 27", write the number as 10a + b, find the digits, then reverse them and subtract. The difference of a number and its reversal is 9(a − b), so a − b must equal 3. A candidate such as 52 gives 52 − 25 = 27. Candidate 63 also works, as do 41 and 74, so apply the other conditions in the problem to pick one.
Always test the answer against every condition stated, not just the one you used to derive it.
Check 5: Parity and last-digit tests
These take a few seconds.
- A product of an even and any number is even.
- The last decimal digit of a product depends only on the last digits of the factors.
- A reversal difference is always a multiple of 9, so if your two-digit difference is not a multiple of 9, you made an error.
The last point can be tested directly:
print(all(((10 * a + b) - (10 * b + a)) % 9 == 0
for a in range(1, 10) for b in range(10))) # TrueCheck 6: Count checks for digit-counting problems
For problems asking how many digits are used to write pages 1 to n, split by length of numeral:
- 1 to 9: 9 numbers with 1 digit, giving 9 digits.
- 10 to 99: 90 numbers with 2 digits, giving 180 digits.
- 100 to 999: 900 numbers with 3 digits, giving 2700 digits.
So pages 1 to 99 use 189 digits. A common slip is to count 10 to 99 as 89 or 91 numbers. The count is 99 − 10 + 1 = 90.
For a digit-frequency problem, such as how many times 1 appears in 1 to 100, use a position-by-position count. In the units place, 1 appears in 1, 11, ..., 91, which is 10 times. In the tens place, it appears in 10 to 19, which is 10 times. The number 100 adds one more in the hundreds place, giving 21. Brute force agrees:
print(sum(str(i).count("1") for i in range(1, 101))) # 21A useful sanity check: in 0 to 99, each digit from 0 to 9 appears equally often in the units place (10 times) and, for digits 1 to 9, in the tens place (10 times).
Choosing the fastest method
Most questions can be solved in more than one way. Use the table to choose.
| Situation | Fastest method | Why |
|---|---|---|
| Base n to decimal, short numeral | Running value: multiply by n, add next digit | No powers to compute |
| Decimal to base n | Repeated division, read remainders upward | Direct and mechanical |
| Binary to or from octal or hex | Group bits in 3s or 4s | Avoids going through decimal |
| Arithmetic in base n, small numbers | Convert to decimal, compute, convert back | Fewer carry errors |
| Arithmetic in base n, answer is a numeral | Work column by column, carrying n | Skips two conversions |
| Unknown base | Write each numeral as a polynomial in b, form the equation | One equation, then apply the digit rule |
| Remainder when divided by 9 or 3 | Digit sum | One pass |
| Divisibility by 11 | Alternating digit sum | Direct test |
| Reversal and digit relations | 10a + b form | Gives a multiple of 9 straight away |
| Digits used in 1 to n | Split by numeral length | Three or four multiplications |
| Multiple-choice with distinct options | Check last digit or digit sum of options | May eliminate three options at once |
Use the answer options
CAT multiple-choice questions give four or five options, which you can exploit.
- Compute the remainder modulo 9 (or n − 1) of the expected answer.
- Compute the same remainder for each option.
- Remove the options that do not match.
Often only one option remains, and no full calculation is needed. This works well for products, sums and conversions. Note that CAT also includes questions without options, so you need to be able to compute the full answer as well.
When to avoid shortcuts
- Do not use grouping for bases that are not powers of one another. Binary groups into octal and hexadecimal, but base 3 does not group into base 5.
- Do not use the digit-sum test to prove an answer is right. It only proves an answer is wrong when it fails.
- Do not trust the first root of an unknown-base equation without checking the digit rule.
A decision flow
The diagram shows a sensible order for a typical base or digit question.
Worked example: combining the checks
Problem: In base b, the equation 25 × 4 = 143 holds (all numerals in base b). Find b, then check.
- Write each side as a polynomial: (2b + 5) × 4 = b² + 4b + 3.
- Expand: 8b + 20 = b² + 4b + 3.
- Rearrange: b² − 4b − 17 = 0.
- The discriminant is 16 + 68 = 84, which is not a perfect square, so there is no integer solution.
That result is a signal. Either the problem was misread or the equation is inconsistent. Retry with 25 × 4 = 124 in base b: 8b + 20 = b² + 2b + 4, so b² − 6b − 16 = 0, which factors as (b − 8)(b + 2) = 0. The root b = 8 is the only positive one. Apply the checks:
- Digit rule: the largest digit is 5, and 8 > 5, so it is valid.
- Substitution: 25 in base 8 is 21, and 21 × 4 = 84. The numeral 124 in base 8 is 64 + 16 + 4 = 84. Both sides agree.
Here the failed first attempt cost a few seconds, and the discriminant check flagged it before time was wasted.
Common mistakes
- Reading remainders in the order they were found.
- Allowing digits that equal or exceed the base.
- Treating the digit-sum test as proof of correctness.
- Using 9 as the modulus in bases other than 10.
- Counting 10 to 99 as 89 numbers.
- Skipping the other conditions after solving the main equation.
Exercise
A student converts 3142 (base 5) to decimal and gets 412. Without redoing the full conversion, show that the answer is wrong, then find the correct value.
Show answer
Size check: a 4-digit base-5 number lies between 125 and 624, so 412 is plausible by size and this check passes. Use the remainder check instead. In base 5, the digit sum matches the number modulo 4. The digit sum is 3 + 1 + 4 + 2 = 10, which leaves 2 mod 4. But 412 leaves 0 mod 4 (412 = 4 × 103). The remainders differ, so 412 is wrong. Correct value: 3·125 + 1·25 + 4·5 + 2 = 375 + 25 + 20 + 2 = 422. Check: 422 = 4 × 105 + 2, which leaves remainder 2. It matches.
Exercise
Pages of a book are numbered 1 to 150. How many digits are used in total? Give a quick check that rules out an answer of 390.
Show answer
Pages 1 to 9 use 9 digits. Pages 10 to 99 are 90 numbers with 2 digits, giving 180. Pages 100 to 150 are 51 numbers with 3 digits, giving 153. Total: 9 + 180 + 153 = 342. Check: pages 1 to 99 use 189 digits, and the remaining 51 pages add at most 3 each, which is 153, so the total cannot exceed 342. The value 390 is too large.
Exercise
In base b, the numeral 1b3 does not make sense, so consider the equation 13 + 24 = 40, with all numerals in base b. Find b and verify it.
Show answer
Write each side as a polynomial: (b + 3) + (2b + 4) = 4b. This gives 3b + 7 = 4b, so b = 7. Digit rule: the largest digit is 4, and 7 > 4, so the base is valid. Substitution: 13 in base 7 is 10, and 24 in base 7 is 18. Their sum is 28. The numeral 40 in base 7 is 4 × 7 = 28. Both sides agree.