Base Arithmetic
You can add, subtract and multiply directly in any base — the only change is the carry/borrow threshold. When a column total reaches the base b, you write the remainder and carry 1 (you carry at b, not at 10). In base 5, 3 + 4 = 7 = 1·5 + 2, so you write 2 and carry 1. Subtraction works the same in reverse: when you borrow, you add b to the current column, not 10. In base 8, borrowing turns a 3 into 3 + 8 = 11 before subtracting. Multiplication is ordinary long multiplication, but every partial product is reduced using the base: in base 6, 4 × 5 = 20 decimal = 3·6 + 2, written 32 in base 6. Two tricks save time in CAT: (1) for a quick check, convert each operand to decimal, do the sum, and convert back; (2) for clean values, spot that adding 1 to the largest n-digit number rolls over to a power of the base (in base 7, 666 + 1 = 1000).
✅ Solved examples
✏️ Practice — try these, take hints as needed
📝 Topic test — 8 questions
Auto-graded with full solutions; saved to your dashboard. Use the calculator and formula sheet (top-right) any time.
Formula Reference Sheet
Place value & conversion
| Value of a base-b number | (d_n...d_1d_0)_b = d_n·b^n + ... + d_1·b + d_0 |
|---|---|
| Horner (nested) evaluation | ((...(d_n·b + d_{n-1})·b + ...)·b + d_0) |
| Decimal → base b | Divide by b repeatedly; remainders bottom-to-top |
| Digits allowed in base b | 0, 1, 2, ..., (b−1) |
| Max value of an n-digit base-b number | b^n − 1 |
Bases & arithmetic
| Binary / Octal / Hex bases | b = 2, 8, 16 (hex digits A=10 ... F=15) |
|---|---|
| Octal ↔ binary grouping | 1 octal digit = 3 binary digits |
| Hex ↔ binary grouping | 1 hex digit = 4 binary digits |
| Carry in base b | Carry 1 when a column sum reaches b |
| Borrow in base b | A borrow adds b (not 10) to the column |