Division Test for 3 and Proof of the Division Test for 9
📂Number TheoryDivision Test for 3 and Proof of the Division Test for 9
Theorem
If the sum of all digits is a multiple of 3, it is a multiple of 3, and if it is a multiple of 9, it is a multiple of 9.
Explanation
For example,
- 8142 is a multiple of 3 by 8142=3⋅2714, and indeed 8+1+4+2=15 is a multiple of 3.
- 1945125 is a multiple of 9 by 1945125=9⋅216125, and indeed 1+9+4+5+1+2+5=27 is a multiple of 9.
Although the significance of divisibility tests has diminished in modern times, they are still an interesting tool. Multiples of 2,4,5,8 are very easy to determine, but numbers like 3,7,9,11 require separate proofs. Fortunately, except for 7, proofs and understanding are generally easy.
Proof
Strategy: The key to the proof is to break down the powers of 10 into 1 and 99..99 and only consider the digits. For convenience in proving, we will use the following notation in this post.
[anan−1…a1a0]=an⋅10n+an−1⋅10n−1+…+a1⋅101+a0⋅100
For example, 5714 can be represented as follows.
[5714]=5000+700+10+4=5⋅103+7⋅102+1⋅101+4⋅100
If the proof is not clear, it may be helpful to think about it with a real example.
===[anan−1…a1a0]an⋅10n+an−1⋅10n−1+…+a1⋅101+a0⋅100an⋅(10n−1)+an−1⋅(10n−1−1)+⋯+a1⋅(101−1)+a0+(an+an−1+…+a1)k=1∑nak(10k−1)+k=0∑nak
Here, 10n−1=[99…99] is a multiple of both 3 and 9 (for example, 103−1=999). Therefore, if k=0∑nak is a multiple of 3, [anan−1…a1a0] is also a multiple of 3. Similarly, if k=0∑nak is a multiple of 9, [anan−1…a1a0] is also a multiple of 9.
■