Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Shortcuts to check for divisibility

created by Eidolos

(idea) by Eidolos (3.1 mon) (print)   ?   (I like it!) 1 C! Sun Jun 22 2003 at 4:11:46

When I write {A is divisible by B} in this writeup, I mean {A modulo B = 0}. Essentially this means that only integers are considered, and if the division results in a remainder, then the division "doesn't work." It is true, of course, that, if this restriction were not imposed, all of these divisions would work.



Common Variables
N : The numerator in each of these division problems.
D : Any number of specific digits in N.
S : A sum of digits.


Two:
To check if a number N is divisible by two, look at N's last digit, D. If D is divisible by two, then N is divisible by two.
Three:
To check if a number N is divisible by three, find the sum S of N's digits. If S is divisible by three, then N is divisible by three. Repeat as necessary.
Four:
To check if a number N is divisible by four, look at N's last two digits, D. If D is divisible by four, then N is divisible by four.
Five:
To check if a number N is divisible by five, look at N's last digit, D. If D is a five or a zero, then N is divisible by five.
Six:
To check if a number N is divisible by six, check if N is divisible by both two and three. If it is, then N is divisible by six.
Seven:
To check if a number N is divisible by seven, look at N's last digit, D. Set N equal to (N-D)/10. In essence you are just removing N's final digit. Set D equal to 2*D. Set N equal to N-D. Check if N can be divided by seven. Repeat as necessary.
Eight:
To check if a number N is divisible by eight, look at N's last three digits, D. If D is divisible by eight, then N is divisible by eight.
Nine:
To check if a number N is divisible by nine, find the sum S of N's digits. If S is divisible by nine, then N is divisible by nine. Repeat as necessary.
Ten:
To check if a number N is divisible by ten, look at N's last digit, D. If D is a zero, then N is divisible by ten.
Eleven:
To check if a number N is divisible by eleven, set E equal to the sum of the even (second, fourth, etc.) digits of N. Set O equal to the sum of the odd (first, third, etc.) digits of N. If the absolute value of (E-O) is eleven or zero, then N is divisible by eleven.
Twelve:
To check if a number N is divisible by twelve, check if N is divisible by both three and four. If it is, then N is divisible by twelve.
Thirteen:
To check if a number N is divisible by thirteen, look at N's last digit, D. Set N equal to (N-D)/10. In essence you are just removing N's final digit. Set D equal to 9*D. Set N equal to N-D. Check if N can be divided by thirteen. Repeat as necessary.
Fourteen:
To check if a number N is divisible by fourteen, check if N is divisible by both two and seven. If it is, then N is divisible by fourteen.
Fifteen:
To check if a number N is divisible by fifteen, check if N is divisible by both three and five. If it is, then N is divisible by fifteen.
Sixteen:
To check if a number N is divisible by sixteen, look at N's last four digits, D. If D is divisible by sixteen, then N is divisible by sixteen.

Powers of Two:
To check if a number N is divisible by 2X, look at N's last X digits, D. If D is divisible by 2X, then N is divisible by 2X. You can simplify this by dividing both N and 2X by two as many times as necessary.
Composite Numbers:
To check if a number N is divisible by AB, where A and B are coprime (meaning they share no common prime factors), check if N is divisible by both A and B. If it is, then N is divisible by AB.

printable version
chaos

How to find out if ANY number is divisible by eleven S.O.L. How to determine whether a number is divisible by 7 How to determine whether a number is divisible by 3
How to determine whether a number is divisible by 4 How to determine whether a number is divisible by 9 Maynard James Keenan How to determine whether a number is divisible by 0
TI-83 Puritanical Euphoric Misanthropia modulo how to determine whether a number is divisible by n
division rule for seven lather, rinse, repeat A Perfect Circle How to determine oxidation numbers
Winona Ryder lone wolf == !=
sixteen Fifteen fourteen Thirteen
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

Cool Staff Picks
What you are reading:
If God did not exist, it would be necessary to invent him
In his autumn before the winter comes man's last mad surge of youth
Wildfire
Eddie Izzard
Why the rich get richer and the poor get poorer
I'd dance forever if they'd let me, you know
steel drum
William Shakespeare
Radiohead
The Fall of the Roman Empire
Replaceable Parts
Mad Magazine
Dissertation defense
New Writeups
anndandridge
Dorothy Dandridge(person)
PaulM
ignominity(idea)
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
Heitah
Pseudocide(idea)
XWiz
Google Knol(lede)
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
E2 is a by-product of the existence of The Everything Development Company