Skip to content
Number Theory · Chapter 18

Factors

Every factor is a dot on a little grid of exponents: count the dots, add them up, or multiply them in pairs.

You'll need
open on YouTube
18.10%

Number of Factors

In this section you will be able to count the factors of a number straight from its prime factorization.

How many numbers divide 112 evenly? You could test 1, 2, 3, 4 and on and on. Or you could draw a tiny grid and count the dots!

Every factor of 24×72^4 \times 7 is made by choosing a power of 2 and a power of 7. You have 5 choices for the first and 2 for the second. So there are 5×2=105 \times 2 = 10 factors.

Look:each exponent can be anything from 0 up to its value. That’s why you add 1 before you multiply.

Exploreplay first, formulas later

72 = 2³ × 3²: 4 × 3 = 12 factors

Light up:
exponent of 23
exponent of 32

n = 72 = 2³ × 3²

2⁰2¹2²2³3⁰3¹3²12483612249183672
  • Powers of 2:2⁰, 2¹, 2², 2³ → 4 choices
  • Powers of 3:3⁰, 3¹, 3² → 3 choices
4 × 3 = 12 factors

72 = 2³ × 3²: 4 × 3 = 12 factors

Name it

Theorem 18.1.1 · Number of Factors of a Number

If the prime factorization of the number is expressed as:

p1e1×p2e2×⋯×pkekp_1^{e_1} \times p_2^{e_2} \times \cdots \times p_k^{e_k}

then the number of factors of this number is

(e1+1)(e2+1)⋯(ek+1)(e_1 + 1)(e_2 + 1) \cdots (e_k + 1)

Concept 18.1.2

Basically, in order to find the number of factors of a number:

  1. Find the prime factorization of the number
  2. Add 1 to all of the exponents
  3. Multiply them together

Concept 18.1.3

Here is a logical way to think about this formula: for each prime pkp_k, the exponent can be anything from 00 to eke_k. Therefore, there are ek+1e_k + 1 choices. Therefore, the total number of factors is just the product of all such ek+1e_k + 1 terms.

For example, in 112=24×7112 = 2^4 \times 7, in the factor, the power of 22 can be 202^0, 212^1, 222^2, 232^3, or 242^4. The power of 77 can be 707^0 or 717^1.

Therefore, in total there would be 5×2=105 \times 2 = 10 ways just as we calculated in the previous problem. This logic will be useful when other conditions are imposed.

Watch itpredict, then reveal

Example 18.1

How many factors does the number 112 have?

112 = 2⁴ × 7: 5 × 2 = 10 factors

n = 112 = 2⁴ × 7

2⁰2¹2²2³2⁴7⁰7¹1248167142856112
  • Powers of 2:2⁰, 2¹, 2², 2³, 2⁴ → 5 choices
  • Powers of 7:7⁰, 7¹ → 2 choices

112 = 2⁴ × 7: total hidden

  1. 1

    What is the prime factorization of 112?

    Predict first:

Example 18.2

How many positive factors does the number 144 have that are perfect squares?

144 = 2⁴ × 3²: 5 × 3 = 15 factors

n = 144 = 2⁴ × 3²

2⁰2¹2²2³2⁴3⁰3¹3²124816361224489183672144
  • Powers of 2:2⁰, 2¹, 2², 2³, 2⁴ → 5 choices
  • Powers of 3:3⁰, 3¹, 3² → 3 choices

144 = 2⁴ × 3²: total hidden

  1. 1

    What is the prime factorization of 144?

Example 18.3

AMC 8

How many positive integer factors of 2020 have more than 3 factors? (As an example, 12 has 6 factors, namely 1, 2, 3, 4, 6, and 12.)

2,020 = 2² × 5 × 101: 3 × 2 × 2 = 12 factors

n = 2,020 = 2² × 5 × 101

× 101⁰
2⁰2¹2²5⁰5¹12451020
× 101¹
2⁰2¹2²5⁰5¹1012024045051,0102,020
  • Powers of 2:2⁰, 2¹, 2² → 3 choices
  • Powers of 5:5⁰, 5¹ → 2 choices
  • Powers of 101:101⁰, 101¹ → 2 choices

2,020 = 2² × 5 × 101: total hidden

  1. 1

    What is the prime factorization of 2020?

open on YouTube

Try it

Problem 18.4.8(additional)

How many positive factors does the number 60 have?

Problem 18.4.1

AMC 8

What is the sum of the prime factors of 2010?

Contest cornerreal contest problems

Problem 18.4.2

AMC 8

How many positive factors does 23,232 have?

Problem 18.4.10(additional)

EMCC

How many positive divisors of 2020 do not also divide 1010?

Problem 18.4.3

AMC 8

On June 1, a group of students is standing in rows, with 15 students in each row. On June 2, the same group is standing with all of the students in one long row. On June 3, the same group is standing with just one student in each row. On June 4, the same group is standing with 6 students in each row. This process continues through June 12 with a different number of students per row each day. However, on June 13, they cannot find a new way of organizing the students. What is the smallest possible number of students in the group?

Problem 18.4.4

Omega Learn Math Contest

How many positive multiples of 1,001 have less than 15 factors?

Problem 18.4.12(additional)

MATHCOUNTS

A positive integer qq is the product of a prime number and a perfect square. Additionally, qq is the product of a different prime number and a perfect cube. What is the least possible value of qq?

Checkpoint for section 18.1

Get 2 of 3 right to master this section. One try each, no hints.
1

How many positive factors does 72 have?

2

How many positive factors of 200 are perfect squares?

3

How many positive factors does 25×32×72^5 \times 3^2 \times 7 have?

18.20%

Sum of Factors

In this section you will be able to add up all the factors of a number without listing them.

Add up every factor of 112. Listing all ten and adding them works. But what if the number had 200 factors? There’s a shortcut that uses just two small sums.

Add up the powers of each prime. Then multiply those sums together. When you expand the product, every factor appears exactly once.

Exploreplay first, formulas later

72 = 2³ × 3²: sum of factors = 15 × 13 = 195

Light up:
exponent of 23
exponent of 32

n = 72 = 2³ × 3²

2⁰2¹2²2³3⁰3¹3²12483612249183672
  • Powers of 2:1 + 2 + 4 + 8 = 15
  • Powers of 3:1 + 3 + 9 = 13
15 × 13 = 195
(1+p1+⋯+p1e1)⋯(1+pk+⋯+pkek)15×13=195(1+p_1+\cdots+p_1^{e_1})\cdots(1+p_k+\cdots+p_k^{e_k}) \quad 15\times13 = 195

n=23×32n = 2^{3} \times 3^{2}

72 = 2³ × 3²: sum of factors = 15 × 13 = 195

Name it

Theorem 18.2.1 · Sum of Factors of a Number

If the prime factorization of the number is expressed as:

p1e1×p2e2×⋯×pkekp_1^{e_1} \times p_2^{e_2} \times \cdots \times p_k^{e_k}

then the sum of factors of this number is

(1+p11+p12+⋯+p1e1−1+p1e1)(1+p21+p22+⋯+p2e2−1+p2e2)⋯(1+pk1+pk2+⋯+pkek−1+pkek)(1 + p_1^1 + p_1^2 + \cdots + p_1^{e_1 - 1} + p_1^{e_1})(1 + p_2^1 + p_2^2 + \cdots + p_2^{e_2 - 1} + p_2^{e_2}) \cdots (1 + p_k^1 + p_k^2 + \cdots + p_k^{e_k - 1} + p_k^{e_k})

Concept 18.2.2 · Sum of Factors of a Number

Essentially, for a prime pp in the prime factorization, first find the sum of pkp^k for all possible exponents kk in the prime factorization. Then, we will multiply all such sums for all of the primes to get the sum of all the factors of the number. This may seem complicated, but it will make more sense with an example.

Watch itpredict, then reveal

Example 18.4

What is the sum of factors of 112?

112 = 2⁴ × 7: sum of factors = 31 × 8 = 248

n = 112 = 2⁴ × 7

2⁰2¹2²2³2⁴7⁰7¹1248167142856112
  • Powers of 2:1 + 2 + 4 + 8 + 16 = 31
  • Powers of 7:1 + 7 = 8

112 = 2⁴ × 7: total hidden

  1. 1

    What is the prime factorization of 112?

Try it

Problem 18.4.9(additional)

Find the sum of factors of 320.

Contest cornerreal contest problems

Problem 18.4.5

AMC 10

Let N=34⋅34⋅63⋅270N = 34 \cdot 34 \cdot 63 \cdot 270. What is the ratio of the sum of the odd divisors of NN to the sum of the even divisors of NN?

Problem 18.4.11(additional)

BmMT

What is the sum of 1a\frac{1}{a} over all positive factors aa of the number 360?

Checkpoint for section 18.2

Get 2 of 3 right to master this section. One try each, no hints.
1

What is the sum of the factors of 18?

2

What is the sum of the factors of 100?

3

What is the sum of the odd factors of 40?

18.30%

Product of Factors

In this section you will be able to multiply all the factors of a number by pairing them up.

Multiply all the factors of 20: 1 × 2 × 4 × 5 × 10 × 20. That’s a big number. Can you find it without multiplying six things?

Factors come in pairs: 1×201 \times 20, 2×102 \times 10, 4×54 \times 5. Each pair multiplies to the number itself. With ff factors you get f/2f/2 pairs.

Look:on the grid, partners sit opposite each other across the centre.

Exploreplay first, formulas later

20 = 2² × 5: product of 6 factors = 20^(6/2) = 8,000

Light up:
exponent of 22
exponent of 51

n = 20 = 2² × 5

2⁰2¹2²5⁰5¹12451020

You picked 2⁰ × 5⁰ = 1. Its partner is 2² × 5¹ = 20, and 1 × 20 = 20.

  • Powers of 2:2⁰, 2¹, 2² → 3 choices
  • Powers of 5:5⁰, 5¹ → 2 choices
  • Mirror points pair up across the centre. Each pair multiplies to 20. There are 6 factors, so 6/2 pairs.
20^(6/2) = 8,000

20 = 2² × 5: product of 6 factors = 20^(6/2) = 8,000

Name it

Theorem 18.3.1 · Product of Factors of a Number

The product of factors of a number nn where it has ff factors (this can be calculated using the number of factors formula) is

nf2n^{\frac{f}{2}}

Watch itpredict, then reveal

Example 18.5

Find the product of the factors of 20.

20 = 2² × 5: product of 6 factors = 20^(6/2) = 8,000

n = 20 = 2² × 5

2⁰2¹2²5⁰5¹12451020
  • Powers of 2:2⁰, 2¹, 2² → 3 choices
  • Powers of 5:5⁰, 5¹ → 2 choices
  • Mirror points pair up across the centre. Each pair multiplies to 20. There are 6 factors, so 6/2 pairs.

20 = 2² × 5: total hidden

  1. 1

    What is the prime factorization of 20?

Example 18.6

Omega Learn

Let aa be the product of all odd factors of 54. Let bb be the sum of all even factors of 36. Find a−ba - b.

54 = 2 × 3³: product of 4 odd factors = 27^(4/2) = 729

n = 54 = 2 × 3³

2⁰2¹3⁰3¹3²3³12369182754
  • Powers of 2:2⁰ → 1 choice
  • Powers of 3:3⁰, 3¹, 3², 3³ → 4 choices
  • Mirror points pair up across the centre. Each pair multiplies to 27. There are 4 odd factors, so 4/2 pairs.

54 = 2 × 3³: total hidden

  1. 1

    54=2×3354 = 2 \times 3^3. How many odd factors does 54 have?

    Predict first:
open on YouTube

Contest cornerreal contest problems

Problem 18.4.6

AIME

Let n=231319n = 2^{31} 3^{19}. How many positive integer divisors of n2n^2 are less than nn but do not divide nn?

Checkpoint for section 18.3

Get 2 of 3 right to master this section. One try each, no hints.
1

What is the product of the factors of 12?

2

What is the product of the factors of 16?

3

A number nn has exactly 8 factors. The product of all its factors is nkn^k. What is kk?

18.4

Practice Problems

In this section you will be able to mix counting, summing and exponent tricks on contest problems.

Two tougher ones to finish! Start every problem with a prime factorization. Every problem has three hints if you get stuck.

Want every problem from this chapter on one page? Open the problem set.

Contest cornerreal contest problems

Problem 18.4.7

AMC 10

For some positive integer nn, the number 110n3110n^3 has 110110 positive integer divisors, including 11 and the number 110n3110n^3. How many positive integer divisors does the number 81n481n^4 have?

Problem 18.4.13(additional)

MATHCOUNTS

What is the greatest integer kk such that 80!80! is divisible by 45k45^k?