MathLabs

Grade 6

Divisibility, factors and multiples

When one integer divides another exactly, and the factors and multiples this relationship produces.

IntuitionWhat does it mean to divide evenly?

Splitting 1212 candies into 33 equal bags leaves nothing over — 33 divides 1212. Splitting 1313 candies into 33 bags always leaves a remainder. Divisibility is exactly this "leaves nothing over" relationship, and it is the seed from which factors, multiples, and prime numbers all grow.

Hasse-style divisor graph of 24 showing which numbers divide which
Hasse divisibility diagram D12D_{12} of the divisors of 1212 (1,2,3,4,6,121, 2, 3, 4, 6, 12): each upward edge multiplies by a prime factor (22 or 33).

SchoolDefinitions and the division algorithm

Definition: Divisibility

An integer bb divides an integer aa, written b∣ab \mid a, if there exists an integer kk with a=bka=bk. When b∣ab \mid a, we call bb a factor (or divisor) of aa, and aa a multiple of bb.

a=bq+r,0≤r<b(b>0)a = bq + r, \qquad 0 \le r < b \quad (b>0)

This is the division algorithm: every integer aa divided by a positive integer bb leaves a unique quotient qq and remainder rr with a=bq+r, 0≤r<ba = bq + r,\ 0\le r<b. Divisibility is the special case r=0r=0.

n=∑i=0kdi 10in = \sum_{i=0}^{k} d_i\,10^i

Writing a number in ordinary digits dkdk−1⋯d1d0d_k d_{k-1}\cdots d_1 d_0 means exactly n=∑i=0kdi 10in = \sum_{i=0}^{k} d_i\,10^i — this place-value expansion is the tool behind every digit-based divisibility rule below.

Divisibility rules by last digits or digit sums
DivisorRuleExample
22Last digit is even1,2341{,}234
55Last digit is 00 or 551,2351{,}235
33Digit sum ∑idi\sum_i d_i divisible by 333+3+3=93+3+3=9
99Digit sum ∑idi\sum_i d_i divisible by 994+5+3+6=184+5+3+6=18
1111Alternating sum ∑i(−1)idi\sum_i (-1)^i d_i divisible by 11112−9+1−4=−102-9+1-4=-10

UndergraduateTwo digit-based divisibility theorems

Let nn have digits so that n=∑i=0kdi 10in = \sum_{i=0}^{k} d_i\,10^i. Then 9∣n9 \mid n if and only if 99 divides the digit sum ∑idi\sum_i d_i; the same statement holds with 33 in place of 99.

Why is it true?

Every power of 1010 leaves remainder 11 when divided by 99 (since 10=9+110=9+1), so shifting a digit to a higher place value never changes its contribution modulo 99 — the whole number is congruent to the plain sum of its digits.

Proof

Step 1. Show by induction that 10i≡1(mod9)10^i \equiv 1 \pmod 9 for every i≥0i\ge0. Base case i=0i=0: 100=1≡1(mod9)10^0=1\equiv1\pmod9. Inductive step: if 10i≡1(mod9)10^i\equiv1\pmod9, then 10i+1=10⋅10i≡10⋅1=10≡1(mod9)10^{i+1}=10\cdot10^i\equiv10\cdot1=10\equiv1\pmod9 (using 10≡1(mod9)10 \equiv 1 \pmod 9). So 10i≡1(mod9)10^i\equiv1\pmod9 for all ii.

Step 2. Substitute into the place-value expansion: n=∑idi10i≡∑idi⋅1=∑idi(mod9)n=\sum_i d_i 10^i \equiv \sum_i d_i\cdot1 = \sum_i d_i \pmod9. So nn and its digit sum always leave the same remainder upon division by 99.

Step 3. Conclude: 9∣n9\mid n exactly when n≡0(mod9)n\equiv0\pmod9, which by Step 2 happens exactly when ∑idi≡0(mod9)\sum_i d_i\equiv0\pmod9, i.e. exactly when 99 divides the digit sum. Since 9=3×39=3\times3 and the same congruence 10≡1(mod3)10\equiv1\pmod3 also holds, the identical argument with 33 in place of 99 throughout proves the divisibility-by-33 version.

Let nn have digits so that n=∑i=0kdi 10in = \sum_{i=0}^{k} d_i\,10^i. Then 11∣n11 \mid n if and only if 1111 divides the alternating digit sum ∑i(−1)idi\sum_i (-1)^i d_i.

Why is it true?

Unlike 99, powers of 1010 do not stay congruent to 11 modulo 1111 — instead they flip sign at every step, because 1010 itself is congruent to −1-1 modulo 1111. Digits at even positions contribute normally, odd positions contribute negatively.

Proof

Step 1. Show by induction that 10i≡(−1)i(mod11)10^i \equiv (-1)^i \pmod{11} for every i≥0i\ge0. Base case i=0i=0: 100=1=(−1)010^0=1=(-1)^0. Inductive step: if 10i≡(−1)i(mod11)10^i\equiv(-1)^i\pmod{11}, then 10i+1=10⋅10i≡(−1)⋅(−1)i=(−1)i+1(mod11)10^{i+1}=10\cdot10^i\equiv(-1)\cdot(-1)^i=(-1)^{i+1}\pmod{11} (using 10≡−1(mod11)10 \equiv -1 \pmod{11}). So 10i≡(−1)i(mod11)10^i\equiv(-1)^i\pmod{11} for all ii.

Step 2. Substitute into the place-value expansion: n=∑idi10i≡∑idi(−1)i(mod11)n=\sum_i d_i10^i \equiv \sum_i d_i(-1)^i \pmod{11}, which is precisely the alternating digit sum ∑i(−1)idi\sum_i (-1)^i d_i.

Step 3. Conclude: 11∣n11\mid n exactly when n≡0(mod11)n\equiv0\pmod{11}, which by Step 2 happens exactly when 1111 divides ∑i(−1)idi\sum_i (-1)^i d_i.

UndergraduateReal-World Applications and Worked Examples

Divisibility checks quietly run in the background of everyday systems: check digits catch typing errors in ISBNs and barcodes, and the calendar's leap-year rule keeps our seasons aligned with the astronomical year.

Example: ISBN-10 check digit

A 1010-digit ISBN d1d2⋯d10d_1d_2\cdots d_{10} is valid exactly when ∑i=110i⋅di≡0(mod11)\sum_{i=1}^{10} i\cdot d_i \equiv 0 \pmod{11} (with d10=Xd_{10}=X standing for 1010 if needed). Verify that the ISBN 0 306 40615 20\,306\,40615\,2 (digits 0,3,0,6,4,0,6,1,5,20,3,0,6,4,0,6,1,5,2) is valid.

Solution

Step 1. List positions i=1,…,10i=1,\ldots,10 with their digits: (1,0),(2,3),(3,0),(4,6),(5,4),(6,0),(7,6),(8,1),(9,5),(10,2)(1,0),(2,3),(3,0),(4,6),(5,4),(6,0),(7,6),(8,1),(9,5),(10,2).

Step 2. Multiply each digit by its position and sum: 1(0)+2(3)+3(0)+4(6)+5(4)+6(0)+7(6)+8(1)+9(5)+10(2)=0+6+0+24+20+0+42+8+45+20=1651(0)+2(3)+3(0)+4(6)+5(4)+6(0)+7(6)+8(1)+9(5)+10(2) = 0+6+0+24+20+0+42+8+45+20 = 165.

Step 3. Check divisibility by 1111: 165=11×15165 = 11\times15, so 165≡0(mod11)165\equiv0\pmod{11}. The check-digit formula holds, so this ISBN is valid — and if a librarian mistyped a single digit while cataloguing it, the weighted sum would almost certainly no longer be a multiple of 1111, immediately flagging the error.

Example: The leap year rule

A year YY of the Gregorian calendar is a leap year exactly when (4∣Y and 100∤Y) or 400∣Y(4\mid Y \text{ and } 100\nmid Y)\ \text{or}\ 400\mid Y. Using this rule, determine whether 19001900, 20002000, and 20242024 are leap years.

Solution

Step 1. Check 19001900: 4∣19004\mid1900 (since 1900=4×4751900=4\times475), but 100∣1900100\mid1900 (since 1900=100×191900=100\times19) — the exception applies, and 400∤1900400\nmid1900 (since 1900/400=4.751900/400=4.75, not an integer), so the exception is not overridden. 19001900 is not a leap year.

Step 2. Check 20002000: 4∣20004\mid2000 and 100∣2000100\mid2000 (so the exception would apply), but 400∣2000400\mid2000 (since 2000=400×52000=400\times5), which overrides the exception. 20002000 is a leap year.

Step 3. Check 20242024: 4∣20244\mid2024 (since 2024=4×5062024=4\times506) and 100∤2024100\nmid2024, so the century exception does not even apply. 20242024 is a leap year. Astronomically, this rule (added by Pope Gregory XIII in 15821582) exists because Earth's orbit takes about 365.2425365.2425 days, not exactly 365.25365.25; skipping 33 leap days every 400400 years keeps the calendar close to the true solar year.

Is 1,234,5671{,}234{,}567 divisible by 99?

An ISBN-10's weighted digit sum ∑i=110i⋅di≡0(mod11)\sum_{i=1}^{10} i\cdot d_i \equiv 0 \pmod{11} comes out to 187187. Is the ISBN valid?

Which is the correct alternating-sum test for divisibility by 1111?

8484 is divisible by both 44 and 66. Is 8484 necessarily divisible by 2424?

References

  1. David M. Burton (2010). Elementary Number Theory
  2. John H. Conway, Richard K. Guy (1996). The Book of Numbers · DOI:10.1007/978-1-4612-4072-3