Number bases

Place value in any base

Our usual numbers are base 10: the columns are worth 1,10,102,103,1, 10, 10^2, 10^3, \dots and the digits run from 0 to 9. The same idea works in any base bb: columns are worth powers of bb, and the digits run from 0 to b1b - 1. A subscript shows the base, so 2345234_5 means base 5.

That digit rule matters: 1585158_5 is meaningless, because 8 is not a base-5 digit.

Converting to decimal

Multiply each digit by its column value and add:

2345=2×52+3×5+4=50+15+4=69234_5 = 2 \times 5^2 + 3 \times 5 + 4 = 50 + 15 + 4 = 69

The same works for any base — for binary, the columns are 1,2,4,8,16,1, 2, 4, 8, 16, \dots, so 10112=8+0+2+1=111011_2 = 8 + 0 + 2 + 1 = 11.

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:

  • 45÷3=1545 \div 3 = 15 remainder 00
  • 15÷3=515 \div 3 = 5 remainder 00
  • 5÷3=15 \div 3 = 1 remainder 22
  • 1÷3=01 \div 3 = 0 remainder 11

Reading upwards gives 45=1200345 = 1200_3. Check it: 1×27+2×9=451 \times 27 + 2 \times 9 = 45. 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, 5+45 + 4 is nine, which is one seven and two: 12712_7. 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 NN and use place value: if 44N=3644_N = 36, then 4N+4=364N + 4 = 36, so N=8N = 8. Remember the constraints — the base must be a whole number larger than every digit that appears.