Divisibility & Factors
Divisors, number/sum of divisors, factorization, divisibility rules
What you need to know
- Fundamental Theorem of Arithmetic. Every whole number is a product of primes in exactly one way (apart from order). We write , where the are different primes and the are their exponents. Example: , and no other primes multiply to .
- Counting divisors. Write for the number of positive divisors of . Then , because a divisor uses anywhere from to copies of each prime : that is choices. Example: has divisors.
- Adding divisors. Write (Greek "sigma") for the sum of the positive divisors. Multiply one sum per prime: . Example: .
- Divisors come in pairs and . So has an odd number of divisors exactly when is a perfect square, since only then does one divisor, , pair with itself. Example: pairs up as , , , , , giving divisors.
- Divisibility rules. Last digit for , , ; last two digits for , ; last three digits for ; digit sum for , ; alternating digit sum (add and subtract the digits in turn) for . Example: is divisible by (ends in ), by (), and by ().
- Counting multiples. From to there are multiples of , where (the floor) means round down. Example: multiples of up to , the last being .
- Combining. If divides both and , then divides for any integers and . Example: divides and , so it divides .
How AMC 10 tests it
- Early problems (1–8) factor the contest year and ask for a sum or a digit fact about its factors.
- Middle problems (10–18) ask "how many positive divisors of are …" (even, perfect squares, multiples of ). That is with limits on the exponents.
- "How many integers up to are divisible by or but not ?" combines floor counting with the Principle of Inclusion-Exclusion (PIE).
- Products of consecutive integers: which number must divide ? One counterexample rules a choice out.
- Late problems go backwards: given or , find the smallest such or count the possibilities.
Standard approaches
- Prime factorize right away; almost every divisor question becomes a question about exponents.
- To count divisors with a property, list the allowed exponents for each prime and multiply. Example: an even divisor of has to twos and to threes: .
- For the smallest with a given number of divisors, write that number as a product , give the largest exponents to the smallest primes, and compare every such product.
- Count multiples with floors, and handle overlaps with the lcm: numbers divisible by both and are the multiples of .
- For a "must divide" claim, test one small example such as .
Worked example
Let be the smallest positive integer with exactly positive divisors. What is the sum of the digits of ?
(A) (B) (C) (D) (E)
Step 1: the shapes. The divisor count is a product of (exponent ) factors. So write as a product of factors that are each at least , largest first: , , , .
Step 2: smallest number for each shape. Subtract from each factor to get the exponents, and give the biggest exponent to , the next to , then :
- gives .
- gives .
- gives .
- gives .
Step 3: pick the smallest. , and its digit sum is .
The answer is .
Pitfalls
- Forgetting the : has divisors, not .
- Counting and inconsistently. "Proper divisors" leaves out itself, so check the wording. Example: has divisors but proper divisors.
- Assuming the shape with the most factors always gives the smallest ; compare them all. Example: for divisors, gives , but gives .
- Using instead of in PIE when and share a factor. Example: up to , the numbers divisible by both and are the multiples of , not the multiples of .
Traps that recur
- Counting only the 15 primes as failures (answer 35) and missing that n = 4 also fails, or forgetting that n = 1 works. (2019 AMC 10A #25)
- Counting only the n with d(n) = 6 (eight of them) and missing 36 and 48, whose f_1 values 18 and 20 also feed into the fixed point 12. (2021 AMC Fall 10A #23)
- Trying to compute C(52,10) exactly, or using divisibility by 11 (which every choice satisfies) and getting nowhere. (2020 AMC 10B #19)
- Answering 121 by forgetting the word 'distinct', or subtracting only the two obvious cases 1 and 10^10 to get 119. (2019 AMC 10B #19)
- 1.2004 AMC 10B #4
A standard six-sided die is rolled, and is the product of the five numbers that are visible. What is the largest number that is certain to divide ?
- A)
- B)
- C)
- D)
- E)
- 2.2003 AMC 10A #15
What is the probability that an integer in the set is divisible by and not divisible by ?
- A)
- B)
- C)
- D)
- E)
- 3.2003 AMC 10A #8
What is the probability that a randomly drawn positive factor of is less than ?
- A)
- B)
- C)
- D)
- E)
- 4.2001 AMC 10 #12
Suppose that is the product of three consecutive integers and that is divisible by . Which of the following is not necessarily a divisor of ?
- A)
- B)
- C)
- D)
- E)
- 5.2025 AMC 10B #8
Emmy says to Max, "I ordered math club sweatshirts today." Max asks, "How much did each shirt cost?" Emmy responds, "I'll give you a hint. The total cost was , where and are digits and ." After a pause, Max says, "That was a good price." What is ?
- A)
- B)
- C)
- D)
- E)
- 6.2021 AMC 10B #12
Let . What is the ratio of the sum of the odd divisors of to the sum of the even divisors of ?
- A)
- B)
- C)
- D)
- E)
- 7.2021 AMC 10B #16
Call a positive integer an uphill integer if every digit is strictly greater than the previous digit. For example, , , and are all uphill integers, but , , and are not. How many uphill integers are divisible by ?
- A)
- B)
- C)
- D)
- E)
- 8.2020 AMC 10A #15
A positive integer divisor of is chosen at random. The probability that the divisor chosen is a perfect square can be expressed as , where and are relatively prime positive integers. What is ?
- A)
- B)
- C)
- D)
- E)
- 9.2019 AMC 10B #14
The base-ten representation for is , where , , and denote digits that are not given. What is ?
- A)
- B)
- C)
- D)
- E)
- 10.2019 AMC 10A #9
What is the greatest three-digit positive integer for which the sum of the first positive integers is a divisor of the product of the first positive integers?
- A)
- B)
- C)
- D)
- E)
- 11.2019 AMC 10A #11
How many positive integer divisors of are perfect squares or perfect cubes (or both)?
- A)
- B)
- C)
- D)
- E)
- 12.2018 AMC 10A #17
Let be a set of integers taken from with the property that if and are elements of with , then is not a multiple of . What is the least possible value of an element in ?
- A)
- B)
- C)
- D)
- E)
- 13.2017 AMC 10B #20
The number has over positive integer divisors. One of them is chosen at random. What is the probability that it is odd?
- A)
- B)
- C)
- D)
- E)
- 14.2016 AMC 10B #18
In how many ways can be written as the sum of an increasing sequence of two or more consecutive positive integers?
- A)
- B)
- C)
- D)
- E)
- 15.2014 AMC 10B #17
What is the greatest power of that is a factor of ?
- A)
- B)
- C)
- D)
- E)
- 16.2009 AMC 10A #19
Circle has radius . Circle has an integer radius and remains internally tangent to circle as it rolls once around the circumference of circle . The two circles have the same points of tangency at the beginning and end of circle 's trip. How many possible values can have?
- A)
- B)
- C)
- D)
- E)
- 17.2005 AMC 10A #15
How many positive cubes divide ?
- A)
- B)
- C)
- D)
- E)
- 18.2005 AMC 10A #21
For how many positive integers does evenly divide ?
- A)
- B)
- C)
- D)
- E)
- 19.2003 AMC 10B #18
What is the largest integer that is a divisor of
for all positive even integers ?
- A)
- B)
- C)
- D)
- E)
- 20.2021 AMC Fall 10A #23
For each positive integer , let be twice the number of positive integer divisors of , and for , let . For how many values of is
- A)
- B)
- C)
- D)
- E)
Answers
| # | Answer | The idea it turns on |
|---|---|---|
| 1 | B | Only the bottom face is hidden, so P is 720 divided by that face. Check every possible hidden face and see which factors always survive. |
| 2 | C | Count the 50 even numbers, then take away the even numbers that are also multiples of 3, which are the 16 multiples of 6. That leaves 34. |
| 3 | E | 60 has 12 factors, and every whole number from 1 to 6 divides 60, so 6 of the 12 factors are less than 7. |
| 4 | D | Three numbers in a row always include an even number and a multiple of 3, so the product is a multiple of 42, but not always of 4. |
| 5 | C | The total in cents, ABBBA, is a multiple of 36. The test for 4 makes A even; the test for 9 makes A a multiple of 3. |
| 6 | C | Every even divisor is an odd divisor times 2, 4, or 8. So the even divisors add up to 2 + 4 + 8 = 14 times the odd ones. |
| 7 | C | Uphill numbers cannot end in 0, so a multiple of 5 ends in 5. Then choose digits from 1 to 4 so the digit sum is a multiple of 3. |
| 8 | E | Write 12! as prime powers. A divisor chooses a power of each prime, and it is a square exactly when every chosen power is even. |
| 9 | C | 19! ends in three zeros, so H is 0. Then 19! divides evenly by 9 and by 11, and those two digit tests pin down T and M. |
| 10 | B | Dividing n! by n(n+1)/2 leaves 2 times (n-1)! over n+1. This fails to be whole only when n+1 is a prime, and the largest prime below 1000 is 997. |
| 11 | C | 201 = 3 times 67, so each divisor is a power of 3 times a power of 67. Count squares (25) and cubes (16), then remove the 4 counted twice. |
| 12 | C | A small smallest number bans all its multiples, and leftover pairs like 4 and 8 still clash. Smallest 2 or 3 allows only 5 numbers. |
| 13 | B | 21! has eighteen factors of 2. Divisors split into 19 equal groups by how many 2s they contain, and the odd ones are one group. |
| 14 | E | A run of k consecutive numbers starting at a adds to k(2a + k - 1)/2. So k(2a + k - 1) = 690: count factor pairs of 690. |
| 15 | D | Pull out the obvious 2^1002. Then count the 2s hiding in 5^1002 - 1 by splitting it into (5^501 - 1)(5^501 + 1). |
| 16 | B | Rolling without slipping, circle B has turned 100/r times when it gets back to the start; the same point is touching again only if r divides 100. |
| 17 | E | Write the product as 2^8 times 3^4 times 5^2 times 7. A cube divisor uses each prime a multiple of 3 times, giving 3 times 2 choices. |
| 18 | B | The sum is n(n+1)/2. Dividing 6n by it leaves 12 over (n+1), so n+1 must be a divisor of 12 bigger than 1. |
| 19 | D | Five odd numbers in a row always include a multiple of 3 and a multiple of 5, but not always a multiple of 11. |
| 20 | D | For n up to 50, f1(n) is an even number at most 20. Only 12, 18 and 20 end at 12, so count n with 6, 9 or 10 divisors. |
Problems © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. The topic note, tags and key insights are original to this site.