AMC 10 Step by Step

Divisibility & Factors

Divisors, number/sum of divisors, factorization, divisibility rules

52
primary-topic problems (4.0% of all)
47
more as a secondary topic
Where it appears
21
P1-10
9
P11-15
11
P16-20
11
P21-25

What you need to know

  • Fundamental Theorem of Arithmetic. Every whole number n>1n > 1 is a product of primes in exactly one way (apart from order). We write n=p1a1p2a2⋯pkakn = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k}, where the pip_i are different primes and the aia_i are their exponents. Example: 360=23⋅32⋅5360 = 2^3\cdot3^2\cdot5, and no other primes multiply to 360360.
  • Counting divisors. Write d(n)d(n) for the number of positive divisors of nn. Then d(n)=(a1+1)(a2+1)⋯(ak+1)d(n) = (a_1+1)(a_2+1)\cdots(a_k+1), because a divisor uses anywhere from 00 to aia_i copies of each prime pip_i: that is ai+1a_i+1 choices. Example: 72=23⋅3272 = 2^3\cdot3^2 has 4⋅3=124\cdot3 = 12 divisors.
  • Adding divisors. Write σ(n)\sigma(n) (Greek "sigma") for the sum of the positive divisors. Multiply one sum per prime: σ(n)=(1+p1+⋯+p1a1)⋯(1+pk+⋯+pkak)\sigma(n) = (1+p_1+\dots+p_1^{a_1})\cdots(1+p_k+\dots+p_k^{a_k}). Example: σ(72)=(1+2+4+8)(1+3+9)=15⋅13=195\sigma(72) = (1+2+4+8)(1+3+9) = 15\cdot13 = 195.
  • Divisors come in pairs dd and nd\frac{n}{d}. So nn has an odd number of divisors exactly when nn is a perfect square, since only then does one divisor, n\sqrt n, pair with itself. Example: 3636 pairs up as 1⋅361\cdot36, 2⋅182\cdot18, 3⋅123\cdot12, 4⋅94\cdot9, 6⋅66\cdot6, giving 99 divisors.
  • Divisibility rules. Last digit for 22, 55, 1010; last two digits for 44, 2525; last three digits for 88; digit sum for 33, 99; alternating digit sum (add and subtract the digits in turn) for 1111. Example: 74257425 is divisible by 2525 (ends in 2525), by 99 (7+4+2+5=187+4+2+5 = 18), and by 1111 (7−4+2−5=07-4+2-5 = 0).
  • Counting multiples. From 11 to NN there are ⌊N/k⌋\lfloor N/k \rfloor multiples of kk, where ⌊ ⌋\lfloor\ \rfloor (the floor) means round down. Example: ⌊100/7⌋=14\lfloor 100/7 \rfloor = 14 multiples of 77 up to 100100, the last being 9898.
  • Combining. If aa divides both bb and cc, then aa divides bx+cybx+cy for any integers xx and yy. Example: 77 divides 2121 and 3535, so it divides 3⋅21+2⋅35=1333\cdot21+2\cdot35 = 133.

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 NN are …" (even, perfect squares, multiples of 66). That is d(n)d(n) with limits on the exponents.
  • "How many integers up to NN are divisible by aa or bb but not cc?" combines floor counting with the Principle of Inclusion-Exclusion (PIE).
  • Products of consecutive integers: which number must divide n(n+1)(n+2)n(n+1)(n+2)? One counterexample rules a choice out.
  • Late problems go backwards: given d(n)d(n) or σ(n)\sigma(n), find the smallest such nn or count the possibilities.

Standard approaches

  1. Prime factorize right away; almost every divisor question becomes a question about exponents.
  2. To count divisors with a property, list the allowed exponents for each prime and multiply. Example: an even divisor of 23⋅322^3\cdot3^2 has 11 to 33 twos and 00 to 22 threes: 3⋅3=93\cdot3 = 9.
  3. For the smallest nn with a given number of divisors, write that number as a product (a1+1)(a2+1)⋯(a_1+1)(a_2+1)\cdots, give the largest exponents to the smallest primes, and compare every such product.
  4. Count multiples with floors, and handle overlaps with the lcm: numbers divisible by both aa and bb are the multiples of lcm(a,b)\text{lcm}(a,b).
  5. For a "must divide" claim, test one small example such as 5⋅6⋅75\cdot6\cdot7.

Worked example

Let NN be the smallest positive integer with exactly 2020 positive divisors. What is the sum of the digits of NN?

(A) 44 (B) 66 (C) 88 (D) 99 (E) 1212

Step 1: the shapes. The divisor count is a product of (exponent +1+1) factors. So write 2020 as a product of factors that are each at least 22, largest first: 2020, 10⋅210\cdot2, 5⋅45\cdot4, 5⋅2⋅25\cdot2\cdot2.

Step 2: smallest number for each shape. Subtract 11 from each factor to get the exponents, and give the biggest exponent to 22, the next to 33, then 55:

  • 2020 gives 219=5242882^{19} = 524288.
  • 10⋅210\cdot2 gives 29⋅3=15362^9\cdot3 = 1536.
  • 5⋅45\cdot4 gives 24⋅33=4322^4\cdot3^3 = 432.
  • 5⋅2⋅25\cdot2\cdot2 gives 24⋅3⋅5=2402^4\cdot3\cdot5 = 240.

Step 3: pick the smallest. N=240N = 240, and its digit sum is 2+4+0=62+4+0 = 6.

The answer is (B) 6\boxed{\textbf{(B)}\ 6}.

Pitfalls

  • Forgetting the +1+1: 24⋅332^4\cdot3^3 has 5⋅4=205\cdot4 = 20 divisors, not 4⋅3=124\cdot3 = 12.
  • Counting 11 and nn inconsistently. "Proper divisors" leaves out nn itself, so check the wording. Example: 1212 has 66 divisors but 55 proper divisors.
  • Assuming the shape with the most factors always gives the smallest nn; compare them all. Example: for 88 divisors, 2⋅2⋅22\cdot2\cdot2 gives 2⋅3⋅5=302\cdot3\cdot5 = 30, but 4⋅24\cdot2 gives 23⋅3=242^3\cdot3 = 24.
  • Using abab instead of lcm(a,b)\text{lcm}(a,b) in PIE when aa and bb share a factor. Example: up to 100100, the numbers divisible by both 44 and 66 are the 88 multiples of 1212, not the 44 multiples of 2424.

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)

Problems, easiest first

Open any of them to try it here; the worked solution is on the problem's own page.

← PreviousPage 3 of 3