Divisibility/Divisibility Tests Flashcards
Learn
Primality Testing
to test a positive integer a to see if its prime, we only need to check to see if it
is divisible by the primes p such that p^2 <= a
n is divisible by 5 if ____
the rightmost digit of n is 0 or 5
n is divisible by 2 if ____
the rightmost digit of n is 0, 2, 4, 6, or 8
n is divisible by 8 if ____
the number formed by erasing all but the
rightmost three digits of n is divisible by 8
n is divisible by 3 if ____
the sum of the digits of n is divisible by 3
n is divisible by 4 if ____
the number formed by erasing all but the
rightmost two digits of n is divisible by 4
n is divisible by 7 if ____
double last digit and subtract from the rest of the number. repeat until you can tell if is divisible by 7
Prime Factorization
a divides b if and only if the exponents of the prime factors of a are less
than or equal to the exponents of the corresponding prime factors of b
n is divisible by 11 if ____
the difference between the sum of every other
digit of n and the sum of the remaining digits is
divisible by 11
n is divisible by 10 if ____
the rightmost digit is 0
n is divisible by 9 if ____
the sum of the digits of n is divisible by 9
n is divisible by 6 if ____
n is divisible by 2 and also by 3