Prime factorization & divisors

Use this to count divisors of a positive integer once its prime factorization is known.

0/5 marked as readthis browser

What’s happening here?

A positive divisor is built by choosing how many copies of each prime factor to include. Choices of exponents are independent, so multiplying their counts gives the number of distinct positive divisors.

KEEP THIS RELATIONSHIP

If n=p1a1⋯pkakn=p_1^{a_1}\cdots p_k^{a_k}, its number of positive divisors is (a1+1)⋯(ak+1)(a_1+1)\cdots(a_k+1).

A worked example.

Find the prime factorization of 360 and count its positive divisors.
  1. 1

    Repeated division gives 360=23⋅32⋅5360=2^3\cdot3^2\cdot5.

  2. 2

    A divisor can use 0–3 copies of 2, 0–2 copies of 3, and 0–1 copies of 5.

  3. 3

    There are (3+1)(2+1)(1+1)=24(3+1)(2+1)(1+1)=24 choices, so 360 has 24 positive divisors.

A common wrong turn.

Include exponent zero: omitting a prime is allowed. Counting positive divisors is different from counting prime factors with repetition.

Why this works.

Every positive divisor chooses an allowed exponent for each prime independently. If n=pᵃqᵇ with different primes p and q, there are a+1 and b+1 choices, including zero. Multiplying these choices counts every positive divisor once.

Check it. Apply it. Explain it.

Three questions, with hints and worked feedback. Your score counts your first submitted answer. Practice only · scores stay in this session and do not enter your account history.

Question 1 of 30 correct / 0 answered

Prime factorization & divisors

Since 72=2³·3², how many positive divisors does 72 have?

Videos and further reading

These resources open in a new tab on the publisher’s website.

Finished reading?Stored in this browser; separate from practice grades.

Put the idea to work.

Try the three-question practice above, then bring a related problem to the AI Solver for an explained solution.

Open AI Solver