2.5.1 · D3Number Theory (Intermediate)

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

2,526 words11 min readBack to topic

This page is the "no case left behind" companion to Divisibility Rules — 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 (with proofs where possible). The parent gave one clean example per rule. Actual integers are messier: they end in zero, they fail the test, they are negative, they combine several rules at once. Here we hunt down every kind of whole number a divisibility question can hand you.

Everything rests on one fact from the parent note, so let us restate it in plain words before we use any symbol.

Two composite divisors (6 and 12) will need us to combine two smaller tests. Here is the one-sentence reason that is allowed, sketched once so we can reuse it.


The scenario matrix

Every divisibility question falls into one of these case classes. The examples below are labelled with the cell(s) they cover, and together they touch all of them.

Cell Case class What makes it tricky
A Passes cleanly (positive, no zeros) baseline sanity
B Fails the test must show a non-zero remainder, not just "yes"
C Trailing zero(s) — the units/last-digit rules behave specially
D Multi-rule composite (6, 12, ...) need TWO independent checks, both must hold
E Iterated rule (the 7-rule repeated) one pass is not enough; loop until small
F Negative / zero input signs and the degenerate number
G Real-world word problem translate words → a divisibility statement
H Exam twist (unknown digit) solve for a missing digit so the rule holds
Figure — Divisibility rules — 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 (with proofs where possible)

Example 1 — Cell A + D: passes cleanly, two rules at once

Forecast: Look at . Even last digit? Digit sum? Guess yes/no before reading on.

  1. Check divisibility by 2. Units digit , which is even. Why this step? Because , every term except vanishes mod 2, so only the last digit matters.
  2. Check divisibility by 3. Digit sum , and . Why this step? Because , so — the whole number collapses to its digit sum.
  3. Combine. Divisible by 2 and by 3 divisible by 6. Why this step? are coprime, so both conditions glue into one for (the intuition callout); one alone is not enough (that is Mistake 1 in the parent).

Verify: exactly, and . ✓


Example 2 — Cell B: a clean FAILURE with the actual remainder

Forecast: We just changed the last digit of Example 1 from 2 to 3. Does the answer flip?

  1. Check by 2. Units digit is odd not divisible by 2. Why this step? , so is odd. Already 6 is impossible.
  2. Find the remainder mod 6. Since is a multiple of 6, , so the remainder is . Why this step? Adding 1 to a multiple of 6 leaves remainder 1 — a "one step past a milestone" idea, cleaner than long division.

Verify: . Remainder , so not divisible. ✓


Example 3 — Cell C: trailing zeros

Forecast: A number ending in two zeros — how many of these five does it pass?

  1. By 10: last digit is yes. Why this step? , so every term except vanishes and — only the units digit matters.
  2. By 5: last digit yes. Why this step? , so every higher term vanishes and only counts.
  3. By 2: last digit is even yes. Why this step? , so every term above the units place is a multiple of 2; only decides the parity.
  4. By 4: last two digits form , and yes. Why two digits? Because .
  5. By 8: last three digits form yes. Why three digits? Because .

Verify: , so it carries seven factors of 2 (covers 2, 4, 8) and two factors of 5 (covers 5, and 5·2 gives 10). All five pass. ✓


Example 4 — Cell C, the trap: zero does NOT help odd divisors

Forecast: It ends in a friendly zero — does that make 3 and 9 easy? Careful.

  1. Digit sum: . The trailing zero contributes nothing to the sum. Why this step? The 3- and 9-rules use the sum of digits, and a zero adds .
  2. By 3: yes. Why this step? Because , so ; the trailing zero adds to that sum, so it neither helps nor hurts.
  3. By 9: is not a multiple of 9 no. Remainder mod 9 is . Why this step? too, so .

Verify: exactly ✓; , remainder ✓.


Example 5 — Cell E: the 7-rule, iterated

Forecast: is too big to eyeball. Guess before iterating.

Before we crank the handle, let us see why is a legal move — it is worth one line of algebra.

  1. Pass 1: . Why this step? By the formula above, , but is smaller. Each pass strips the last digit.
  2. Pass 2: . Why this step? Same rule again: , and is finally a table fact.
  3. Read off: divisible by 7. The chain of "" carries the answer back up: and then are divisible too.

Verify: exactly, . ✓


Example 6 — Cell F: negative numbers and zero

Forecast: Can a negative number even "be divisible"? What about zero itself?

  1. Meaning of divisibility. "" means for some integer (positive, negative, or zero allowed). Why this step? Signs are just about ; the test uses the digits, which ignore the sign.
  2. . Use the alternating digit sum of : digits right-to-left give . Divisible. Why this step? makes signs alternate. The minus in front of the whole number multiplies by , which stays an integer.
  3. . Zero , so every integer divides 0. Why this step? is the ultimate degenerate case: pick and any divisor works.

Verify: ✓; ✓.

Recall Does 7 divide 0? Does 0 divide 7?

? ::: Yes — . Every non-zero integer divides 0. ? ::: No — nothing times 0 gives 7. You can never divide by zero.


Example 7 — Cell G: real-world word problem

Forecast: 1000 is round — surely both work? Predict first.

  1. 8 seats per row means . Last three digits: , and yes. Why this step? The word "no seat left over" is exactly " divides ". Use the last-three-digits rule ().
  2. 11 per row means . Alternating sum of (digits right-to-left): . Why this step? Because , the powers of ten flip sign in an alternating pattern, so collapses to the alternating digit sum. Here is not a multiple of 11 no. Remainder: .

Verify: rows exactly ✓; , so 11 leaves 10 seats over ✗. So 8 works, 11 does not.


Example 8 — Cell H: exam twist, solve for a missing digit

Forecast: How many valid do you expect — none, one, or several?

  1. Set up the digit sum. Sum . Why this step? The 9-rule turns the whole 5-digit number into .
  2. Require . Since , we need . Why this step? , so the condition collapses to .
  3. Find all such digits. (the only single digits divisible by 9). Why this step? Cell H wants all cases, and there are exactly two.

Verify: : number ✓. : number ✓.


Example 9 — Cell H twist: two divisors, one unknown digit

Forecast: Two constraints on one digit — expect a short list.

  1. By 4: last two digits form ; need . Since , need , so . Why this step? , so only the last two digits matter.
  2. By 3: digit sum ; need . Since , need , so . Why this step? Independent condition — must intersect with step 1.
  3. Intersect: . Why this step? We split into coprime pieces (per the intuition callout), so both must hold at once.

Verify: : ✓. No other digit satisfies both. ✓


Wrap-up: the matrix, filled

Recall Which example covered which cell?

A (clean pass) ::: Ex 1 B (fails, with remainder) ::: Ex 2 C (trailing zeros) ::: Ex 3 and Ex 4 D (multi-rule composite) ::: Ex 1, Ex 9 E (iterated 7-rule) ::: Ex 5 F (negative / zero input) ::: Ex 6 G (word problem) ::: Ex 7 H (unknown digit) ::: Ex 8, Ex 9

Related tools worth a look: Casting Out Nines (why the 9-rule doubles as an arithmetic check) and Fermat's Little Theorem (the deeper reason powers of 10 cycle under a prime modulus).