Base representation
A number written in base with digits represents:
To convert a base-10 number into base , repeatedly divide by and record the remainders (from last to first). To convert the other way, just expand the sum above directly.
Divisibility tests
- 2: last digit is even.
- 3: digit sum divisible by 3.
- 4: last two digits form a number divisible by 4.
- 5: last digit is 0 or 5.
- 8: last three digits divisible by 8.
- 9: digit sum divisible by 9.
- 11: alternating digit sum (adding and subtracting digits in turn) divisible by 11.
The 3 and 9 tests both work because and , so every power of 10 also reduces to 1 — meaning a number is congruent to its digit sum modulo 3 or 9. The 11 test works similarly, since .
Worked example
Problem: Convert (base 10) into base 5.
Solution: Divide repeatedly by 5, tracking remainders:
Reading the remainders from last to first gives . Check: ✓.
Practice problems
1.Convert to base 10.
2.Is 4,928,517 divisible by 9?
3.Is 918,082 divisible by 11? (Use alternating digit sum.)
4.Convert (base 10) to base 7.