2.5.1 · D4Number Theory (Intermediate)

Exercises — Divisibility rules — 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 (with proofs where possible)

3,221 words15 min readBack to topic

This is a self-test page. Every problem is stated cleanly, then the full worked solution hides inside a collapsible callout — try the problem first, then reveal. The exercises climb five levels of difficulty. Each level ends with a warning about the exact trap students fall into there.

Before you start, one reminder of the engine behind every rule: a number is its digits weighted by powers of ten, and each rule just replaces those powers of ten with something small modulo the divisor. If that sentence feels shaky, re-read the parent note and Modular Arithmetic first.

Figure — Divisibility rules — 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 (with proofs where possible)

The figure shows the single idea behind all these rules: a number is a stack of digits, each sitting on a "power-of-ten" weight, and every rule just asks what each weight becomes modulo the divisor. The blueprint below (used again in Level 4) shows how those weights collapse.

Figure — Divisibility rules — 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 (with proofs where possible)

Level 1 — Recognition

Can you apply a single rule directly?

Exercise 1.1 L1

Is divisible by 5? By 10?

Recall Solution

Rule for 5: last digit is or . Rule for 10: last digit is .

  • Last digit of is .
  • is one of → divisible by . ✓
  • is exactly → divisible by . ✓ Why the last digit alone decides it: every earlier digit is multiplied by , and each of those is already a multiple of both and . So and — only the units digit survives. Answer: divisible by both and .

Exercise 1.2 L1

Is divisible by 4?

Recall Solution

Rule for 4: the last two digits, as a number, must be divisible by .

  • Last two digits: .
  • → divisible. Why only two digits: everything from the hundreds place up is a multiple of . So . Answer: yes, is divisible by (indeed ).

Exercise 1.3 L1

Is the digit sum of divisible by 9? What about 3?

Recall Solution

Digit sum .

  • → divisible by , hence is divisible by .
  • → divisible by , hence is divisible by . Why the plain sum works here: and , so every , and (the sum of all digits). The weights collapse to . Answer: divisible by both and .

Level 2 — Application

Choose the right rule and run it, sometimes more than once.

Exercise 2.1 L2

Use the subtract-twice-the-last-digit rule to decide if is divisible by 7.

Recall Solution

The rule: write ( = last digit , = the rest), then test . Repeat until small.

  • Round 1: .
  • Round 2: .
  • is divisible by . ✓ Why and not something else: , so . Multiply by the inverse of (which is , since ): (because ). The whole point is to strip down to coefficient . Answer: yes, .

Exercise 2.2 L2

Is divisible by 11?

Recall Solution

Rule for 11: alternating digit sum, from the right, must be a multiple of (including ).

  • Digits right-to-left: .
  • Alternating sum .
  • is a multiple of . ✓ Why alternating: here , so the weights become — the signs flip each step. Answer: yes, .

Exercise 2.3 L2

Is divisible by 6?

Recall Solution

Rule for 6: divisible by ⟺ divisible by both and .

  • By : last digit is even. ✓
  • By : digit sum . ✓ Both pass, so is divisible by . Why both (not either): with . By the Chinese Remainder Theorem, the pair of conditions " and " is equivalent to "" precisely because and share no factor. See also GCD and LCM. Answer: yes, .

Level 3 — Analysis

Reverse the rule: solve for an unknown digit.

Exercise 3.1 L3

Find every digit so that (i.e. ) is divisible by 3.

Recall Solution

Digit sum . We need . Since , we need . Digits with : . Why this is clean: the fixed digits already contribute a multiple of , so the whole condition lands on alone. Answer: .

Exercise 3.2 L3

Find every digit so that (i.e. ) is divisible by 11.

Recall Solution

Right-to-left digits: . Alternating sum . Need , i.e. . With , ranges from (at ) down to (at ). The only multiple of in that range is . . Check: . ✓ Answer: .

Exercise 3.3 L3

Find every digit so that (i.e. ) is divisible by 8.

Recall Solution

The -rule looks at the last three digits — but that is the whole number here, so we test for divisibility by . . Reduce: , so ; and , so . Condition: . Digits with : . Check: ✓ and ✓. Answer: .


Level 4 — Synthesis

Combine several rules, or combine a rule with modular reasoning.

Exercise 4.1 L4

Find the smallest four-digit number of the form (digits unknown) that is divisible by both 8 and 9, i.e. by .

Recall Solution

"Divisible by and " with means divisible by (see GCD and LCM and Chinese Remainder Theorem). Rule for 9: digit sum . Rule for 8: last three digits . Now reduce each piece mod , showing the steps:

  • , so (it is an exact multiple of ).
  • , so ; hence .
  • (already a single digit).

Adding these: . So the -condition is . We want the smallest number, so make as small as possible, then .

  • Try : need . And . No overlap with . Fail.
  • Try : -rule (or , too big). -rule . No overlap. Fail.
  • Try : -rule . -rule . Overlap at ! ✓ Number: . Check: . ✓ Answer: .

Exercise 4.2 L4

Without long division, find the remainder when is divided by 9 and by 11.

Recall Solution

Mod 9 (the Casting Out Nines trick): the remainder equals the digit sum reduced mod . , and , and . So . Mod 11: alternating sum from the right. Digits right-to-left: . . Reduce mod : . So . Why we may reduce the digit sum again: because still holds — the trick is self-similar, you can iterate. Answer: remainder mod ; remainder mod .


Level 5 — Mastery

Prove or generalise — you build the rule, not just use it.

Exercise 5.1 L5

Prove that every integer (with the last digit) is divisible by if and only if is divisible by . State clearly why the "if and only if" holds in both directions.

Recall Solution

Work in Modular Arithmetic mod . Let . Step 1 — reduce the . Since , we have , so Step 2 — multiply by an invertible number. In mod , the number is invertible because (in fact , so is the inverse of ). Multiplying a congruence by a number coprime to the modulus is reversible — it neither creates nor destroys solutions. Multiply by : Step 3 — rewrite as . Because : . So Step 4 — the biconditional. Since is invertible mod , . Combined with Step 3: Why both directions: the only non-obvious link is . That holds precisely because we can multiply back by : . If were not coprime to , this back-multiplication would fail and the rule would be one-directional only.

Exercise 5.2 L5

Generalise: for a divisor coprime to , the "chop the last digit and adjust" trick uses a multiplier with . Find such a for 13 and state the resulting rule.

Recall Solution

We want with . Because , the inverse of exists (this coprimality is exactly the condition Fermat's Little Theorem guarantees an inverse under). Test small : . So gives . Now take . Multiply by : . Since is invertible mod , . Resulting rule for 13: chop off the last digit , add to the remaining number , and repeat; the result is divisible by exactly when the original is. Check: . Chop: . ✓ Answer: ; rule is .


Score Yourself

Reveal-line self-check — say the answer out loud before peeking.

L1: last two digits decide divisibility by 4, last three by 8 — why?
Because and , killing all higher place values.
L2: divisible by 6 needs which logical connective?
AND — divisible by 2 and by 3 (since ).
L3: solving for an unknown digit, what must you do to the fixed digits first?
Reduce their contribution mod , then make the digit cancel that remainder.
L4: when does "divisible by and " equal "divisible by "?
Only when ; otherwise use .
L5: why must the chop-rule multiplier be coprime to ?
So the multiplication is reversible, making the test an if-and-only-if.

See Also