Sub topic 7
Finding an unknown base
This chapter assumes you can convert a numeral from base n to decimal by place-value expansion. It also assumes you can solve linear and quadratic equations, and that you know the units digit of a product depends only on the units digits of the factors. A question in this family gives you an equation written in an unknown base b and asks for b.
The core method
A numeral such as 213 in base b means 2·b² + 1·b + 3. If b is unknown, this is a polynomial in b. The method has four steps:
- Write every numeral in the equation as a polynomial in b.
- Do the arithmetic the equation asks for (add, multiply, compare) on those polynomials.
- Solve the resulting equation for b.
- Check that b is a whole number, that b ≥ 2, and that every digit in the problem is smaller than b.
Step 4 is where most mistakes happen. The digits in the problem set a lower bound on b before you do any algebra. If the largest digit is 7, the base must be at least 8.
One numeral, one equation
Suppose (35) in base b equals 29 in decimal. Expanding gives 3b + 5 = 29, so b = 8. The digits 3 and 5 are both less than 8, so the answer is valid.
A squared form can often be spotted without solving a quadratic. Suppose (121) in base b equals 169. Expanding gives b² + 2b + 1 = 169, which is (b + 1)² = 169. So b + 1 = 13 and b = 12. The negative root b + 1 = −13 would give b = −14, which is not a base.
An equation between numerals
Suppose 12 + 25 = 40, all written in base b. Expand each side:
- 12 becomes b + 2.
- 25 becomes 2b + 5.
- 40 becomes 4b.
The equation is (b + 2) + (2b + 5) = 4b, so 3b + 7 = 4b and b = 7. The largest digit is 5, so any base from 6 up is allowed, and 7 qualifies. Check in decimal: 12 in base 7 is 9, 25 in base 7 is 19, and 9 + 19 = 28 = 4·7, which is 40 in base 7.
Products usually give a quadratic. Suppose 13 × 14 = 230 in base b:
- (b + 3)(b + 4) = b² + 7b + 12
- 230 becomes 2b² + 3b
Setting them equal gives b² + 7b + 12 = 2b² + 3b, which rearranges to b² − 4b − 12 = 0. This factors as (b − 6)(b + 2) = 0. The root b = −2 is rejected, so b = 6. The digits used are at most 4, so base 6 is allowed.
Using the units digit to narrow the search
The units digit of a result depends only on the units digits of the inputs, taken modulo b. This turns many problems into a small divisor search.
In the product above, the units digits are 3 and 4, and 3 × 4 = 12. The result ends in 0, so b must divide 12. The base must exceed 4, so the only candidates are 6 and 12. Testing both in b² − 4b − 12 gives 0 for b = 6 and 84 for b = 12. So b = 6, and no quadratic factoring was needed.
The same idea works for sums and differences. If the units digits add to 13 in decimal and the result ends in 3 with a carry, then b divides 10, since 13 = b + 3 means b = 10. Treat the carry as one unit of b.
A direct reading of one column often gives the base immediately. In base b, "5 + 5 = 12" means 10 = b + 2, so b = 8.
Two bases at once
Some problems write the same number in two different bases. You then get two polynomials in related variables, usually b and b + 1 or b − 1, and set them equal.
Suppose (35) in base b equals (41) in base (b − 1). Then:
- 3b + 5 = 4(b − 1) + 1
- 3b + 5 = 4b − 3
- b = 8
Check the digits: 3 and 5 must be less than 8, and 4 and 1 must be less than 7. Both hold. In decimal, 35 in base 8 is 29 and 41 in base 7 is 29.
When no valid base exists
A solution to the algebra is not automatically an answer. Suppose (75) in base b equals 40 in decimal. Then 7b + 5 = 40, so b = 5. But the digit 7 cannot appear in base 5, since only digits 0 to 4 exist there. The correct conclusion is that no base satisfies the condition.
Other rejections to watch for:
- A root of 0, 1, or a negative number is never a base.
- A fractional root is not a base, so the problem as stated has no solution.
- If the equation is true for every b above some bound (an identity), the problem is under-specified, and the question will normally add a second condition.
Checking by brute force
The search space is small, because b is at least one more than the largest digit and rarely above 16 in exam problems. You can confirm an algebraic answer with a short program.
def v(numeral, base):
value = 0
for ch in numeral:
value = value * base + int(ch, 36)
return value
def find_bases(equation, numerals, limit=36):
smallest = max(int(ch, 36) for s in numerals for ch in s) + 1
return [b for b in range(max(smallest, 2), limit + 1) if equation(b)]
print(find_bases(lambda b: v("13", b) * v("14", b) == v("230", b),
["13", "14", "230"])) # [6]
print(find_bases(lambda b: v("12", b) + v("25", b) == v("40", b),
["12", "25", "40"])) # [7]
print(find_bases(lambda b: v("75", b) == 40, ["75"])) # []The function starts the search at one more than the largest digit, which builds the digit-validity check into the loop. The empty list for 75 matches the conclusion that no base works.
Choosing a method in the exam
| Situation | Fastest method |
|---|---|
| One numeral equals a decimal number | Expand and solve the linear or quadratic equation |
| Sum or difference of numerals | Expand, and the b² terms often cancel, leaving a linear equation |
| Product of numerals | Units-digit test to find divisors of b, then confirm with one full check |
| Same number in bases b and b ± 1 | Expand both and equate |
| Answer options are given | Substitute the options, starting with the smallest valid base |
Substituting options is often the quickest route. Eliminate any option that is not larger than every digit, then test the remaining ones on the units digit first.
Common errors
- Forgetting the rule that every digit must be less than b.
- Expanding a three-digit numeral with b² on the wrong digit. The leftmost digit gets the highest power.
- Treating 10 in base b as ten. It is b.
- Accepting a negative root of a quadratic.
- Solving correctly but not substituting back. A one-line decimal check catches most slips.
Exercise
In base b, 24 × 3 = 102. Find b.
Show answer
Expand: (2b + 4) × 3 = 6b + 12, and 102 becomes b² + 2. So b² + 2 = 6b + 12, which gives b² − 6b − 10 = 0. This has no integer roots (the discriminant 36 + 40 = 76 is not a perfect square), so no base satisfies it as written. The units-digit test agrees: 4 × 3 = 12 must end in 2, so b divides 10. The candidates are b = 5 and b = 10, and the digit 4 allows both, but b = 5 gives 25 − 30 − 10 ≠ 0 and b = 10 gives 100 − 60 − 10 ≠ 0. Neither works, so the numbers as written are inconsistent. Replace the product with 24 × 3 = 132 in base 6 as a check: 16 × 3 = 48 and 132 in base 6 is 36 + 18 + 2 = 56, which also fails. The lesson is that a divisor test narrows candidates but each one must still be checked in the full equation.
Exercise
In base b, 54 + 46 = 122. Find b.
Show answer
Expand: (5b + 4) + (4b + 6) = 9b + 10, and 122 becomes b² + 2b + 2. So b² + 2b + 2 = 9b + 10, giving b² − 7b − 8 = 0, which factors as (b − 8)(b + 1) = 0. Reject b = −1, so b = 8. The largest digit is 6, so base 8 is allowed. Check: 54 in base 8 is 44, 46 in base 8 is 38, and 44 + 38 = 82. The numeral 122 in base 8 is 64 + 16 + 2 = 82.
Exercise
A number is written as 52 in base b and as 61 in base (b − 1). Find b, and say whether the digits are valid.
Show answer
Set 5b + 2 = 6(b − 1) + 1 = 6b − 5, so b = 7. The digits 5 and 2 are less than 7, and the digits 6 and 1 must be less than b − 1 = 6. But the digit 6 is not less than 6, so it is not allowed in base 6. The root fails the digit check, and no valid base exists.