Base-b representations & digit arguments
Every positive integer has a unique representation in base b as Σdᵢbⁱ with digits 0 ≤ dᵢ < b. Conversion is repeated division by b, reading remainders bottom-up. The digit-sum divisibility rules follow immediately from congruences: 10 ≡ 1 (mod 9) makes every power of 10 congruent to 1, so a number is congruent to its digit sum mod 9.
✓ Unlimited questions · marked criterion by criterion · no card needed
Method: how to approach it
The order below is what examiners expect to see, and each step carries its own marks.
- Convert by repeated divisionDivide by b, record the remainder, repeat on the quotient. Read the remainders in reverse.
- Convert back by positional expansionMultiply each digit by its power of b and add, or use Horner’s method for speed.
- Derive divisibility rules from b mod nSince 10 ≡ 1 (mod 9), Σdᵢ10ⁱ ≡ Σdᵢ (mod 9). Since 10 ≡ −1 (mod 11), the ALTERNATING digit sum governs divisibility by 11.
- Count digits with logarithmsA number n has ⌊log_b n⌋ + 1 digits in base b.
Worked example
Convert 45 to binary, and use digit sums to test whether 12345 is divisible by 9.
- 45 ÷ 2 = 22 r 1; 22 ÷ 2 = 11 r 0; 11 ÷ 2 = 5 r 1; 5 ÷ 2 = 2 r 1; 2 ÷ 2 = 1 r 0; 1 ÷ 2 = 0 r 1.
- Reading remainders bottom-up: 101101₂. Check: 32 + 8 + 4 + 1 = 45 ✓.
- Digit sum of 12345: 1+2+3+4+5 = 15.
- 15 is not divisible by 9 (though it is by 3).
Answer. 45 = 101101₂; and 12345 is divisible by 3 but not by 9, since its digit sum is 15.
Where marks get dropped
These are the specific errors that cost credit on base-b representations & digit arguments questions — QED's rubric penalises each of them separately.
- Reading the remainders top-down. The FIRST remainder is the least significant digit, so the list must be reversed.
- Using a digit ≥ b. In base 8 the digits run 0–7 only.
- Applying the digit-sum rule to divisibility by 7 or 11. Nine and three work because 10 ≡ 1 (mod 9); 11 needs the alternating sum.
Practise this until it is automatic
Unlimited fresh questions
QED generates new base-b representations & digit arguments problems on demand at warm-up, exam and challenge level, so you can drill this one skill until it stops costing you marks.
Marked like an examiner
Every answer is scored against a point-by-point rubric with partial credit, so you see exactly which step of the method broke down — not just a tick or a cross.
Answer in real notation
A one-tap symbol palette, a visual equation editor and a truth-table builder — or photograph your handwritten working and QED converts it to LaTeX.
Saved to your library
Every question you generate is kept and re-takeable as a timed exam, and your Number Theory mastery is tracked so you know when this is exam-ready.
Base-b representations & digit arguments — frequently asked questions
Why does the digit sum test divisibility by 9?
Because 10 ≡ 1 (mod 9), so 10ⁱ ≡ 1 for all i, making n ≡ Σdᵢ (mod 9). The same argument gives the rule for 3.
What is the rule for 11?
Alternate the signs of the digits from the right, since 10 ≡ −1 (mod 11). If the alternating sum is divisible by 11, so is the number.
How do I convert between binary and hexadecimal?
Group binary digits in fours from the right; each group is one hex digit. No arithmetic is needed because 16 = 2⁴.
The rest of Number Theory
Divisibility, primes, gcd, modular arithmetic. Each subtopic below has its own method, worked example and mark-losing traps.
- 1Divisibility & the division algorithm
- 2Primes & unique factorisation
- 3gcd, lcm & the Euclidean algorithm
- 4Modular arithmetic & congruences
- 5Solving linear congruences
- 6Fermat’s little theorem
- 7The Chinese remainder theorem
- 8Modular inverses & fast exponentiation
- 9Euler’s totient φ(n) & Euler’s theorem
- 10Base-b representations & digit arguments
- 11RSA & modular exponentiation in cryptography
- 12Wilson’s theorem & primality testing
- 13Linear Diophantine equations ax + by = c
Ready to make base-b representations & digit arguments exam-proof?
Generate your first questions free — no card, no setup, no personal data stored. Practise until the method is second nature.
Start practising free →