Number bases
Place value in any base
Our usual numbers are base 10: the columns are worth and the digits run from 0 to 9. The same idea works in any base : columns are worth powers of , and the digits run from 0 to . A subscript shows the base, so means base 5.
That digit rule matters: is meaningless, because 8 is not a base-5 digit.
Converting to decimal
Multiply each digit by its column value and add:
The same works for any base — for binary, the columns are , so .
Converting from decimal
Divide by the base repeatedly, keeping track of remainders, until the quotient reaches 0. The remainders, read in reverse (last to first), are the digits. Converting 45 to base 3:
- remainder
- remainder
- remainder
- remainder
Reading upwards gives . Check it: . Always convert back as a check — it takes seconds.
Arithmetic and bigger bases
Column arithmetic works in any base — you just carry at the base instead of at ten. In base 7, is nine, which is one seven and two: . Subtraction borrows a seven, not a ten.
Hexadecimal (base 16) needs six extra digit symbols: A to F stand for 10 to 15.
When a puzzle hides the base, call it and use place value: if , then , so . Remember the constraints — the base must be a whole number larger than every digit that appears.
You'll get instant feedback after each answer, then a score at the end.
Ready? Notes and flashcards are locked until you finish the quiz.