Difference between revisions of "Divisibility rules/Rule for 2 and powers of 2 proof"
m (→Proof) |
|||
Line 4: | Line 4: | ||
''An understanding of [[Introduction to modular arithmetic | basic modular arithmetic]] is necessary for this proof.'' | ''An understanding of [[Introduction to modular arithmetic | basic modular arithmetic]] is necessary for this proof.'' | ||
− | Let <math>N = a_ka_{k-1}\cdots a_1a_0</math> where the <math>a_i</math> are [[ | + | Let <math>N = a_ka_{k-1}\cdots a_1a_0</math> be the [[base numbers | base-ten]] expression for <math>N</math>, where the <math>a_i</math> are [[digit]]s. |
Thus <center><math> N = 10^k a_k + 10^{k-1} a_{k-1} + \cdots + 10 a_1 + a_0. </math></center> | Thus <center><math> N = 10^k a_k + 10^{k-1} a_{k-1} + \cdots + 10 a_1 + a_0. </math></center> |
Revision as of 09:44, 16 August 2006
A number is divisible by if the last digits of the number are divisible by .
Proof
An understanding of basic modular arithmetic is necessary for this proof.
Let be the base-ten expression for , where the are digits.
Thus
Taking mod gives