AoPSWiki
Looking for a challenging geometry text? Preparing for MATHCOUNTS or the AMC exams? Check out Art of Problem Solving's Introduction to Geometry by Richard Rusczyk.
Personal tools

Divisibility rules/Rule for 2 and powers of 2 proof

From AoPSWiki

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 the base-ten representation of be \underline{a_ka_{k-1}\cdots a_1a_0} where the are digits for each and the underline is simply to note that this is a base-10 expression rather than a product. If has no more than digits, then the last digits of make up itself, so the test is trivially true. If has more than digits, we note that:

N = 10^k a_k + 10^{k-1} a_{k-1} + \cdots + 10 a_1 + a_0.

Taking this we have

= 10^k a_k + 10^{k-1} a_{k-1} + \cdots + 10 a_1 + a_0
\equiv 10^{n-1} a_{n-1} + 10^{n-2} a_{n-2} + \cdots + 10 a_1 + a_0 \pmod{2^n}

because for , . Thus, is divisible by if and only if

10^{n-1} a_{n-1} + 10^{n-2} a_{n-2} + \cdots + 10 a_1 + a_0 = \underline{a_{n-1}a_{n-2}\cdots a_1a_0}

is. But this says exactly what we claimed: the last digits of are divisible by if and only if is divisible by .

See also

Looking for a challenging geometry text? Preparing for MATHCOUNTS or the AMC exams? Check out Art of Problem Solving's Introduction to Geometry by Richard Rusczyk.
© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us