Difference between revisions of "Divisibility rules"
(→Divisibility Rule for 13) |
(→Divisibility Rule for 7) |
||
Line 57: | Line 57: | ||
Rule 1: Partition <math>n</math> into 3 digit numbers from the right (<math>d_3d_2d_1,d_6d_5d_4,\dots</math>). If the alternating sum (<math>d_3d_2d_1 - d_6d_5d_4 + d_9d_8d_7 - \dots</math>) is divisible by 7, then the number is divisible by 7.<br> | Rule 1: Partition <math>n</math> into 3 digit numbers from the right (<math>d_3d_2d_1,d_6d_5d_4,\dots</math>). If the alternating sum (<math>d_3d_2d_1 - d_6d_5d_4 + d_9d_8d_7 - \dots</math>) is divisible by 7, then the number is divisible by 7.<br> | ||
<br> | <br> | ||
− | Rule 2: Truncate the last digit of <math>{n}</math>, and | + | Rule 2: Truncate the last digit of <math>{n}</math>, and double that digit, subtracting the rest of the number from the doubled last digit. If the absolute value of the result is a multiple of 7, then the number itself is. <br> |
+ | ===Proof for Rule 2:=== | ||
+ | |||
+ | The divisibility rule would be <math>2n_0-k</math>, where <math>k=d_110^0+d_210^1+d_310^2+...</math>, where <math>d_{n-1}</math> is the nth digit from the right (NOT the left) and we have <math>k-2n_0\equiv 2n_0+6k</math> and since 2 is relatively prime to 7, <math>2n_0+6k\equiv n_0+3k\pmod{7}</math>. Then yet again <math>n_0+3k\equiv n_0+10k\pmod{7}</math>, and this is equivalent to our original number. | ||
== Divisibility Rule for 13 == | == Divisibility Rule for 13 == |
Revision as of 11:04, 15 August 2006
These divisibility rules help determine when integers are divisible by particular other integers.
Contents
Divisibility Rule for 2 and Powers of 2
A number is divisible by if the last digits of the number are divisible by .
Divisibility Rule for 3 and 9
A number is divisible by 3 or 9 if the sum of its digits is divisible by 3 or 9, respectively. Note that this does not work for higher powers of 3. For instance, the sum of the digits of 1899 is divisible by 27, but 1899 is not itself divisible by 27.
Divisibility Rule for 5 and Powers of 5
A number is divisible by if the last n digits are divisible by that power of 5.
Proof
An understanding of basic modular arithmetic is necessary for this proof.
Consider, for example, the test for divisibility by :
Let be a positive integer. Then is divisible by if and only if the sum of the base-ten digits of is divisible by .
Arithmetic mod can be used to give an easy proof of this criterion:
Suppose that the base-ten representation of is
,
where is a digit for each . Then the numerical value of is given by
.
Now we know that, since , we have (mod ). So by the "exponentiation" property above, we have (mod ) for every .
Therefore, by repeated uses of the "addition" and "multiplication" properties, we can write
(mod ).
Therefore, we have
(mod ).
That is, differs from the sum of its digits by a multiple of . It follows, then, that is a multiple of if and only if the sum of its digits is a multiple of .
Since we also have , the same proof also gives the divisibility rule for 3. The proof fails for 27 because .
Divisibility Rule for 11
A number is divisible by 11 if the alternating sum of the digits is divisible by 11.
Proof
. Since the number is in base 10, as we assume, the digits would be of powers of 10, or in mod 11, powers of -1. The number 3806 thus becomes:
.
Divisibility Rule for 7
Rule 1: Partition into 3 digit numbers from the right (). If the alternating sum () is divisible by 7, then the number is divisible by 7.
Rule 2: Truncate the last digit of , and double that digit, subtracting the rest of the number from the doubled last digit. If the absolute value of the result is a multiple of 7, then the number itself is.
Proof for Rule 2:
The divisibility rule would be , where , where is the nth digit from the right (NOT the left) and we have and since 2 is relatively prime to 7, . Then yet again , and this is equivalent to our original number.
Divisibility Rule for 13
Multiply the last digit by 4 and add it to the rest of the number. This process can be repeated for large numbers, as is with the divisibility rule for 7.
Proof
Say , where is the nth digit from the right (NOT THE LEFT). The rule becomes . Then , because you can divide by 4 in any instance mod 13. This goes further to , inspecting closely, this is our original number!
More general note
For every prime number other than 2 and 5, there exists a rule similar to rule 2 for divisibility by 7. For a general prime , there exists some number such that an integer is divisible by if and only if truncating the last digit, multiplying it by and subtracting it from the remaining number gives us a result divisible by . Divisibility rule 2 for 7 says that for , . The divisibility rule for 11 is equivalent to choosing . The divisibility rule for 3 is equivalent to choosing . These rules can also be found under the appropriate conditions in number bases other than 10.
Example Problems
Resources
Books
- The AoPS Introduction to Number Theory by Mathew Crawford.
Classes