Lesson Divisibility by 9 rule
Algebra
->
Divisibility and Prime Numbers
-> Lesson Divisibility by 9 rule
Log On
Algebra: Divisibility and Prime Numbers
Section
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'Divisibility by 9 rule'
This Lesson (Divisibility by 9 rule)
was created by by
ikleyn(52824)
:
View Source
,
Show
About ikleyn
:
<H2>Divisibility by 9 rule</H2> The <B><U>"Divisibility by 9" rule</U></B> is as follows: <BLOCKQUOTE><TABLE BORDER=2> <TR> <TD> An integer number is divisible by <B>9</B> if and only if the sum of its digits is divisible by <B>9</B>. </TD> </TR> </TABLE></BLOCKQUOTE> In other words, for checking if the given integer number is divisible by <B>9</B>, make the following steps: 1. Calculate the sum of the digits of the given number. 2. Check if this sum is divisible by <B>9</B>. 3. If the sum of the digits is divisible by <B>9</B>, then the original number is divisible by <B>9</B>. If the sum of the digits is not divisible by <B>9</B>, then the original number is not divisible by <B>9</B>. Quite simple, isn't? <H3>Example 1</H3>Check if the number 576 is divisible by <B>3</B>. <B>Solution</B> The sum of the digits of the given number is 5 + 7 + 6 = 18. It is divisible by <B>9</B>. Hence, the original number 576 is divisible by 9, in accordance with the <B>"Divisibility by 9" rule</B>. You may check it by making the direct division: {{{576/9}}} = {{{64}}}. It shows that the number 376 is divisible by <B>9</B>. The <B>Divisibility rule</B> allows you to get the same conclusion without making long calculations. <H3>Example 2</H3>Check if the number 728 is divisible by <B>9</B>. <B>Solution</B> The sum of the digits of the given number is 7 + 2 + 8 = 17. It is not divisible by <B>9</B>. Hence, the original number 728 is not divisible by <B>9</B>, in accordance with the <B>"Divisibility by 9" rule</B>. Below are even more impressive examples. <H3>Example 3</H3>Check if the number 777,777,777 is divisible by <B>9</B>. <B>Solution</B> The sum of the digits of the given number is 7 + 7 + 7 + 7 + 7 + 7 + 7 + 7 + 7 = 63. It is divisible by <B>9</B>. Hence, the original number 777,777,777 is divisible by 9, in accordance with the <B>"Divisibility by 9" rule</B>. Again, the <B>Divisibility rule</B> allows you to get the conclusion without making long calculations. <H3>Example 4</H3>Check if the number 7,777,777,777 is divisible by <B>9</B>. <B>Solution</B> The sum of the digits of the given number is 7 + 7 + 7 + 7 + 7 + 7 + 7 + 7 + 7 + 7 = 70. It is not divisible by <B>9</B>. Hence, the original number 7,777,777,777 is not divisible by <B>9</B>, in accordance with the <B>"Divisibility by 9" rule</B>. The proof of this "divisibility rule" is exceptionally funny. It is very close to the proof of the <B>"divisibility by 3" rule</B> in the lesson <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Divisibility-by-3-rule.lesson>Divisibility by 3 rule</A> under the current topic in this site. <H3>The proof of the "divisibility by 9" rule</H3> First, let us consider how the "divisibility by 9" rule can be proved for an arbitrary three-digit number "abc", for example. Our three-digit number "abc" is 100*a + 10*b + c. (It is how our decimal system works). Now, regroup it: 100*a + 10*b + c = (99*a+a) + (9*b+b) + c = (99*a + 9*b) + (a + b + c). The additive (99*a + 9*b) is divisible by 9. Therefore, the divisibility by 9 of our original number "abc" depends on and is determined solely by the last additive (a + b + c), which is the sum of the digits of the number "abc". For the general case, the proof follows the same logical pattern. Let {{{a[n]}}}{{{a[n-1]}}} . . . {{{a[2]}}}{{{a[1]}}}{{{a[0]}}} be the decimal record of our integer number <B>N</B>. Then <B>N</B> = {{{a[n]*10^n}}} + {{{a[n-1]*10^(n-1)}}} + . . . + {{{a[2]*10^2}}} + {{{a[1]*10}}} + {{{a[0]}}}. Let us rewrite it in the form <B>N</B> = [{{{a[n]*(10^n -1)+a[n]}}}] + [{{{a[n-1]*(10^(n-1) -1)+a[n-1]}}}] + . . . + [{{{a[2]*(10^2-1)+a[2]}}}] + [{{{a[1]*(10-1)+a[1]}}}] + {{{a[0]}}} and then regroup it as <B>N</B> = {{{a[n]*(10^n -1)}}} + {{{a[n-1]*(10^(n-1)-1)}}} + . . . + {{{a[2]*(10^2-1)-1}}} + {{{a[1]*(10-1)}}} + [{{{a[n]}}} + {{{a[n-1]}}} + . . . {{{a[2]}}} + {{{a[1]}}} + {{{a[0]}}}]. The first <B>n</B> additives, {{{a[n]*(10^n-1)}}}, {{{a[n-1]*(10^(n-1)-1)}}}, . . . , {{{a[2]*(10^2-1)}}}, {{{a[1]*(10-1)}}} are divisible by <B>9</B>, because each has a multiplier {{{10^k-1}}} which is divisible by <B>9</B>. (Indeed, each multiplier {{{10^k-1}}} is the number which is written with the only digit  "<B>9</B>" in all positions). Hence, the sum of these additives {{{a[n]*(10^n-1)}}} + {{{a[n-1]*(10^(n-1)-1)}}} + . . . + {{{a[2]*(10^2-1)}}} + {{{a[1]*(10-1)}}} is divisible by <B>9</B>  too. Therefore, the divisibility by <B>9</B> of our original number depends on and is determined solely by the sum {{{a[n]}}} + {{{a[n-1]}}} + . . . {{{a[2]}}} + {{{a[1]}}} + {{{a[0]}}}, which is the sum of all digits of the original number. It is what has to be proved. My other lessons in this site on divisibility rules are - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Divisibility-by-2-rule.lesson>Divisibility by 2 rule</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Divisibility-by-3-rule.lesson>Divisibility by 3 rule</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Divisibility-by-4-rule.lesson>Divisibility by 4 rule</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Divisibility-by-5-rule.lesson>Divisibility by 5 rule</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Divisibility-by-6-rule.lesson>Divisibility by 6 rule</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Divisibility-by-10-rule.lesson>Divisibility by 10 rule</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Divisibility-by-11-rule.lesson>Divisibility by 11 rule</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Restore-the-omitted-digit-in-a-number-in-a-way-the-number-is-divisible-by-9.lesson>Restore the omitted digit in a number in a way that the number is divisible by 9</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Restore-the-omitted-digit-in-a-number-in-a-way-the-number-is-divisible-by-11.lesson>Restore the omitted digit in a number in a way that the number is divisible by 11</A> - <A HREF=https://www.algebra.com/algebra/homework/divisibility/lessons/Can-there-be-a-perfect-square.lesson>Can there be a perfect square ?</A> - <A HREF=https://www.algebra.com/algebra/homework/divisibility/lessons/Math-circle-level-problems-on-divisibility-numbers.lesson>Math circle level problems on divisibility numbers</A> - <A HREF=https://www.algebra.com/algebra/homework/divisibility/lessons/Math-circle-level-problem-on-restoring-digit-in-the-product-of-two-16-digit-numbers.lesson>Math circle level problem on restoring digit in the product of two 16-digit numbers</A> - <A HREF=https://www.algebra.com/algebra/homework/divisibility/lessons/Math-circle-level-problem-on-finding-remainders.lesson>Math circle level problem on finding remainders</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/OVERVIEW-of-Divisibility-rules-by-2-3-4-5-6-9-10-11.lesson>OVERVIEW of Divisibility rules by 2, 3, 4, 5, 6, 9, 10 and 11</A> Lessons that are closely adjacent to these are - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Product-of-two-consecutive-integers-is-divisible-by-2.lesson>Product of two consecutive integers is divisible by 2</A> - <A HREF=http://www.algebra.com/algebra/homework/divisibility/lessons/Product-of-three-consecutive-integers-is-divisible-by-6.lesson>Product of three consecutive integers is divisible by 6</A> - <A HREF=http://www.algebra.com/algebra/homework/Problems-with-consecutive-odd-even-integers/Problems-dealing-with-the-product-of-two-consecutive-integers.lesson>Problems dealing with the product of two consecutive integers</A> - <A HREF=http://www.algebra.com/algebra/homework/Problems-with-consecutive-odd-even-integers/Problems-dealing-with-the-product-of-three-consecutive-integers.lesson>Problems dealing with the product of three consecutive integers</A>