Divisibility and Primes Flashcards
Divisibility of Primes:
A prime number x is only divisible by x (so itself) and 1. So, the prime number x has no factors other than x and 1.
Divisibility and Addition/Subtraction
If you add or subtract multiples of an integer, you get another multiple of that integer.
Divisibility and Addition/Subtraction:
- If you add a multiple of N to a non-multiple of N, the result is a non-multiple of N.
E.g.
18 + 10 = 28
(Multiple of 3) + (Non-multiple of 3) = (Non-multiple of 3)
- If you subtract a multiple of N from a non-multiple of N, the result is a non-multiple of N.
E.g.
18 - 10 = 8
(Multiple of 3) - (Non-multiple of 3) = (Non-multiple of 3)
- If you add two non-multiples of N, the result could be either a multiple of N or a non-multiple of N.
E.g.
19 + 13 = 32
(Non-multiple of 3) + (Non-multiple of 3) = (Non-multiple of 3)
19 + 14 = 33
(Non-multiple of 3) + (Non-multiple of 3) = (Multiple of 3)
So if two numbers share a factor, their sum or difference must share the same factor. This also means that in a subtraction if the two numbers don’t share any prime numbers, then their result might or might not be a prime number because the numbers don’t share any factors. But in a subtraction where both are not prime and share a prime number, their result will definitely be divisibly by that prime number as well and not be a prime.
Greatest Common Factor (GCF):
The greatest common factor is the largest divisor of two or more integers. The factor will be smaller than or equal to the starting integers.
Least Common Multiple (LCM):
The least common multiple is the smallest multiple of two or more integers. The multiple will be larger or equal to the starting integers.
when you add fractions you have to find the least common multiple.
Finding Greatest Common Factor and Least Common Multiple:
- Use a Venn diagram:
a. Do prime factorization.
E.g. 30 = 2 x 3 x 5
24 = 2 x 3 x 2 x 2
b. Place each shared factor into the shared area in the middle of the two-circle Venn diagram. In the above example 2 and 3 could go into the shared area. All remaining non-shared factors go into the two respective outer spaces, including the repetitions of 2s.
RESULT:
GCF is product of the primes in shared area (2x3 = 6)
LCM is product of all primes in Venn diagram (5x2x3x2x2 = 120)
REMEMBER: If two numbers have no primes in common, their GCF is 1 and their LCM is their product.
E.g. 35 (5x7) and 6 (3x2). GCF is 1 (common factor for all positive integers) and LCM is 35x6 = 210.
- For larger numbers use prime columns:
a. Calculate all prime factors of each number.
b. Create a column for each prime factor found in any of the integers.
c. Create a row for each integer.
d. In each cell of the table place prime factor raised to power. The power counts how many copies of the column’s prime factor were found for the row’s integer.
RESULT:
For GCF take lowest power of each prime factor found across all the integers. Count only the shared primes because the GCF is formed only out of the shared primes.
For LCM take highest power of each prime factor found across all the integers, not just the shared primes.
100: 2x2x5x5
140: 2x2x5x7
250: 2x5x5x5
Prime Column:
100 2^2 5^2
140 2^2 5 7
250 2 5^3
GCF = 2 x 5 = 10 LCM = 2^2 x 5^3 x 7 = 3,500
Once you become more familiar with calculating GCF and LCM using the prime columns you can just skip that part and just when you do the prime factorization scan the numbers and take the lowest powers of only the shared primes to find the GCF and highest powers of all occurring primes to find the LCM.
Determining Divisibility Through GCF:
GMAT may ask what combinations of numbers could lead to a specific GCF. When calculating the GCF for a set of numbers, you determine the prime factors and then take each prime factor all numbers have in common to the lowest power. If you are given the GCF, you work backwards to determine what the factor can tell you about divisibility.
E.g. if the task is to figure out whether z is divisible by 6 and you are told that the GCF of z and 12 are 3 you proceed to solve like this:
First you look at the prime factors of 12: 2x2x3
If both z and 12 have the GCF of 3 it means that z is divisible by 3 because it must have at least one prime factor of 3. At the same time this information also means that z is not divisible by 2 because if it was then the GCF would be a number divisible by 2. Since 12 has two 2s, this tells you that z can not have any factor of 2. For a number to be divisible by 6 it must be divisible by 3 and 2. Since z is not divisible by 2 it can’t be divisible by 6.
E.g. if your task is still to figure out whether z is divisible by 6 and you are told the GCF of z and 15 is 15 you know this:
The prime factors of 15 are: 3 and 5. Since the GCF of z is 15 you know that z has at least one 3 and one 5 as prime factor. But other than that you don’t know much else. You don’t know whether z is divisible by 2 which it would have to be in order to be divisible by 6.
Finding Value of Variables Through LCM:
If you are given the LCM and asked to find the value of variable you can use prime factorization again. Remember that the LCM of two or more integers is always at least as large as any of the integers. That means the variable cannot be larger than the LCM.
E.g. If the LCM of a and 12 is 36, what are the possible values of a?
First find prime factors of 36: 2x2x3x3
Find the prime factors of 12: 2x2x3
Since the LMC of 12 and a has two 2s and the LMC contains each prime factor to the power it appears the most and since 12 also has two 2s, you know that a could only either have two, one or zero 2s. a cannot contain more than two 2s because 12 contains two 2s and the LMC already counted in the most 2s between the factors of the two numbers. You also can see that the LMC contains two 3s. 12 however only contains one 3. That means that a must contain two 3s.
So a could have the values:
3x3 = 9 (zero 2s)
3x3x2 = 18 (one 2)
3x3x2x2 = 36
Counting Factors and Primes
GMAT could ask you to count factors of large numbers in different ways:
- How many different/unique, distinct prime factors?
Strategy: count each repeated prime factor only ONCE.
E.g. in 1,400 = 2x2x2x5x5x7, you would say three. - How many total prime factors (length)? Would ask What is the length of 252?
length of integer is defined as total number of primes that when multiplied equal that integer.
Strategy: not asking for distinct factors but all, so count all together, could also add the exponents.
E.g. in 1,400 = 2x2x2x5x5x7, you would say 6.
Counting all Factors of Numbers:
GMAT could ask you how many different factors a number has (all factors, not just primes)
Two Methods:
- Factor Pair Method:
Especially good for smaller numbers. Factors always come in pairs. Process:
Make table with two columns, Small and Large, start with 1 in Small and write 72 as its pair in Large (e.g. if we’re looking for factors of 72). Then go through the numbers, 2 in Small, 36 in Large etc. Do that until the number run into each other, which is the case after 8 with has the pair 9. The next number to test would be 9 and that once has pair 8 but you have that in the list already. At that point you can stop and count the number of factors you found. - Using Prime factorization:
The factor pair method is too cumbersome for large numbers. Prime factorization can shorten the process considerably. Key is to consider each distinct prime factor separately.
a) factor number into primes. E.g. 2000 = 2^4 x 5^3
b) consider prime factor 2: because there are four 2s, there are five possibilities for the number of 2’s in any factor of 2000: none, one, two, three, four.
c) consider prime factor 5: because there are three 5s, there are four possibilities for the number of 5s in any factor of 2000: none, one, two, three.
d) find the total number of factors: because there are five possible decisions for the 2-factor (whether it’s in zero time, one time, two times etc.) and four possible decisions for the 5-factor there are a total of 5x4 = 20 different factors.
General Rule: If a number has prime factorization a^x x b^y x c^z (where a, b, and c are all prime), the number has (x+1)(y+1)(z+1) different factors.
E.g. 9,450 = 2^1 x 3^3 x 5^2 x 7^1
so number has (1+1)(3+1)(2+1)(1+1) = 2 x 2 x 3 x 4 = 48 factors.
Factors of Perfect Squares and Cubes:
All perfect squares have an odd number of factors. That’s because factors come in pairs and in perfect squares there is one factor pair where the numbers are identical, it’s the square root.
E.g. in 36 two of the factors, 6x6, are identical.
Any number that is not a perfect square will never have an odd number of factors because the only way to arrive at a an odd number is to have a factor pair in which the two factors are equal.
For large numbers it would be too much work to use the factor-pair technique to proof that a number is a perfect square or has an odd number of factors. There’s a better technique:
Perfect squares are formed from the product of two copies of the same prime factors.
E.g. 90^2 = (2x3^2x5)(2x3^2x5) = 2^2 x 3^4 x 5^2
REMEMBER: The prime factorization of a perfect square contains only even powers of primes. And any number whose prime factorization contains only even powers of primes must be a perfect square. If a number’s prime factorization contains any odd powers of primes, the number is not a perfect square. Same counts for perfect cubes. Perfect cubes are formed from three identical sets of primes, so all of the powers of the primes are multiples of 3 in the factorization of the perfect cube.
E.g. 90^3 = (2x3^2x5)(2x3^2x5)(2x3^2x5) = 2^3 x 3^6 x 5^3
So you also know that the prime factors of k^3 are the prime factors of k in sets of three. So, if you for instance in a GMAT question are given that k^3 is divisible by some number and need to find out the least possible value for k you can look at the prime factorization of that number and you know three identical sets of that prime factorization make up the prime factorization of k^3 and then you take just one of those three sets and you know the least possible value for k. You work with a prime box in these questions.
E.g. If k^3 is divisible by 240, what is the least possible value of integer k?
- Prime factorization of 240: 2x2x2x2x3x5
- Write it down in a prime box. You know that cubes are three identical sets of prime factors so write
k^3 / | \ / | \ k k k 2 2 2 2 3 5
This is the prime factors given for k^3 through the question stem. The prime factors of k^3 must contain the prime factors of 240. Now there is a part of the box not filled out yet. You know that cubes contain three sets of identical primes so you can fill out the rest:
k^3 / | \ / | \ k k k 2 2 2 2 2 2 3 3 3 5 5 5
So you know that k has 2, 2, 3, and 5 as prime factors and so k must be a multiple of 60, which is also the least possible value for k.
Factorials and Divisibility:
N! is product of all integers from 1 to N. So, it’s divisible by all integers from 1 to N. Therefore, N! is a multiple of all integers from 1 - N.
Similarly, 10! + 7 is a multiple of 7 because 10! is divisible by 7 and 7 is too. So, 10! + 7 is divisible by 7.
10! + 15 is a multiple of 15 and therefore divisible by 15 because 15 is divisible by 3 and 5 and so is 10!
10! + 11! is a multiple of any factor from 1 to 10 because every integer from 1 to 10 inclusive is a factor of both 10! and 11!
Advanced Remainders:
Remainders are often expressed as integers but can also be expressed as fractions and decimals.
E.g. three ways to express remainder when 17 is divided by 5:
17 = 3x5 + 2
- 17/5 = 3 with remainder of 2
- 17/5 = 3 2/5
- 17/5 = 3.4
So, if you are for instance given a decimal and asked to find a possible remainder all you have to do is set up the fraction.
E.g. what is a possible remainder when A/B = 4.35
You know remainder is 0.35 so just express that as fraction:
35/100 = 7/20
so remainder could be 7 or a multiple of 7 because you can change the fraction for instance to 14/40.
If you know for instance then that the remainder is expressed as 14/40 you can even find A/B:
4 14/40 = 160/40 + 14/40 = 174/40
I.e. A = 174, B = 40
0 as a Remainder in Quotients:
Remember that when you are told that 2 is a remainder when n is divided by 7 and you are supposed to find the possible values for n you just can look at multiples of 7 and add 2:
Possible values:
- 0 because 0 can be quotient too and then 2/7 is the remainder.
- 9 because 9/7 would leave a remainder of 2 and you calculate it by finding a multiple of 7 and adding 2.
- 16 because 14 is the multiple of 7 and you added 2 because of the remainder given in question stem.
etc.
REMEMBER: in these questions you should not forget about the possible quotient of 0 which would only leave the fraction 2/7 and still fulfill the prerequisite that it’s a remainder of 0.
Multiples:
Multiples are the products of a given integer with other integers. An integer that is divisible by another integer without a remainder is a multiple of that integer. Multiples of an integer are either equal or larger than that integer.
E.g. multiples of 5: 5, 10, 15, 20, etc.
multiple of 3: 12 since 12 is divisible by 3.
Multiple/Factor = Integer
REMEMBER: An integer is always both a factor and a multiple of itself. Every positive integer has infinite multiples.
Factors:
Factors, or divisors, of a number are the positive integers that divide into that number without a remainder. A factor of an integer is smaller or equal to that integer.
E.g. 36 has nine positive factors: 1, 2, 3, 4, 6, 9, 12, 18, 36
Multiple/Factor = Integer
REMEMBER: An integer is always both a factor and a multiple of itself. 1 is a factor of every integer.
Greatest Common Factor/Greatest Common Divisor:
The greatest common factor, or greatest common divisor, of a pair of numbers is the largest factor shared by the two numbers.
Finding Common Multiples of Two Numbers:
E.g. Prime factorization is an efficient strategy here:
Prime factors of 4: 2 x 2
Prime factors of 6: 2 x 3
This shows us that we need a minimum of two 2s and one 3 to to “make” either a 4 or a 6 (not both at once). So, a number that is a multiple of both 4 and 6 is a multiple of:
2 x 2 x 3 = 12
Quick Way of Finding Multiples of Numbers:
If you are looking for multiples of 4 under 50 then divide 50 by 4. That gives you 12 and a remainder. That means that there are 12 multiples of 4 under 50.