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.2020 AMC 10B #19
In a certain card game, a player is dealt a hand of cards from a deck of distinct cards. The number of distinct (unordered) hands that can be dealt to the player can be written as . What is the digit ?
- A)
- B)
- C)
- D)
- E)
- 2.2019 AMC 10B #19
Let be the set of all positive integer divisors of How many numbers are the product of two distinct elements of
- A)
- B)
- C)
- D)
- E)
- 3.2018 AMC 10B #19
Joey and Chloe and their daughter Zoe all have the same birthday. Joey is year older than Chloe, and Zoe is exactly year old today. Today is the first of the birthdays on which Chloe's age will be an integral multiple of Zoe's age. What will be the sum of the two digits of Joey's age the next time his age is a multiple of Zoe's age?
- A)
- B)
- C)
- D)
- E)
- 4.2018 AMC 10B #21
Mary chose an even -digit number . She wrote down all the divisors of in increasing order from left to right: . At some moment Mary wrote as a divisor of . What is the smallest possible value of the next divisor written to the right of ?
- A)
- B)
- C)
- D)
- E)
- 5.2016 AMC 10A #22
For some positive integer , the number has positive integer divisors, including and the number . How many positive integer divisors does the number have?
- A)
- B)
- C)
- D)
- E)
- 6.2015 AMC 10B #23
Let be a positive integer greater than 4 such that the decimal representation of ends in zeros and the decimal representation of ends in zeros. Let denote the sum of the four least possible values of . What is the sum of the digits of ?
- A)
- B)
- C)
- D)
- E)
- 7.2013 AMC 10B #24
A positive integer is nice if there is a positive integer with exactly four positive divisors (including and ) such that the sum of the four divisors is equal to . How many numbers in the set are nice?
- A)
- B)
- C)
- D)
- E)
- 8.2013 AMC 10A #21
A group of pirates agree to divide a treasure chest of gold coins among themselves as follows. The pirate to take a share takes of the coins that remain in the chest. The number of coins initially in the chest is the smallest number for which this arrangement will allow each pirate to receive a positive whole number of coins. How many coins does the pirate receive?
- A)
- B)
- C)
- D)
- E)
- 9.2009 AMC 10A #25
For , let , where there are zeros between the and the . Let be the number of factors of in the prime factorization of . What is the maximum value of ?
- A)
- B)
- C)
- D)
- E)
- 10.2006 AMC 10B #25
Mr. Jones has eight children of different ages. On a family trip his oldest child, who is 9, spots a license plate with a 4-digit number in which each of two digits appears two times. "Look, daddy!" she exclaims. "That number is evenly divisible by the age of each of us kids!" "That's right," replies Mr. Jones, "and the last two digits just happen to be my age." Which of the following is not the age of one of Mr. Jones's children?
- A)
- B)
- C)
- D)
- E)
- 11.2005 AMC 10B #22
For how many positive integers less than or equal to is evenly divisible by
- A)
- B)
- C)
- D)
- E)
- 12.2019 AMC 10A #25
For how many integers between and , inclusive, is an integer? (Recall that .)
- 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.