Difference between revisions of "Divisibility rules/Rule for 3 and 9 proof"
Line 29: | Line 29: | ||
Since we also have <math>10 \equiv 1 \pmod 3</math>, the same proof also gives the divisibility rule for 3. The proof fails for 27 because <math>10 \not\equiv 1 \pmod{27}</math>. | Since we also have <math>10 \equiv 1 \pmod 3</math>, the same proof also gives the divisibility rule for 3. The proof fails for 27 because <math>10 \not\equiv 1 \pmod{27}</math>. | ||
− | + | == See also == | |
+ | * [[Divisibility rules | Back to divisibility rules]] |
Revision as of 21:44, 15 August 2006
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.
Proof
An understanding of basic modular arithmetic is necessary for this proof.
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 .