Everything2
Near Matches
Ignore Exact
Full Text
Everything2

How to determine whether a number is divisible by 3

created by evilkalla

(idea) by evilkalla (6.6 d) (print)   ?   (I like it!) 1 C! Fri Jul 13 2001 at 2:36:50

This works for whole numbers. Simply add up the digits in the number. The resulting number should be small enough to divide by three in your head. If that number is evenly divisible by three, so is the original number. I heard this long ago in fourth grade.

Examples :
45
4 + 5 = 9
9 / 3 = 3

2550
2 + 5 + 5 + 0 = 12
12 / 3 = 4

1290363
1 + 2 + 9 + 0 + 3 + 6 + 3 = 24
24 / 3 = 8
or, if you don't like dividing 24 by 3,
24
2 + 4 = 6
6 / 3 = 2

Voila!


(idea) by hobyrne (3 y) (print)   ?   (I like it!) 1 C! Fri Jul 13 2001 at 3:03:54

Proof of the above method:

Consider each digit seperately. The digit in the '1's place (d0) is just exactly what it is. The digit in the '10's place (d1) has the value (10 * d1) = ((3 * 3 * d1) + d1) = ((3 * N1) + d1) for N1 equal to some integer (specifically, (3 * d1)). Now, A is divisible by 3 if and only if (A - (3 * N1)) is divisible by 3. So the number ((10 * d1) + d0) is divisible by 3 iff (((10 * d1) + d0) - (3 * N1)) is divisible by 3, i.e. iff (d0 + d1) is divisible by 3. The same operation can be performed for all the remaining digits, (100 * d2) = ((3 * 33 * d2) + d2), N2 = (33 * d2), and in general ((10 ^ i) * di) = ((3 * 3 * f(i) * di) + di), Ni = (3 * f(i) * di) where f(i) is the value represented by i '1' digits in a row in decimal notation.

This shows that not only can you find whether a number is divisible by 3, but exactly what number it is modulo 3 - if you end up with 0, 3, 6, or 9 then the original number is 0 modulo 3, if you end up with 1, 4, or 7 then the original number is 1 modulo 3, and if you end up with 2, 5, or 8 the original number is 2 modulo 3.

The same argument can be used to check if a number is divisible by 9, or to check what value a number is modulo 9 (use (9 * d1), N1 = d1, and (9 * 11 * d2), N2 = (11 * d2), (9 * f(i) * di), Ni = (f(i) * di)).


printable version
chaos

How to determine whether a number is divisible by 7 How to determine whether a number is divisible by 0 Shortcuts to check for divisibility How to find out if ANY number is divisible by eleven
how to determine whether a number is divisible by n How to determine whether a number is divisible by 4 The set of decimal representations of numbers divisible by 17 is regular By my balls, I do swear.
How to determine whether a number is divisible by 9 Choose a password with only X's in it How can a thinking, rational adult be a monotheist? Naming your dog "Password"
Divisibility in base 12 voilą Number of Sperm released by the common male animal per ejaculation Mi-24 Hind
The Harry Potter Project finite state automaton pantheist IFF
deterministic finite automaton m_turner's postulate barefoot Stanislaw Lem
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help


cooled by knifegirl

Cool Staff Picks
What you are reading:
Trekking in Nepal: Jiri to Namche Bazaar
Natural Language Processing
She said, while hugging a bowl of turnips close to her bosom
Slug Bug
The Cremation of Sam McGee
glassblowing
No Lever
What happens when we die?
Arthur C. Clarke
What I learned from the skateboarders outside my window
Der Ring des Nibelungen
Hydrogen peroxide
beekeeping
New Writeups
doctor wilson
Soup, of the green variety(recipe)
Ctrl Y
cognitive dissonance(fiction)
SharQ
Gone Baby Gone(review)
halfWit
If I could, I'd title this "Freedom"(thing)
Roninspoon
Airline Hero(thing)
Ktistec
Why Women Are Always Cold(person)
doctor wilson
Drug policy reform(thing)
tejasa
Easy Raspberry Cheesecake(recipe)
Joysim
Drug policy reform(idea)
aneurin
Tyburn(place)
niruena
Boiling to death(idea)
artman2003
summer(thing)
doctor wilson
The Silver City and the Silent Sea(log)
Dreamvirus
The Silver City and the Silent Sea(poetry)
Aerobe
A nihilist's soulmate(poetry)
This page courtesy of The Everything Development Company