When one integer divides another exactly, and the factors and multiples this relationship produces.
IntuitionWhat does it mean to divide evenly?
Splitting 12 candies into 3 equal bags leaves nothing over — 3divides12. Splitting 13 candies into 3 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 D12 of the divisors of 12 (1,2,3,4,6,12): each upward edge multiplies by a prime factor (2 or 3).
SchoolDefinitions and the division algorithm
Definition: Divisibility
An integer bdivides an integer a, written b∣a, if there exists an integer k with a=bk. When b∣a, we call b a factor (or divisor) of a, and a a multiple of b.
a=bq+r,0≤r<b(b>0)
This is the division algorithm: every integer a divided by a positive integer b leaves a unique quotient q and remainder r with a=bq+r,0≤r<b. Divisibility is the special case r=0.
n=i=0∑kdi10i
Writing a number in ordinary digits dkdk−1⋯d1d0 means exactly n=∑i=0kdi10i — this place-value expansion is the tool behind every digit-based divisibility rule below.
Let n have digits so that n=∑i=0kdi10i. Then 9∣n if and only if 9 divides the digit sum ∑idi; the same statement holds with 3 in place of 9.
Why is it true?
Every power of 10 leaves remainder 1 when divided by 9 (since 10=9+1), so shifting a digit to a higher place value never changes its contribution modulo 9 — the whole number is congruent to the plain sum of its digits.
Proof
Step 1. Show by induction that 10i≡1(mod9) for every i≥0. Base case i=0: 100=1≡1(mod9). Inductive step: if 10i≡1(mod9), then 10i+1=10⋅10i≡10⋅1=10≡1(mod9) (using 10≡1(mod9)). So 10i≡1(mod9) for all i.
Step 2. Substitute into the place-value expansion: n=∑idi10i≡∑idi⋅1=∑idi(mod9). So n and its digit sum always leave the same remainder upon division by 9.
Step 3. Conclude: 9∣n exactly when n≡0(mod9), which by Step 2 happens exactly when ∑idi≡0(mod9), i.e. exactly when 9 divides the digit sum. Since 9=3×3 and the same congruence 10≡1(mod3) also holds, the identical argument with 3 in place of 9 throughout proves the divisibility-by-3 version.
Let n have digits so that n=∑i=0kdi10i. Then 11∣n if and only if 11 divides the alternating digit sum ∑i(−1)idi.
Why is it true?
Unlike 9, powers of 10 do not stay congruent to 1 modulo 11 — instead they flip sign at every step, because 10 itself is congruent to −1 modulo 11. Digits at even positions contribute normally, odd positions contribute negatively.
Proof
Step 1. Show by induction that 10i≡(−1)i(mod11) for every i≥0. Base case i=0: 100=1=(−1)0. Inductive step: if 10i≡(−1)i(mod11), then 10i+1=10⋅10i≡(−1)⋅(−1)i=(−1)i+1(mod11) (using 10≡−1(mod11)). So 10i≡(−1)i(mod11) for all i.
Step 2. Substitute into the place-value expansion: n=∑idi10i≡∑idi(−1)i(mod11), which is precisely the alternating digit sum ∑i(−1)idi.
Step 3. Conclude: 11∣n exactly when n≡0(mod11), which by Step 2 happens exactly when 11 divides ∑i(−1)idi.
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 10-digit ISBN d1d2⋯d10 is valid exactly when ∑i=110i⋅di≡0(mod11) (with d10=X standing for 10 if needed). Verify that the ISBN 0306406152 (digits 0,3,0,6,4,0,6,1,5,2) is valid.
Solution
Step 1. List positions i=1,…,10 with their digits: (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=165.
Step 3. Check divisibility by 11: 165=11×15, so 165≡0(mod11). 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 11, immediately flagging the error.
Example: The leap year rule
A year Y of the Gregorian calendar is a leap year exactly when (4∣Y and 100∤Y)or400∣Y. Using this rule, determine whether 1900, 2000, and 2024 are leap years.
Solution
Step 1. Check 1900: 4∣1900 (since 1900=4×475), but 100∣1900 (since 1900=100×19) — the exception applies, and 400∤1900 (since 1900/400=4.75, not an integer), so the exception is not overridden. 1900 is not a leap year.
Step 2. Check 2000: 4∣2000 and 100∣2000 (so the exception would apply), but 400∣2000 (since 2000=400×5), which overrides the exception. 2000is a leap year.
Step 3. Check 2024: 4∣2024 (since 2024=4×506) and 100∤2024, so the century exception does not even apply. 2024is a leap year. Astronomically, this rule (added by Pope Gregory XIII in 1582) exists because Earth's orbit takes about 365.2425 days, not exactly 365.25; skipping 3 leap days every 400 years keeps the calendar close to the true solar year.
Is 1,234,567 divisible by 9?
An ISBN-10's weighted digit sum ∑i=110i⋅di≡0(mod11) comes out to 187. Is the ISBN valid?
Which is the correct alternating-sum test for divisibility by 11?
84 is divisible by both 4 and 6. Is 84 necessarily divisible by 24?