Mathematical-Reasoning · Unit 29 · Video 5 · Interactive Practice

Why the Divisibility Test for 9 Works: Powers of Ten Are 1 Mod 9

IKey Formulas

FormulaMeaning
n=∑j=0kdj⋅10jn = \sum_{j=0}^{k} d_j \cdot 10^j,  s(n)=∑j=0kdj\ s(n) = \sum_{j=0}^{k} d_jplace value and the digit sum of nn, with digits dk…d1d0d_k \ldots d_1 d_0
10j≡1(mod9)10^j \equiv 1 \pmod 9 for every integer j≥0j \ge 0proved by induction from 10≡1(mod9)10 \equiv 1 \pmod 9 and the product property
[n]=[s(n)][n] = [s(n)] in Z9\mathbb{Z}_9,  n≡s(n)(mod9)\ n \equiv s(n) \pmod 9a number and its digit sum leave the same remainder on division by 99
9∣n  ⟺  9∣s(n)9 \mid n \iff 9 \mid s(n)the divisibility test for 99

Key Insight: The whole proof rests on 10=9+110 = 9 + 1: every power of ten has class [1][1] in Z9\mathbb{Z}_9, so each digit counts with weight 11.

IIFrom Place Value to the Digit Sum

Well-defined ⊕\oplus and ⊙\odot carry the place-value equation into Z9\mathbb{Z}_9, where every power of ten becomes [1][1].

IIIPowers of Ten, One Induction Step at a Time

Each power of ten is the previous one times 1010, so its remainder is the previous remainder times that of 1010.

💡 Modulo 1111 the same induction gives 10j≡(−1)j10^j \equiv (-1)^j, which is why the test for 1111 uses the alternating digit sum instead.

IVQuiz Questions

Problem 1 · A Remainder Without Long Division

What remainder does 84 51284\,512 leave on division by 99?

✅ Correct! s(84 512)=20=9⋅2+2s(84\,512) = 20 = 9 \cdot 2 + 2, and 84 512≡s(84 512)(mod9)84\,512 \equiv s(84\,512) \pmod 9.
❌ Not quite. 2020 is the digit sum; a remainder on division by 99 lies between 00 and 88. Reduce 2020.
❌ Not quite. The remainder modulo 99 depends on every digit, not on one digit alone.
❌ Not quite. Add the digits, then reduce the sum modulo 99.
Show solution

By the theorem, n≡s(n)(mod9)n \equiv s(n) \pmod 9. Here

s(84 512)=8+4+5+1+2=20=9⋅2+2,s(84\,512) = 8 + 4 + 5 + 1 + 2 = 20 = 9 \cdot 2 + 2,

so the remainder is 22. Check: 84 512=9⋅9390+284\,512 = 9 \cdot 9390 + 2.

Problem 2 · The Inductive Step

Assume 10j≡1(mod9)10^j \equiv 1 \pmod 9. We also know 10≡1(mod9)10 \equiv 1 \pmod 9. Which property of congruence gives 10j+1≡1(mod9)10^{j+1} \equiv 1 \pmod 9 directly?

✅ Correct! 10j+1=10j⋅10≡1⋅1=1(mod9)10^{j+1} = 10^j \cdot 10 \equiv 1 \cdot 1 = 1 \pmod 9.
❌ Not quite. Adding gives 10j+10≡210^j + 10 \equiv 2, which is not a statement about 10j+110^{j+1}.
❌ Not quite. Symmetry only reverses one congruence; it never reaches the exponent j+1j + 1.
❌ Not quite. The Division Algorithm finds remainders, but the step needs a rule for combining two congruences.
Show solution

The product property says: if x≡yx \equiv y and z≡w(mod9)z \equiv w \pmod 9, then xz≡yw(mod9)xz \equiv yw \pmod 9. With x=10jx = 10^j, y=1y = 1, z=10z = 10, w=1w = 1:

10j+1=10j⋅10≡1⋅1=1(mod9).10^{j+1} = 10^j \cdot 10 \equiv 1 \cdot 1 = 1 \pmod 9.

Together with the base case 100=110^0 = 1, induction gives 10j≡1(mod9)10^j \equiv 1 \pmod 9 for every j≥0j \ge 0.

Problem 3 · A Missing Digit

The four-digit number 4a724a72 (thousands digit 44, hundreds digit aa, tens digit 77, units digit 22) is divisible by 99. Find the digit aa.

✅ Correct! 4+5+7+2=184 + 5 + 7 + 2 = 18, a multiple of 99, and 4572=9⋅5084572 = 9 \cdot 508.
❌ Not quite. 4+4+7+2=174 + 4 + 7 + 2 = 17 is not a multiple of 99.
❌ Not quite. 4+0+7+2=134 + 0 + 7 + 2 = 13 is not a multiple of 99.
❌ Not quite. The digit sum 13+a13 + a must be a multiple of 99.
Show solution

By the test, 9∣4a729 \mid 4a72 exactly when 9∣s(4a72)=13+a9 \mid s(4a72) = 13 + a. Since 0≤a≤90 \le a \le 9, the sum lies between 1313 and 2222, and the only multiple of 99 there is 1818. So a=5a = 5, and indeed 4572=9⋅5084572 = 9 \cdot 508.

Problem 4 · The Same Proof Modulo 3

Since 10≡1(mod3)10 \equiv 1 \pmod 3, the same argument shows n≡s(n)(mod3)n \equiv s(n) \pmod 3. What remainder does 73197319 leave on division by 33?

✅ Correct! s(7319)=20=3⋅6+2s(7319) = 20 = 3 \cdot 6 + 2, and 7319=3⋅2439+27319 = 3 \cdot 2439 + 2.
❌ Not quite. 2020 is not a multiple of 33, so 3∤73193 \nmid 7319.
❌ Not quite. 20=3⋅6+220 = 3 \cdot 6 + 2; recheck the reduction.
❌ Not quite. 2020 is the digit sum, not a remainder on division by 33.
Show solution

Every power of ten is ≡1(mod3)\equiv 1 \pmod 3 (the same induction, using 10≡1(mod3)10 \equiv 1 \pmod 3), so 7319≡7+3+1+9=20(mod3)7319 \equiv 7 + 3 + 1 + 9 = 20 \pmod 3. Since 20=3⋅6+220 = 3 \cdot 6 + 2, the remainder is 22.

Solved: 0 / 4