Unit 1 · Part 1 — Base Conversion 0%
STEP 1 OF 24 · Lesson Opening

Today: Base Conversion

Turn base notation into place-value algebra, then practise with verified past-paper examples.

📌 What you will learn today

Topic
Working with numbers written in bases other than 10 — also called positional notation.
Category
Number Theory (NT) — sub-topic Base Conversion.
Solves these AIMO problems
2014 Q1 2015 Q1 2016 Q2 2017 Q1 2018 Q2 2019 Q2 2010 Q2 2013 Q3
Eight past-paper problems — all of them solvable with one technique.
AoPS Reference
Optional background: Introduction to Number Theory by Mathew Crawford. Chapters 8–9 on base notation and arithmetic. This lesson is self-contained. Publisher's contents.
Why this matters
Base conversion turns unfamiliar notation into ordinary algebra. The verified examples below show how to use this technique in past problems. Future topic coverage, marks and selection criteria can vary; completing this lesson does not guarantee an examination score or camp selection.
Time required
About 60–75 minutes for the full lesson, plus 30 minutes practising past papers afterwards.

How this lesson is structured

We will not start with formulas. We will start with a picture — counting coins of strange denominations. Once you see why base notation works, the algebra writes itself.

  1. Phase 1 (Steps 2–4): Visual intuition. Coins, place-value charts, number lines.
  2. Phase 2 (Steps 5–7): Derive the formula three different ways with three different examples.
  3. Phase 3 (Steps 8–12): Five worked examples, fully explained.
  4. Phase 4 (Step 13): Five practice problems with hints and full solutions.
  5. Phase 5 (Steps 14–21): Eight real AIMO past papers in exam format with progressive hints.
  6. Step 22: Two synthesis problems.
  7. Step 23: Lesson quiz (3 problems, auto-graded).
  8. Step 24: Cheat sheet + self-assessment.
Pedagogical note for the student: Olympiad coaching takes patience. Read each step at least twice. The arrow keys (← →) move between steps. Skip nothing in Phase 1 — the visual intuition is what makes the algebra later feel natural.
STEP 2 OF 24 · Phase 1 · Visual

The coin picture

Forget formulas. Start with money.

Imagine you live in a country where the only coins available have values 1¢, 5¢, and 25¢. (No 2¢, no 10¢, no banknotes — just these three.)

You owe a shopkeeper 14 cents. What coins do you give?

two 5-cent coins + four 1-cent coins Total: 2 × 5 + 4 × 1 = 14 cents

Two 5¢ coins and four 1¢ coins make 14¢. We didn't need a 25¢ coin.

The compact way to write this transaction

Instead of saying "two fives and four ones", a shorthand is to write a two-digit number:

Compact notation
(2 4)5
Read this as
"Two fives and four ones"
— the small 5 at the bottom is the base.

The leftmost digit (2) counts how many fives.
The rightmost digit (4) counts how many ones.
Total value: 2·5 + 4·1 = 14.

🔑 The big idea: "Base 5" means we group items into bundles of 5. Each digit counts how many bundles of a certain size. The position of the digit tells you the bundle size. This is exactly how our usual base-10 numbers work — but with bundles of 10 instead of bundles of 5.
STEP 3 OF 24 · Phase 1 · Visual

Place value — the same idea, drawn as a chart

Same coin idea, different picture. Place-value chart for base 5.

A place-value chart is a row of boxes. Each box has a fixed value (a power of the base). The digit you put in the box says how many of that value you have.

Base-5 chart for the number 14

\(5^{2}\) = 25
\(5^{1}\) = 5 2
\(5^{0}\) = 1 4

Read across: 0 twenty-fives, 2 fives, 4 ones. (24)5 = 14.

Now try 30 cents in base 5

30 cents — what's the largest coin we can use? A 25¢ coin. After paying 25, we owe 5 more — exactly one 5¢ coin. No 1¢ needed.

\(5^{2}\) = 25 1
\(5^{1}\) = 5 1
\(5^{0}\) = 1 0

1 twenty-five + 1 five + 0 ones = 30. So 30 = (110)5.

One more — try 73

How many 25s fit in 73? Two (50), with 23 left over. How many 5s in 23? Four (20), leaving 3. Three 1s.

\(5^{2}\) = 25 2
\(5^{1}\) = 5 4
\(5^{0}\) = 1 3

Check: 2·25 + 4·5 + 3 = 50 + 20 + 3 = 73 ✓. 73 = (243)5.

🎨 Pattern — important: The digit in each column says how many of that column's value you have. Column values go up by powers of the base, reading right to left: 1, b, \(b^{2}\), \(b^{3}\), …
STEP 4 OF 24 · Phase 1 · Visual

Other bases work the same way

Try base 4, base 7, base 2 — same picture, different bundle sizes.

Base 4 — bundles of four

In base 4, the column values are 1, 4, 16, 64, … (powers of 4). The digits allowed are 0, 1, 2, 3 (must be less than the base).

\(4^{2}\) = 16 1
\(4^{1}\) = 4 3
\(4^{0}\) = 1 2

(132)4 = 1·16 + 3·4 + 2·1 = 16 + 12 + 2 = 30.

Base 7 — bundles of seven

Column values 1, 7, 49, 343, … Digits 0–6 only.

\(7^{2}\) = 49 2
\(7^{1}\) = 7 5
\(7^{0}\) = 1 3

(253)7 = 2·49 + 5·7 + 3 = 98 + 35 + 3 = 136.

Base 2 (binary) — bundles of two

Column values 1, 2, 4, 8, 16, … Digits 0 or 1 only.

\(2^{3}\) = 8 1
\(2^{2}\) = 4 0
\(2^{1}\) = 2 1
\(2^{0}\) = 1 1

(1011)2 = 1·8 + 0·4 + 1·2 + 1·1 = 11.

The "max digit" rule

⚠ In base b, every digit must be in the range 0, 1, 2, …, b−1. There is no digit equal to or larger than the base.
  • Base 2: digits are 0, 1
  • Base 5: digits are 0, 1, 2, 3, 4
  • Base 7: digits are 0, 1, 2, 3, 4, 5, 6
  • Base 10: digits are 0, 1, 2, …, 9
Writing (35)5 is illegal — there is no digit "5" in base 5. This rule is a frequent source of AIMO marks.
STEP 5 OF 24 · Phase 2 · Derivation 1 of 3

Derivation — first pass with concrete numbers

Take the picture you just saw and write it out in algebra. Slowly.

We want a general way to convert (d2d1d0)b to base 10.

Worked through one example: convert (243)5 to base 10

From Step 3 we already know the answer is 73. Let's see how to write it as algebra.

Step 1. Identify the digits and the base.

  • The leftmost digit is 2 — call this d2.
  • The middle digit is 4 — call this d1.
  • The rightmost digit is 3 — call this d0.
  • The base is 5.

Step 2. Each digit is multiplied by a power of the base, depending on its position.

  • d0 (rightmost) goes with \(5^{0}\) = 1.
  • d1 (next) goes with \(5^{1}\) = 5.
  • d2 (next) goes with \(5^{2}\) = 25.

Step 3. Add them up.

\((243)_{5} = d_{2}\cdot 5^{2} + d_{1}\cdot 5^{1} + d_{0}\cdot 5^{0}\) \( = 2\cdot 25 + 4\cdot 5 + 3\cdot 1\) \( = 50 + 20 + 3\) \( = 73\)

That's it. The picture said the same thing the algebra now says. The "place" of a digit decides its weight.

STEP 6 OF 24 · Phase 2 · Derivation 2 of 3

Derivation — second pass with a different example

Same algebra, fresh numbers. Notice what changes and what stays the same.

Convert (1011)2 to base 10

This time the base is 2 (binary) and there are 4 digits. Same procedure, more digits.

Step 1. Identify digits and base.

  • d3 = 1 (leftmost), d2 = 0, d1 = 1, d0 = 1.
  • Base b = 2.

Step 2. Match each digit to its power.

  • d0 with \(2^{0}\) = 1.
  • d1 with \(2^{1}\) = 2.
  • d2 with \(2^{2}\) = 4.
  • d3 with \(2^{3}\) = 8.

Step 3. Add.

\((1011)_{2} = d_{3}\cdot 2^{3} + d_{2}\cdot 2^{2} + d_{1}\cdot 2^{1} + d_{0}\cdot 2^{0}\) \( = 1\cdot 8 + 0\cdot 4 + 1\cdot 2 + 1\cdot 1\) \( = 8 + 0 + 2 + 1\) \( = 11\)

What is identical between Pass 1 and Pass 2?

What is different?

The examples suggest the general place-value rule. Its justification is the definition of base-b notation: each position counts bundles b times larger than the position to its right. We now write that rule explicitly.

STEP 7 OF 24 · Phase 2 · Derivation 3 of 3

The formula — finally

Now we generalise. But we keep the concrete example beside it.

Base-to-decimal formula
(dn…d1d0)b  =  dn·\(b^{n}\) + dn−1·\(b^{n−1}\) + … + d1·b + d0
With our (243)5 example: n = 2, b = 5, d2=2, d1=4, d0=3
(243)5 = 2·\(5^{2}\) + 4·5 + 3 = 73
📖 Variable dictionary
  • b — the base. An integer ≥ 2. (Base 1 is not used.)
  • di — the digit in position i, counted from the right starting at 0. Each digit must be in the range 0 to b−1.
  • n — the position of the leftmost (highest) digit. A 3-digit number has n = 2; a 4-digit number has n = 3.
Two rules you must always check:
  1. Each digit di satisfies 0 ≤ di ≤ b − 1.
  2. The leading digit dn is non-zero (otherwise the number would have fewer than n + 1 digits).
AIMO loves to test rule (1). If you ignore it you will lose marks.

The shape that AIMO problems will ask

AIMO does not ask "what is (243)5 in base 10?" — that's too easy. Instead AIMO turns the formula around. They tell you the value of the base-b expression, but leave b unknown, and ask you to find it. So you have to solve an equation. That's where the next steps go.

Phase 2 complete. You now know what base notation means and how to convert base → decimal. Next: what if the base is unknown? This is the central idea in the unknown-base examples below.
STEP 8 OF 24 · Phase 3 · Worked Example 1

Worked Example 1 — find the unknown base

The simplest "unknown base" question. Master this, and you've unlocked AIMO Q1.

Worked Example 1
Suppose (111)b = 31. Find the base b.
Type your answer (single integer):
💡 Hints — open as needed
You are told that a 3-digit string "111" written in some base b equals the decimal number 31. Three pieces of information matter:
  • The string is "111" — every digit is the digit 1.
  • The base b is unknown — that's what we're solving for.
  • Since the digits are only 1s, the constraint "every digit must be < b" only requires b ≥ 2 (the minimum legal base).
Translate the base-b notation into a polynomial in b using the place-value formula from Step 7. Then set that polynomial equal to 31, which gives you a quadratic in b. Solve the quadratic, then reject any non-integer or negative root. This three-step recipe (expand → equate → solve) is the foundation for every base-equation problem in AIMO.
Answer: \(b = 5\)

Read the problem

A 3-digit string "111" in base b equals decimal 31. Find b.

Strategy

Expand using the place-value formula, set equal to 31, solve the quadratic, reject invalid roots.

Solution

Expand. Each "1" sits in a different place value:

\((111)_{b} = 1\cdot b^{2} + 1\cdot b + 1 = b^{2} + b + 1\)

Set equal to 31.

\(b^{2} + b + 1 = 31\) \(b^{2} + b - 30 = 0\)

Factor. Two numbers multiplying to −30, summing to +1: 6 and −5.

\((b + 6)(b - 5) = 0 \to b = -6 or 5\)

Choose the valid root. A base must be a positive integer ≥ 2. Reject −6. So b = 5.

\(b = 5\)

Verify

\((111)_{5} = 1\cdot 25 + 1\cdot 5 + 1 = 31 ✓\)

Reflection

Three lessons:

  1. Every base equation expands into a polynomial in b. After that it's normal algebra.
  2. Quadratics in b usually factor cleanly in AIMO. If yours doesn't, recheck your expansion.
  3. Always reject negative / non-integer roots. Base must be ≥ 2 and ≥ (max digit + 1).
Tried first?
STEP 9 OF 24 · Phase 3 · Worked Example 2

Worked Example 2 — squaring an unknown-base number

A genuine AIMO 2014 Q1 problem, but treated here as a teaching example.

Worked Example 2 · (= AIMO 2014 Q1)
In base b, the square of (24)b equals (521)b. Find b in base 10.
Type your answer (single integer):
💡 Hints — open as needed
Two different expressions are written in the same base b. The left side is "two-four squared" — that's a 2-digit number squared. The right side is the 3-digit string "521". They are claimed equal.

Notice the digits: the highest digit appearing anywhere is 5 — so whatever b is, it must be at least 6 (digit must be < base).
Don't try to square the notation "(24)b" symbolically — convert each side to a polynomial in b first, then square. Setting the two sides equal will give a quadratic in b. Solve, then verify your b exceeds every digit appearing in the problem.
What does (24)b equal as a number in base 10?
And once you have that, what is its square? Is it easier to expand \((2b + 4)^{2}\) as a sum of three terms, or to leave it as a product?
Answer: \(b = 15\)

Solution

Convert each side to a polynomial in b.

\((24)_{b} = 2b + 4\) \((521)_{b} = 5b^{2} + 2b + 1\)

Square the left side.

\((2b + 4)^{2} = 4b^{2} + 16b + 16\)

Set the two equal and tidy.

\(4b^{2} + 16b + 16 = 5b^{2} + 2b + 1\) \(0 = b^{2} - 14b - 15\) 0 = (b − 15)(b + 1) → b = 15 or −1

Validity: reject b = −1. b = 15 ≥ 6 (the max digit + 1). ✓

\(b = 15\)

Verify

\((24)_{15} = 30 + 4 = 34, 34^{2} = 1156\) \((521)_{15} = 1125 + 30 + 1 = 1156 ✓\)

Reflection

Always convert both sides to polynomials before squaring. The validity check (digit < base) is your safety net for arithmetic errors.

Tried first?
STEP 10 OF 24 · Phase 3 · Worked Example 3

Worked Example 3 — two related bases

When the same number is written in two bases that are linked.

Worked Example 3 · (= AIMO 2017 Q1)
A number x is 111 when written in base b, and is 212 when written in base b − 2. What is x in base 10?
Type your answer (single integer):
💡 Hints — open as needed
One single number x has two different representations: as "111" in some base b, and as "212" in the base just two below it. The bases differ by exactly 2 — so really there's only ONE unknown, not two.

Digit constraints: in (111)b the highest digit is 1, so b ≥ 2. In (212)b−2 the highest digit is 2, so b − 2 ≥ 3, meaning b ≥ 5. Combined: b ≥ 5.
Since both representations equal the same number x, set them equal as polynomials in b. This gives one equation with one unknown. Solve for b, then plug back to get x. The only place this can go wrong is the algebra of expanding \((b − 2)^{2}\) — be patient there.
What if you write each side using the place-value formula?
Left side becomes a polynomial in b, right side becomes a polynomial in (b − 2). When you expand \((b − 2)^{2}\) carefully, the equation collapses to a clean quadratic.
Answer: \(x = 57\)

Solution

Expand both expressions.

\((111)_{b} = b^{2} + b + 1\) \((212)_{b-2} = 2(b - 2)^{2} + (b - 2) + 2\)

Expand the right side.

\(= 2(b^{2} - 4b + 4) + b - 2 + 2\) \(= 2b^{2} - 8b + 8 + b\) \(= 2b^{2} - 7b + 8\)

Set equal and tidy.

\(b^{2} + b + 1 = 2b^{2} - 7b + 8\) \(0 = b^{2} - 8b + 7 = (b - 1)(b - 7)\) b = 1 or 7

Validity: b = 1 invalid (base 1 doesn't exist; also b − 2 = −1). b = 7 → base b−2 = 5, digit 2 < 5 ✓.

Compute x.

\(x = (111)_{7} = 49 + 7 + 1 = 57\)
\(x = 57\)

Verify

\((212)_{5} = 50 + 5 + 2 = 57 ✓\)

Reflection

Whenever you see "base b" and "base b ± k" in the same problem, treat it as a one-variable problem. The expansion of \((b ± k)^{2}\) is the only step that bites.

Tried first?
STEP 11 OF 24 · Phase 3 · Worked Example 4

Worked Example 4 — two unrelated unknown bases

When you have two unknowns and one equation — bring in the digit constraint.

Worked Example 4 · (= AIMO 2015 Q1)
A number written in base a is (123)a. The same number written in base b is (146)b. Find the minimum value of a + b.
Type your answer (single integer):
💡 Hints — open as needed
One number is written two ways: as "123" in base a, and as "146" in base b. Equating the two place-value expressions links the bases. Completing the squares gives \((a+1)^2=(b+2)^2\); since both bases are positive, this implies \(a=b+1\).

Hidden constraint: the digit-bound rule. The digit 3 in (123)a requires a ≥ 4. The digit 6 in (146)b requires b ≥ 7. Those bounds are your second piece of information.
Use \(a=b+1\). Then \(a+b=2b+1\), which increases with \(b\). The digit 6 requires \(b\ge7\), so the minimum occurs at \(b=7\), \(a=8\), giving \(a+b=15\). Verify that both representations have value 83.
What's the smallest legal value of b?
Can you complete a square on each side of \(a^2+2a+3=b^2+4b+6\)? Use positivity to choose the valid square-root relation, then minimise the resulting sum under the digit bounds.
Answer: \(\min (a + b) = 15 (a = 8, b = 7)\)

Solution

Set up the equation.

\(a^{2} + 2a + 3 = b^{2} + 4b + 6\)

Digit bounds: a ≥ 4, b ≥ 7.

Try smallest b = 7:

\(a^{2} + 2a + 3 = 49 + 28 + 6 = 83\) \(a^{2} + 2a - 80 = 0\) \(a = \frac{(-2 + \sqrt 324)}{2} = \frac{(-2 + 18)}{2} = 8\)

a = 8 (≥ 4 ✓). Both bases legal.

For every allowed pair, completing the squares gives (a + 1)² = (b + 2)². Positivity forces a = b + 1. Hence a + b = 2b + 1 ≥ 15, attained at b = 7.

\(\min (a + b) = 8 + 7 = 15\)

Verify

(123)8 = 83   and   (146)7 = 83 ✓

Reflection

Completing the squares gives a = b + 1, so the digit bound proves the minimum. A working example alone is not a proof of minimality.

Tried first?
Phase 3 done. Four worked examples — all solved by the expand → equate → solve → check digits recipe. Now Phase 4 (practice) and Phase 5 (real AIMO under exam conditions).
STEP 12 OF 24 · Phase 3 · Worked Example 5 ⭐⭐⭐⭐

Worked Example 5 — Pattern reinforcement

Original problem (not from past papers). Same toolkit as WE1–WE4, new framing.

Worked Example 5 · ⭐⭐⭐⭐
Find the smallest base b such that (123)b is divisible by 3.
Type your answer (single integer):
💡 Hints — open as needed
Place-value expansion: \((123)_b=b^2+2b+3\). The largest digit is 3, so the base must satisfy \(b\ge4\). Test the allowed bases for divisibility by 3.
Express in base 10, then test smallest valid b. This combines (1) place-value expansion and (2) digit-bound minimum, then (3) modular check.

Solution

\((123)_{b} = b^{2} + 2b + 3\) Digit bound: the digit 3 must be legal, so b ≥ 4. Start at the smallest allowed base. b = 4: 16 + 8 + 3 = 27, and 27 = 3 × 9 ✓

The digit-bound forces b ≥ 4, so b = 4 is the smallest base we are even allowed to use — and it already works: (123)4 = 27 = 3 × 9. (Quick check with no arithmetic: (123)b = \(b^{2}\) + 2b + 3 ≡ b(b + 2) (mod 3); at b = 4 this is 4 × 6 = 24 ≡ 0.) So the smallest valid base is b = 4.

\(b = 4\)

Verify

The technique stack used: (1) expand into b-polynomial, (2) impose digit lower bound, (3) check divisibility test. These tools apply to base-notation problems.

Tried first?
STEP 13 OF 24 · Phase 4 · Practice

Practice problems — try yourself

Five problems graded easy → harder. Hint and solution available for each.

Practice 1 · easy
Convert (345)6 to base 10.
Use the formula. Each digit times the appropriate power of 6.
137
\((345)_{6} = 3\cdot 36 + 4\cdot 6 + 5\) \( = 108 + 24 + 5 = 137\)
Practice 2 · easy
Find the base b such that (120)b = 24.
Expand (120)b = \(b^{2}\) + 2b. Set equal to 24 and solve.
b = 4
\(b^{2} + 2b + 0 = 24\) \(b^{2} + 2b - 24 = 0\) \((b - 4)(b + 6) = 0\) \(b = 4 (\text{rejecting }-6)\)

Check digits 1, 2, 0 are all less than 4 ✓. Verify: (120)4 = 16 + 8 + 0 = 24 ✓.

Practice 3 · medium
A 2-digit number in base 7 has the same value as a 2-digit number in base 9 with its digits reversed. If the base-7 number has digits a and b, find them. (Both digits non-zero.)
Set up the equation 7a + b = 9b + a. Use the constraints on digits.
a = 4, b = 3 (giving 31)

Let the base-7 number be (ab)7. Reversed in base 9: (ba)9.

\(7a + b = 9b + a\) \(6a = 8b\) \(3a = 4b\)

So 4 must divide a. With a ≤ 6 (base 7) and a ≥ 1, the only option is a = 4, giving b = 3. Check b ≤ 6 (base 7) and a ≤ 8 (base 9). Both fine.

The number is (43)7 = 31, and (34)9 = 31 ✓.

Practice 4 · medium
For which value of b does (202)b = (144)b+1?
Two related bases — same trick as Worked Example 3. Expand both, equate, solve.
b = 7
\((202)_{b} = 2b^{2} + 2\) \((144)_{b+1} = (b+1)^{2} + 4(b+1) + 4 = b^{2} + 6b + 9\) \(2b^{2} + 2 = b^{2} + 6b + 9\) \(b^{2} - 6b - 7 = 0\) \((b - 7)(b + 1) = 0 \to b = 7\)

Reject b = −1 (a base must be positive). Digit check: (202)7 needs base > 2 ✓, (144)8 needs base > 4 ✓. Verify: (202)7 = 2·49 + 2 = 100 and (144)8 = 64 + 32 + 4 = 100. ✓

Practice 5 · harder
A 2-digit number written in base 7 equals the reverse of its two digits read in base 9. Find the number in base 10.
Let the digits be a and b. Then (ab)7 = 7a + b and the reverse (ba)9 = 9b + a. Set them equal.
31
\(7a + b = 9b + a\) \(6a = 8b \to 3a = 4b\) a = 4, b = 3 (smallest digits legal in both bases)

Digit check: a = 4 and b = 3 are both < 7 and < 9 ✓. Verify: (43)7 = 28 + 3 = 31 and (34)9 = 27 + 4 = 31. ✓ The number is 31.

STEP 14 OF 24 · Phase 5 · AIMO Past Paper

AIMO 2014 · Q1

Exam mode — Squaring an unknown-base number. Solve on paper first; hints are on the right.

AIMO 2014 · Q1 · [2 marks]
In base b, the square of (24)b is (521)b. Find the value of b in base 10.
Your answer (a positive integer):
💡 Hints — open as needed
5-step model
1. Keywords: "square of (24)b", unknown base b
2. Known: LHS = (24)b squared, RHS = (521)b
3. Unknown: b
4. Intermediate: polynomial expansions on each side
5. Hidden constraints: b is a positive integer ≥ 6 (since digit 5 must be valid)

Original analysis:
Two expressions are written in the same unknown base b. The left is a 2-digit number "24" and the right is the 3-digit "521" — and the LEFT is squared.

Watch the digits: the largest digit anywhere is 5. So whatever b turns out to be, it must satisfy b ≥ 6 — otherwise the digit 5 would be illegal.
Translate both sides into polynomials in b using the place-value formula. Then square the LHS, set it equal to the RHS, and you'll get a quadratic in b. Solve, reject any negative root, and verify the digit-bound.

Why this technique works in general: Anywhere you see digits in an unknown base, place-value expansion (digit × base raised to its position index) is the universal first step — it converts notation into algebra.

Read the problem

A 2-digit number squared equals a 3-digit number, all in unknown base b. Find b.

Strategy

Convert both sides to polynomials in b, set them equal, solve the quadratic, verify digits.

Solution

\((24)_{b} = 2b + 4\) \((521)_{b} = 5b^{2} + 2b + 1\) \((2b + 4)^{2} = 4b^{2} + 16b + 16\) \(4b^{2} + 16b + 16 = 5b^{2} + 2b + 1\) \(0 = b^{2} - 14b - 15\) (b − 15)(b + 1) = 0 → b = 15 or −1
\(b = 15\)

Verify

(24)15 = 34, \(34^{2}\) = 1156. (521)15 = 5·225 + 30 + 1 = 1156 ✓

Tried everything?
STEP 15 OF 24 · Phase 5 · AIMO Past Paper

AIMO 2017 · Q1

Exam mode — Two related bases. Solve on paper first; hints are on the right.

AIMO 2017 · Q1 · [2 marks]
A number x is 111 when written in base b, and is 212 when written in base b − 2. What is x in base 10?
Your answer (a positive integer):
💡 Hints — open as needed
5-step model
1. Keywords: "same number in two bases", b and b−2
2. Known: (111)b = (212)b−2
3. Unknown: value of x in base 10
4. Intermediate: polynomial in b on each side
5. Hidden constraints: b ≥ 5 so b−2 ≥ 3 (digit 2 must be valid)

Original analysis:
One single number x has two representations: as "111" in base b, and as "212" in base (b−2). The bases differ by exactly 2 — there's really only ONE unknown.

Digit constraints: "111" → b ≥ 2. "212" in base (b−2) → digit 2 must be valid → b − 2 ≥ 3, so b ≥ 5.
Both representations equal the same number, so set them equal as polynomials in b. This gives one equation with one unknown. Solve for b, then compute x by plugging back. The only place this gets tricky is the algebra of expanding \((b − 2)^{2}\) — be patient.

Why this technique works in general: When the same value is expressed in two related bases, equating the expansions gives a single polynomial equation — works for any "compare bases" problem.

Read the problem

One number, two representations: (111)b and (212)b−2. Find x in base 10.

Strategy

Two related bases (differ by 2) means one unknown. Expand, equate, solve.

Solution

\((111)_{b} = b^{2} + b + 1\) \((212)_{b-2} = 2(b-2)^{2} + (b-2) + 2 = 2b^{2} - 7b + 8\) \(b^{2} + b + 1 = 2b^{2} - 7b + 8\) \(0 = b^{2} - 8b + 7 = (b-1)(b-7)\) \(b = 7 (b = 1\text{ invalid})\) \(x = 49 + 7 + 1 = 57\)
\(x = 57\)

Verify

(212)5 = 50 + 5 + 2 = 57 ✓

Tried everything?
STEP 16 OF 24 · Phase 5 · AIMO Past Paper

AIMO 2015 · Q1

Exam mode — Two unrelated unknown bases. Solve on paper first; hints are on the right.

AIMO 2015 · Q1 · [2 marks]
(123)a = (146)b. Find the minimum value of a + b.
Your answer (a positive integer):
💡 Hints — open as needed
5-step model
1. Keywords: "same value in two unknown bases", minimum sum
2. Known: specific number representation
3. Unknown: minimum a + b
4. Intermediate: expansion polynomial
5. Hidden constraints: digit-bound + integer constraint

Original analysis:
One single number is written two ways: as "123" in base a, and as "146" in base b. The bases a and b are independent — no formula relating them.

Hidden constraints from digit-bound rule: digit 3 in (123)a requires a ≥ 4. Digit 6 in (146)b requires b ≥ 7. So your search starts at a = 4, b = 7.
Complete the squares to relate a and b exactly, then use the digit bounds to prove a lower bound for a + b. Exhibit legal bases attaining that bound.

Why this technique works in general: Place-value expansion is the universal translator from base notation to algebra.
If you fix b = 7, what does the equation give you for a?
And once you find that a, would increasing b ever produce a smaller a + b? Think about how fast each side changes.

Read the problem

One number, two unknown bases. Minimise a + b under digit-bound constraints.

Strategy

Digit bounds: a ≥ 4, b ≥ 7. Pin b at 7 (smallest legal), solve for a, verify.

Solution

\(a^{2} + 2a + 3 = b^{2} + 4b + 6\) try b = 7: \(a^{2} + 2a + 3 = 83\) \(a^{2} + 2a - 80 = 0\) \(a = \frac{(-2 + \sqrt 324)}{2} = 8\)

For every allowed pair, (a + 1)² = (b + 2)² and positivity gives a = b + 1. Thus a + b = 2b + 1 ≥ 15, and (8, 7) attains the bound.

\(\min (a + b) = 8 + 7 = 15\)

Verify

(123)8 = 64 + 16 + 3 = 83. (146)7 = 49 + 28 + 6 = 83 ✓

Tried everything?
STEP 17 OF 24 · Phase 5 · AIMO Past Paper

AIMO 2016 · Q2

Exam mode — Digit-shift constraint. Solve on paper first; hints are on the right.

AIMO 2016 · Q2 · [2 marks]
A 3-digit number in base 7 is also a 3-digit number when written in base 6, but each digit has increased by 1. What is the largest value (in base 10) this number can have?
Your answer (a positive integer):
💡 Hints — open as needed
5-step model
1. Keywords: "convert/equate", 3-digit
2. Known: two base representations
3. Unknown: value or base
4. Intermediate: polynomial form
5. Hidden constraints: digit < base, integer

Original analysis:
A single 3-digit number has TWO representations: as "abc" in base 7, and as "(a+1)(b+1)(c+1)" in base 6 — every digit incremented by 1.

Digit constraints (subtle): in base 6 the digits a+1, b+1, c+1 must be at most 5 (base 6 digits are 0–5). So a, b, c ≤ 4. In base 7 they must be at most 6 (auto-satisfied). Also a ≥ 1 (leading digit).
Translate both representations into polynomials in a, b, c using place values, then equate. Most of the digit terms cancel, leaving a single linear constraint. Combined with the digit bounds (a ∈ {1..4}, b, c ∈ {0..4}), this collapses to a tiny search. For "largest", maximise a first, then b, then c.

Why this technique works in general: Polynomial-in-base conversion + integer / digit-bound constraints solve all "find the base/value" problems.
What does setting (abc)7 = ((a+1)(b+1)(c+1))6 give you after expanding both sides?
If you simplify, most of the terms cancel — and you get a surprisingly clean equation in only TWO variables. Which two?

Read the problem

(abc)7 = ((a+1)(b+1)(c+1))6. Find the largest base-10 value.

Strategy

Equate the expansions, solve a Diophantine equation under digit constraints, then maximise.

Solution

\(49a + 7b + c = 36(a+1) + 6(b+1) + (c+1)\) \( = 36a + 6b + c + 43\) \(13a + b = 43\) a = 3, b = 4 (only fit with a ∈ {1..4}, b ∈ {0..4}) \(c = 4 (\max )\) \(N = (344)_{7} = 147 + 28 + 4 = 179\)
Largest N = 179

Verify

(455)6 = 144 + 30 + 5 = 179 ✓

Tried everything?
STEP 18 OF 24 · Phase 5 · AIMO Past Paper

AIMO 2018 · Q2

Exam mode — Differencing two related bases. Solve on paper first; hints are on the right.

AIMO 2018 · Q2 · [3 marks]
If (234)b+1 − (234)b−1 = 70, what is (234)b in base 10?
Your answer (a positive integer):
💡 Hints — open as needed
5-step model
1. Keywords: "difference", two related bases
2. Known: (234) read in base b+1 and base b−1; their difference is 70
3. Unknown: the value of (234)b
4. Intermediate: expand and subtract the two polynomials in b
5. Hidden constraints: b ≥ 6 because the smaller base b − 1 must exceed digit 4

Original analysis:
A 3-digit string "234" is interpreted in TWO different bases — base (b+1) and base (b−1) — and their difference is 70.

The structural insight: differences of polynomials in (b+1) and (b−1) telescope nicely, because \((b+1)^{2}\) − \((b−1)^{2}\) = 4b and (b+1) − (b−1) = 2.
Expand each side as a polynomial in b. The difference (234)b+1 − (234)b−1 simplifies dramatically because \((b+1)^{2}\) − \((b−1)^{2}\) = 4b, and (b+1) − (b−1) = 2. Equate the simplified difference to the given value, solve for b, then compute (234)b.

Why this technique works in general: Subtracting these related-base expansions cancels their quadratic terms, leaving a linear equation for b.
What's \((b+1)^{2}\) − \((b−1)^{2}\)? And \((b+1)^{1}\) − \((b−1)^{1}\)?
Both differences are remarkably simple. Use them to telescope the whole expression.

Read the problem

Same digits "234" in two bases differing by 2. Their difference is given. Find (234)b.

Strategy

Expand, take the difference, solve for b, then evaluate (234)b.

Solution

\((234)_{b+1} = 2b^{2} + 7b + 9\) \((234)_{b-1} = 2b^{2} - b + 3\) Difference = 8b + 6 \(8b + 6 = 70 \to b = 8\) \((234)_{8} = 128 + 24 + 4 = 156\)
\((234)_{b} = 156\)
Tried everything?
STEP 19 OF 24 · Phase 5 · AIMO Past Paper

AIMO 2019 · Q2

Exam mode — Same digits, two bases — find the number. Solve on paper first; hints are on the right.

AIMO 2019 · Q2 · [2 marks]
An integer has 3 digits in base 10. When it is interpreted in base 6 and multiplied by 4, the result is 2 more than 3 times the same number when it is interpreted in base 7. What is the largest such integer (in base 10)?
Your answer (a positive integer):
💡 Hints — open as needed
5-step model
1. Keywords: "same digit string in bases 6 and 7"
2. Known: 4 times the base-6 value equals 3 times the base-7 value plus 2
3. Unknown: value
4. Intermediate: two polynomial expansions
5. Hidden constraints: digits valid in BOTH bases

Original analysis:
A 3-digit decimal number "abc" (a, b, c its actual decimal digits) is also interpreted as a base-6 number AND as a base-7 number. The two interpretations satisfy: 4×(base-6 reading) = 3×(base-7 reading) + 2.

Hidden constraints: for the SAME digits to be valid in both base 6 and base 7, each digit must be at most 5. Plus a ≥ 1 (3-digit decimal).
Set up two algebraic expressions: N₆ = 36a + 6b + c (base-6 reading) and N₇ = 49a + 7b + c (base-7 reading). Plug into the given equation 4N₆ = 3N₇ + 2 and simplify. You'll get a single linear constraint on a, b, c. With a ∈ {1..5} and b, c ∈ {0..5}, enumerate from largest decimal value down.

Why this technique works in general: Here the bases are known. Expansion gives one linear equation in three unknown digits; their bounds allow a complete finite search.
What does 4(36a + 6b + c) − 3(49a + 7b + c) simplify to?
Once you set that equal to 2 and rearrange, you get one linear equation in three small variables. Now: which combinations of a, b, c maximise 100a + 10b + c?

Read the problem

A 3-digit decimal number; the digits also form a valid number in base 6 and in base 7. A relation links them.

Strategy

Express both readings, apply the equation, simplify, maximise under digit constraints.

Solution

\(4(36a + 6b + c) = 3(49a + 7b + c) + 2\) \(144a + 24b + 4c = 147a + 21b + 3c + 2\) \(3b + c = 3a + 2\) \(a = 5: 3b + c = 17 \to b = 5, c = 2\) \(N = 552\)
\(N = 552\)

Verify

N6 = 180 + 30 + 2 = 212. 4·212 = 848. N7 = 245 + 35 + 2 = 282. 3·282 + 2 = 848 ✓

Tried everything?
STEP 20 OF 24 · Phase 5 · AIMO Past Paper

AIMO 2010 · Q2

Exam mode — Convert one base, find the other. Solve on paper first; hints are on the right.

AIMO 2010 · Q2 · [2 marks]
A number in base twelve is (3140)12. The same number in base b is (320)b. What is b?
Your answer (a positive integer):
💡 Hints — open as needed
5-step model
1. Keywords: "convert a known base, then find an unknown base"
2. Known: digit pattern given
3. Unknown: base
4. Intermediate: polynomial in b
5. Hidden constraints: digit-bound

Original analysis:
A number is given in TWO bases: as "(3140)" in base 12, and as "(320)" in some unknown base b. The two represent the same value.

Digit constraint: in (320)b the digits 3, 2, 0 must be valid → b ≥ 4.
First convert (3140)12 to base 10 — that gives you the actual number. Then set up (320)b = (that number), which is a quadratic in b. Solve and check that b is a positive integer ≥ 4.

Why this technique works in general: Convert the known-base expression to a fixed decimal value, then equate the unknown-base expansion to it.

Read the problem

Same number, two bases. Convert and solve.

Strategy

Convert (3140)12 to decimal first, then equate (320)b to that decimal.

Solution

\((3140)_{12} = 3\cdot 1728 + 144 + 48 = 5376\) \(3b^{2} + 2b = 5376\) \(3b^{2} + 2b - 5376 = 0\) discriminant = 4 + 64512 = 64516 = \(254^{2}\) \(b = \frac{(-2 + 254)}{6} = 42\)
\(b = 42\)

Verify

(320)42 = 3·1764 + 2·42 = 5292 + 84 = 5376 ✓. Digits 3, 2, 0 all < 42 ✓.

Tried everything?
STEP 21 OF 24 · Phase 5 · AIMO Past Paper

AIMO 2013 · Q3

Exam mode — Digits reversed across two bases. Solve on paper first; hints are on the right.

AIMO 2013 · Q3 · stretch
A base-7 three-digit number has its digits reversed when written in base 9. Find the decimal representation of the number.
Your answer (a positive integer):
💡 Hints — open as needed
5-step model
1. Keywords: "three digits reversed between bases 7 and 9"
2. Known: two representations
3. Unknown: common value
4. Intermediate: polynomials in respective bases
5. Hidden constraints: each digit < its base

Original analysis:
A 3-digit number in base 7 has its DIGITS REVERSED when rewritten in base 9 — same digits, opposite order, both representing the same numeric value.

Digit constraints: all three digits must be valid in BOTH base 7 (≤ 6) and base 9 (≤ 8). So digits ∈ {0..6}. Also leading digits in both representations must be nonzero — so the base-7 first digit and the base-9 first digit (= base-7 last digit) are both ≥ 1.
Let the base-7 digits be (abc)7. Then in base 9 it's (cba)9. Set the two values equal as polynomials in a, b, c, simplify, and you'll get a single linear constraint. Combine with the digit bounds (a, b, c ∈ {0..6}) and enumerate the small set of candidates.

Why this technique works in general: Equating the expansions gives an equation in the digits. Use their bounds to account for every possible choice.
If you set 49a + 7b + c = 81c + 9b + a, what does it simplify to?
You should get a clean equation expressing b in terms of a and c. Then it's just a small enumeration over a ∈ {1..6} and c ∈ {1..6} to find which combination keeps b in {0..6}.

Read the problem

Same number written in base 7 and base 9, with digits literally swapped order. Find the decimal value.

Strategy

Set up the equation and enumerate using digit constraints.

Solution

\(49a + 7b + c = 81c + 9b + a\) \(48a - 2b - 80c = 0\) \(b = 24a - 40c\)

This is a multiple of 8. Since 0 ≤ b ≤ 6, b = 0. Hence 3a = 5c, so a = 5k and c = 3k for a positive integer k. The bound a ≤ 6 forces k = 1, proving uniqueness.

\(a = 5, c = 3 \Rightarrow b = 0 ✓\) \(N = (503)_{7} = 245 + 0 + 3 = 248\)
\(N = 248\)

Verify

(305)9 = 243 + 0 + 5 = 248 ✓.

Tried everything?
STEP 22 OF 24 · Phase 5.5 · Synthesis (combines 2+ skills)

Phase 5.5 — Synthesis problems

These problems combine place-value expansion + digit-bound + cross-base equation-solving in one hit. These exercises combine the tools; they do not predict a future question number or difficulty.

Synthesis 1 · ⭐⭐⭐⭐ · skills: place-value + digit-bound + quadratic equation
For some base b, the number (132)b equals 56 in base 10. Find b.
Type your answer:
💡 Hints — switch toolboxes here
Skill 1: place-value expansion (132)b = \(b^{2}\) + 3b + 2.
Skill 2: set equal to 56 → quadratic in b.
Skill 3: digit-bound: b ≥ 4 (digit 3 must be valid).
Expand → equate → solve quadratic → reject roots violating digit-bound. Three-step recipe — same as WE3.

Solution (skills switching)

[Skill 1 — place-value]

\((132)_{b} = b^{2} + 3b + 2\)

[Skill 2 — equate to RHS]

\(b^{2} + 3b + 2 = 56\) \(b^{2} + 3b - 54 = 0\) (b + 9)(b − 6) = 0 → b = 6 (reject b = −9)

[Skill 3 — digit-bound] b = 6, digits 1, 3, 2 all < 6 ✓.

\(b = 6\)

Lesson: Notice we ran skill 1 → skill 2 → skill 3 in strict order. Skipping skill 3 would silently accept invalid bases.

Tried first?

Synthesis 2 · ⭐⭐⭐⭐ · skills: square-of-base-expression + identity + digit-bound
For some base b ≥ 2, (11)b2 = (121)b. What is the smallest valid b?
Type your answer:
💡 Hints — switch toolboxes
Skill 1: (11)b = b + 1, so \((b+1)^{2}\) = \(b^{2}\) + 2b + 1.
Skill 2: (121)b = \(b^{2}\) + 2b + 1 (identical!).
Skill 3: digit-bound: digit 2 needs b ≥ 3.
When both sides simplify to the same polynomial, the equation is true for ALL valid b. The puzzle reduces to: what is the smallest b for which the digits are all valid? (Skill 3 alone determines the answer.)

Solution

[Skill 1 — square the LHS]

\((11)_{b} = b + 1\) \((b+1)^{2} = b^{2} + 2b + 1\)

[Skill 2 — read the RHS in base b]

\((121)_{b} = 1\cdot b^{2} + 2\cdot b + 1 = b^{2} + 2b + 1 ✓\)

Identical for all valid b.

[Skill 3 — digit-bound] Digit 2 requires b ≥ 3. So smallest b = 3.

\(b = 3\)

Lesson: Some "find b" problems have infinite solutions — the question is then asking for the boundary. Always check digit-bound when no algebraic constraint pins down b.

Tried first?
STEP 23 OF 24 · Lesson Quiz

📝 Lesson Quiz

Three problems. No hints. 8 marks total.

📝 Part 1 · Lesson Quiz — 3 problems · Total: 8 marks · No hints

Work each one on paper, type the final answer, then submit all together.

Q1 · 2 marks
Convert (314)5 to base 10.
Q2 · 3 marks
Find b such that (132)b = 30.
Q3 · 3 marks
In some base b, (24)b² = (1104)b. Find b.
STEP 24 OF 24 · Summary · [Revision summary]

Summary — Unit 1 Part 1 · Base Conversion

Use this summary for revision. Return to it through the lesson step menu before reattempting the exercises; it is not an automatic assessment of mastery.

Key ideas (not just formulas)

① Position = power of base
Each digit is multiplied by a power of the base, increasing right to left: \(b^{0}\), \(b^{1}\), \(b^{2}\), …
(dn…d0)b = dn·\(b^{n}\) + … + d1·b + d0
Always start by writing the base-b expression as a polynomial in b. This is the bridge from notation to algebra.
② Digit bound — every digit is < base
If the number is (146)b, then b ≥ 7 (since digit 6 must be a valid base-b digit). This rule supplies extra constraints, not a second equation.
⚠ AIMO marks are often won or lost on this single check.
③ Three-step solving recipe
  1. Expand each base-b expression into a polynomial in b.
  2. Set the two polynomials equal (or to a given decimal value).
  3. Solve the resulting equation. Reject roots that violate the digit bound.
④ Two related bases (b and b ± k)
Even though there appear to be two unknowns, there is really only one variable. Expand both carefully — pay attention to \((b ± k)^{2}\) = \(b^{2}\) ± 2kb + \(k^{2}\).
Example: \((b−2)^{2}\) = \(b^{2}\) − 4b + 4
⑤ Two unrelated bases (a and b)
One equation, two unknowns — but the digit bounds give you a second source of constraint. For min/max problems, prove a bound on the requested quantity and exhibit legal bases attaining it. Trying a few bases is exploration, not a general proof.
⑥ Check every root against the domain
A positional base must be an integer larger than every digit used. Reject roots that fail these conditions, then verify every remaining root in the original equation. A non-integer root does not itself prove an algebra error.
⚠ Don't round and force-fit. Recheck.

Common pitfalls

When to use this technique

If a problem mentions any of:

… then this is a base-conversion problem. Apply the three-step recipe.

⭐ Self-assessment

Rate your understanding of each concept: ⭐ familiar / ⭐⭐ can solve / ⭐⭐⭐ can teach.

① I understand what (abc)b means and can convert it to base 10 by expanding.
② I know the digit-bound rule (every digit must be less than the base) and apply it without prompting.
③ I can apply the three-step recipe (expand → equate → solve) to a single-base equation.
④ I can handle two related bases (b and b ± k) without confusion.
⑤ I can solve "minimum" or "maximum" type problems with two unknown bases by using digit bounds.
⑥ I have walked through the eight AIMO past papers and could re-solve them next week.
⭐ \(\frac{0}{18}\) — click stars to record your mastery
🎉 Part 1 complete. Tomorrow we'll do Part 2 — Digit Properties (last digit analysis, palindromes, and digit-reversal equations). Same teaching style, new techniques.

Tonight: re-solve AIMO 2014 Q1 and 2017 Q1 with pencil and paper. Aim for under 5 minutes each. The brain consolidates better when you re-derive on paper.

📅 Unit tests: Take Past-Paper-Test.html first for verified AIMO questions, then Mock-Test.html for the 10-question unit test reusing verified past-paper questions. Answers and review unlock only after submission on each page.
💡 Stuck? Open this for guiding questions (no spoilers)

Ask yourself, in order: