Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Reciprocal links
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Consider an integer a

  a = an10n + an-110n-1 +...+ a1101 + a0

Criteria of divisibility by 9

 

a is divisible by 9 if and only if the sum of the digits an + an-1 + ... + a1 + a0 is divisible by 9.

Criteria of divisibility by 11

 

a is divisible by 11 if and only if the alternating sum of the digits (-1)nan + (-1)n-1an-1 + ... -a1 + a0 is divisible by 11.

In what follows I shall be using representation of a number in various base systems. In the decimal (base 10) system a number a is written as

  a = (a)10 = an10n + an-110n-1 + ... + a1101 + a0

Generally speaking, for an integer base b the same number a will be written as

  a = (a)b = ckbk + ck-1bk-1 + ... + c1b1 + c0

Notation (a)b is meant to underscore the base in which a is expanded. The most customary is the decimal system. But, say, the French still use remnants of the system in base 20. With the advent of computers the binary (base 2) and hexadecimal (base 16) have been thrust into prominence. The octal system (base 8) is very useful in handling lengthy binary representations.

Conversion between different bases is a good exercise that helps test your understanding of relevant techniques.

Theorem

Let b be an integer. Then an integer a

  1. is divisible by (b-1) if and only if the sum of digits in its expansion (a)b is divisible by (b-1)
  2. is divisible by (b+1) if and only if the alternating sum of digits in its expansion (a)b is divisible by (b+1)

Proof

The proof is based on Modulo Arithmetic. Thus we have b-1=0 (mod (b-1)) which implies b=1 (mod (b-1)). Therefore, for every i>0, bi = 1 (mod(b-1)). Multiplying this by ci and summing up for i=0,1, ..., k we get the first assertion.

Similarly, b+1=0 (mod (b+1)) hence b=-1 (mod (b+1)). Therefore, for i>0, bi = (-1)i (mod(b+1)). Multiplying this by ci and summing up for i=0,1, ..., k we get the second assertion.

Example 1

Let a=164. Is it divisible by 4? On the one hand, 164=125+25+2·5+4=(1124)5. The sum of digits is 1+1+2+4=8 and is divisible by 4. Therefore 164 is divisible by 4.

On the other hand, 164=2·81+0·27+0·9+0·3+2=(20002)3. The alternating sum of digits is 2-0+0-0+2=4 and is divisible by 4. Therefore, again, 164 is divisible by 4.

For divisibility by 7 there are two criteria:

  1. a = (a)6 = ck6k+ck-16k-1+...+c161+c0 is divisible by 7 iff the alternating sum of digits (-1)kck+(-1)k-1ck-1+...+c0 is divisible by 7.
  2. a = (a)8=ck8k+ck-18k-1+...+c181+c0 is divisible by 7 iff the sum of digits ck+ck-1+...+c0 is divisible by 7.

Example 2

512=83. Therefore (512)10=(1000)8. This implies that divided by 7 the remainder will be 1. Then, for example, 511 is divisible by 7.

1296=64. Therefore (1296)10=(10000)6. From here (1296+6)10=(10010)6. Its alternating sum of digits is 1-0+0-1+0=0. As a result, 1302 is divisible by 7.

On Internet

  1. Divisibility Rules

Copyright © 1996-2008 Alexander Bogomolny

28739334Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
Math
Posted by Laura
2 messages
06:56 AM, Apr-15-08

Divisibility rules - Jargon buste ...
Posted by Carolyn
2 messages
08:35 AM, Apr-04-08

drawing puzzle
Posted by martin gran
31 messages
06:53 PM, May-09-08

conway's game of life
Posted by frequency
0 messages
11:52 PM, May-12-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

Deriving functions based on diffe ...
Posted by ke_45
1 messages
12:47 PM, May-10-08

Josephus Flavius (correction)
Posted by David Turner
1 messages
09:42 AM, May-14-08