QED
Number Theory · step 10 of 13

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.

  1. Convert by repeated divisionDivide by b, record the remainder, repeat on the quotient. Read the remainders in reverse.
  2. Convert back by positional expansionMultiply each digit by its power of b and add, or use Horner’s method for speed.
  3. 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.
  4. 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.

  1. 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.
  2. Reading remainders bottom-up: 101101₂. Check: 32 + 8 + 4 + 1 = 45 ✓.
  3. Digit sum of 12345: 1+2+3+4+5 = 15.
  4. 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.

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.

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 →