Skip to content

Number Bases

7 lessons · 7 questions · ~50 s per question

The idea

A numeral in base bb is a polynomial in bb with digit coefficients below bb. Conversions, digit counts and 'find the base' questions all come from this single expansion.

Textbook vs exam method

Exam method

  1. (273)8=187(273)_8=187; 187187 in base 88: 187=8⋅23+3187=8\cdot23+3, 23=8⋅2+723=8\cdot2+7, 2=8⋅0+22=8\cdot0+2 gives 273273.
  2. (25)x=85(25)_x=85: 2x+5=852x+5=85, x=40x=40.
  3. (25)n(31)n=(1015)n(25)_n(31)_n=(1015)_n: (2n+5)(3n+1)=n3+n+5(2n+5)(3n+1)=n^3+n+5, n(n−8)(n+2)=0n(n-8)(n+2)=0, n=8n=8.
  4. 17771777 in base xx with five digits: x4≤1777<x5x^4\le1777<x^5 gives x=5x=5 or 66; least 55.
  5. Numbers below 10001000 using only 00 and 11: 1,10,11,100,101,110,1111,10,11,100,101,110,111 - seven (23−12^3-1).

Worked examples

Example 1Sitter

(1011)2=8+2+1=11(1011)_2=8+2+1=11; 4545 in base 33

Example 2Easy

Unit digit of 21112111 in base 88

Example 3Easy

Digits of 10001000 in base 77

Example 4Typical

Four-digit decimals with exactly four base-66 digits

Example 5Typical

In base bb, 4×6=(30)b4\times6=(30)_b

Traps

  • Reversed remainders; decimal place values; invalid digits; digit-count off by one.

Formulas

Place value in base b

(dk…d1d0)b=∑dibi,0≤di<b(d_k\dots d_1d_0)_b=\sum d_i b^{i},\quad 0\le d_i<b

(273)_8 = 2 x 64 + 7 x 8 + 3 = 187; every digit must be below the base - (207)_7 is invalid.
Converting a decimal to base b

decimal→base b: repeated division by b, remainders read upwards\text{decimal}\to\text{base }b:\ \text{repeated division by }b,\ \text{remainders read upwards}

Last remainder = leading digit; check by converting back.
Digit count in base b

N has k digits in base b  ⟺  bk−1≤N<bkN\text{ has }k\text{ digits in base }b\iff b^{k-1}\le N<b^{k}

1777 has five digits in base 5 (625 <= 1777 < 3125) and in base 6 (1296 <= 1777 < 7776); least base 5.
Last digits in base b

last k digits of N in base b ↔ N mod bk;unit digit=N mod b\text{last }k\text{ digits of }N\text{ in base }b\ \leftrightarrow\ N\bmod b^{k};\quad\text{unit digit}=N\bmod b

Last three binary digits of N are the binary form of N mod 8.
Solving for an unknown base

(ab)x=N ⇒ ax+b=N, x>max⁡(a,b)(ab)_x=N\ \Rightarrow\ ax+b=N,\ x>\max(a,b)

(25)_n x (31)_n = (1015)_n gives n^3 - 6n^2 - 16n = 0, n = 8 (QC); reject roots not exceeding every digit.
Numbers using only the digits 0 and 1

the k-th number written with decimal digits 0,1 only=binary numeral of k\text{the }k\text{-th number written with decimal digits }0,1\text{ only}=\text{binary numeral of }k

The 10th such number is 1010 (binary of 10); count of such numbers below 10^k is 2^k - 1.

In the exam

Shortcuts
  • Expand the numeral in powers of the unknown base and solve the (usually linear or quadratic) equation; discard bases not larger than every digit.
  • Digit-count questions are two inequalities: bk−1≤N<bkb^{k-1}\le N<b^{k}; test consecutive bases.
  • For 'last digits in base bb' only N mod bkN\bmod b^{k} matters.
  • Arithmetic in base bb: convert to decimal, compute, convert back - safer than column carries under time pressure.
~50 s per question at exam speed
When to skip: Never - conversions are mechanical. A product equation in an unknown base (cubic) can take 90 s; keep it for the end.

Before this

What the exams ask here

  • convert base
  • count numbers with binary digits below N
  • (25)_x = (85)_10 -> x
  • 1777 has exactly 5 digits in base x -> least x
  • last three binary digits of N

Practise this free. Every mistake is saved and comes back until you fix it.

Start free