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)
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.