We all have learned about divisibility tests for many certain numbers in our elementary school. In this note, I will be discussing about the method that those tests are derived from. For every derivation that I will be discussing, we will be taking the variable number of the form
N=anan−1an−2⋯a2a1a0
OR
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0
I will just present you with those special cases that you are familiar with and you can apply this idea to create divisibility test for any positive integer you may want to. Also I will be using the term 'number' only and only for the set of positive integers or natural numbers in this context. Also keep in mind that you must have at least some basic knowledge of modular arithmetic to understand the derivations.
Let's begin!
Divisibility by 2
Statement
Any number with 2, 4, 6, 8 and 0 as the unit digit is divisible by 2.
Proof
We have,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0
Taking (mod2) of N we get,
NN≡0+0+0+⋯+0+0+a0(mod2)As 10k where k≥1 is always divisible by 2≡a0(mod2)
Therefore, N≡0(mod2) if a0≡0(mod2).
Since, a0 is a single digit number. The only values that satisfy are 0, 2, 4, 6 and 8.
The same approach can be used for 5 and 10 as well due to the fact that 10k where k≥1 is always divisible by 5 and 10 as well and hence, the values fitting for a0 in this case are 0 and 5 for the number 5 and 0 for the number 10, thus proving the divisibility tests of 5 and 10.
Q.E.D.
Divisibility by 3
Statement
Any number whose sum of digits is divisible by 3 is also divisible by 3.
Proof
We have,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0
Taking (mod3) of N we get,
N≡1×an(mod3)+1×an−1(mod3)+1×an−2(mod3)+⋯+1×a2(mod3)+1×a1(mod3)+1×a0(mod3) As 10k−1 where k≥1 is always divisible by 3≡(an+an−1+an−2+⋯+a2+a1+a0)(mod3)
Therefore, N≡0(mod3) if an+an−1+an−2+⋯+a2+a1+a0≡0(mod3).
Thus, the sum of digits must be divisible by 3 for the number to be divisible by 3.
The same approach can be used for 9 as well due to the fact that 10k−1 where k≥1 is always divisible by 9 as well and hence, the sum of digits of the number in this case must be divisible by 9 so that the number itself is divisible by 9, thus proving the divisibility test of 9.
Q.E.D.
Divisibility by 4
Statement
Any number whose digits in the tens and units place taken in that order respectively, if divisible by 4, then the number is also divisible by 4.
Eg- The number 11564 is divisible by 4 because 64 is divisible by 4.
Proof
We have,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0
Taking (mod4) of N we get,
NN≡0+0+0+⋯+0+10a1+a0(mod4)As 10k where k≥2 is always divisible by 4≡10a1+a0(mod4)
Therefore, N≡0(mod4) if 10a1+a0=a1a0≡0(mod4).
Thus, the if the tens and units place of a number taken in that order is divisible by 4 then the number is also divisible by 4.
The same approach can be used for 25 as well due to the fact that 10k where k≥2 is always divisible by 25 as well and hence, if the digits in the tens and units place of a number taken in that order respectively, if divisible by 25, then the number is also divisible by 25.
Q.E.D.
Divisibility by 6
Statement
Any number which is divisible by 2 and 3 both is also divisible by 6 as well.
Proof
This doesn't require any proof other that the fact that if
N≡0(mod2) and N≡0(mod3), then N≡0(mod2×3=6). As 2 and 3 are co-prime numbers.
Q.E.D.
Divisibility by 7
Statement
Any number whose absolute difference between twice the units digit and the number formed by the rest of the digits, if it is 0 or divisible by 7, then the number is also divisible by 7.
Eg- The number 343 is divisible by 7 because 34−2×3=28 is also divisible by 7.
Proof
We have,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0
Let,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0=7kfor some integer k
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1)+a0=7k
Add and subtract 20a0 on the L.H.S. to get,
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1)+20a0−20a0+a0=7k
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1−2a0)+21a0=7k
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1−2a0)=7k−21a0
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1−2a0)≡0(mod7)
N=10(anan−1an−2⋯a2a1−2a0)≡0(mod7)
Since, 10≡3(mod7), therefore, for N to be divisible by 7, anan−1an−2⋯a2a1−2a0≡0(mod7).
Thus, for a number if the absolute difference between twice the units digit and the number formed by the rest of the digits, is 0 or divisible by 7, then that number is also divisible by 7.
Q.E.D.
Divisibility by 8
Statement
Any number whose digits in the hundreds, tens and units place taken in that order respectively, if divisible by 8, then the number is also divisible by 8.
Eg- The number 74152 is divisible by 8 because 152 is divisible by 8.
Proof
We have,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0
Taking (mod8) of N we get,
NN≡0+0+0+⋯+102a2+10a1+a0(mod8)As 10k where k≥3 is always divisible by 8≡100a2+10a1+a0(mod8)
Therefore, N≡0(mod8) if 100a2+10a1+a0=a2a1a0≡0(mod8).
Thus, the if the hundreds, tens and units place of a number taken in that order is divisible by 8 then the number is also divisible by 8.
The same approach can be used for 125 as well due to the fact that 10k where k≥3 is always divisible by 125 as well and hence, if the digits in the hundreds, tens and units place of a number taken in that order respectively, if divisible by 125, then the number is also divisible by 125.
Q.E.D.
Divisibility by 11
Statement
Any number whose absolute difference of the sum of digits occurring in the even positions and the sum of digits occurring in odd positions, if it is 0 or divisible by 11, then the number is also divisible by 11.
Proof
We have,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0
Taking (mod11) of N we get,
N≡±an∓an−1±an−2⋯∓a2±a1∓a0(mod11)As 10k≡+1(mod11) if k is even and 10k≡−1(mod11) if k is odd
- Suppose n is even, then we have:
N≡an−an−1+an−2−⋯+a2−a1+a0(mod11)N≡(an+an−2+⋯+a2+a0)−(an−1+an−3+⋯+a3+a1)(mod11)
Therefore, N≡0(mod11) if (an+an−2+⋯+a2+a0)−(an−1+an−3+⋯+a3+a1)≡0(mod11), given that n is even.
- Suppose n is odd, then we have:
N≡−an+an−1−an−2+⋯+a2−a1+a0(mod11)N≡(an−1+an−3+⋯+a2+a0)−(an+an−2+⋯+a3+a1)(mod11)
Therefore, N≡0(mod11) if (an−1+an−3+⋯+a2+a0)−(an+an−2+⋯+a3+a1)≡0(mod11), given that n is odd.
From the above two conditions, we infer that for a number to be divisible by 11, its absolute difference of the sum of digits occurring in the even positions and the sum of digits occurring in odd positions, should be 0 or divisible by 11.
Q.E.D.
Divisibility by 12
Statement
Any number which is divisible by 3 and 4 both is also divisible by 12 as well.
Proof
This doesn't require any proof other that the fact that if
N≡0(mod3) and N≡0(mod4), then N≡0(mod3×4=12). As 3 and 4 are co-prime numbers.
Q.E.D.
Divisibility by 13
Statement
Any number whose sum of four times the units digit and the number formed by the rest of the digits, if it is divisible by 13, then the number is also divisible by 13.
Eg- The number 169 is divisible by 13 because 16+4×9=52 is also divisible by 13.
Proof
We have,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0
Let,
N=10nan+10n−1an−1+10n−2an−2+⋯+102a2+10a1+a0=13kfor some integer k
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1)+a0=13k
Add and subtract 40a0 on the L.H.S. to get,
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1)+40a0−40a0+a0=13k
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1+4a0)−39a0=13k
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1+4a0)=13k+39a0
N=10(10n−1an+10n−2an−1+10n−3an−2+⋯+10a2+a1+4a0)≡0(mod13)
N=10(anan−1an−2⋯a2a1+4a0)≡0(mod13)
Since, 10≡10(mod13), therefore, for N to be divisible by 13, anan−1an−2⋯a2a1+4a0≡0(mod13).
Thus, for a number if the sum of four times the units digit and the number formed by the rest of the digits, is divisible by 13, then that number is also divisible by 13.
Q.E.D.
Based on the same approach, a divisibility test can be made for each and every number by just observing their patterns over successive powers of 10.
Hope you enjoyed reading this.
Thank you
#NumberTheory
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
WOOOOOAHHH! You just shown the proof for most of the divisibility rules. You should post your note as another separate wiki called "Proof of divisibilities rules"!
Log in to reply
Well, that wiki has already been made. They have proved what I have proved in another way.
Btw, thanks. :)
Log in to reply
I agree that adding the proofs for these divisibility rules will be helpful for those who want to learn about the underlying number theoretic. It would be great if you can contribute to Proof Of Divisibility Rules and we can link it from there.
Log in to reply
here. Feel free to share your opinion about the wiki and it would be very kind of you if you can contribute by citing problems and examples.
Thanks for encouraging me to write this wiki. You can check it outThanks for encouraging me to write this wiki. You can check it out here. Feel free to share your opinion about the wiki and it would be very kind of you if you can contribute by citing problems and examples.
Excellent!
I hope my grade for 4 and 5 teachers knew it, I always troubled them asking for the proof :P
Log in to reply
Haha, well I had asked my teachers too about this once. But they told that it wasn't in our syllabus and shut my mouth.
Log in to reply
Syllabus based school studies is what preventing India from becoming a developing country to a developed country.
Log in to reply
Nicely written!
Log in to reply
Thank you! :D