How do I count positive divisors from prime factorization?
If a number has prime factorization pᵃqᵇ…, the number of positive divisors is (a + 1)(b + 1)… . Each divisor chooses an exponent from zero through the available exponent for every prime.
Count exponent choices
For a prime power pᵃ, there are a + 1 choices because exponent zero contributes a factor of one. Choices for distinct primes combine independently. This counts distinct positive divisors, including one and the number itself, rather than only the listed prime factors.
Worked example
For 72 = 2³ × 3², a divisor may use two to exponent 0, 1, 2 or 3 and three to exponent 0, 1 or 2. There are 4 × 3 = 12 choices. For a prime such as 13, the same rule gives 1 + 1 = 2 positive divisors.
Do not multiply the prime values to count divisors
The values reconstruct the integer; the exponent choices count its divisors. Calculator ForEver displays prime powers but does not automatically output the full divisor list or this count. Use the factorization to perform the separate counting step and preserve every prime’s exponent.
Count choices for the exponent of each prime
If n = p^a × q^b with distinct primes, every positive divisor chooses an exponent from 0 through a for p and from 0 through b for q. There are a + 1 choices for the first prime and b + 1 for the second. Multiplying the counts gives the number of positive divisors. Extend the same reasoning to additional distinct primes. The zero-exponent choice is needed because a divisor can omit a prime entirely, including the divisor one that omits all primes.
Apply the rule and list a smaller check
For 72 = 2³ × 3², the count is (3 + 1)(2 + 1) = 12. The positive divisors are 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36 and 72. Each divisor fits a choice of a power of two and a power of three. For example, 18 uses 2¹ × 3², while 8 uses 2³ × 3⁰. Listing the divisors for this manageable example verifies both the count and the role of exponent zero.
Use complete prime powers rather than repeated entries
For 360 = 2³ × 3² × 5, the divisor count is 4 × 3 × 2 = 24. Treating each repeated occurrence of 2 or 3 as an independent present-or-absent choice would overcount, because different occurrence choices can produce the same divisor. Combine repeated primes into one exponent first. Also avoid using a composite base such as 6 as if it were an independent prime alongside 2 and 3. The factorization must use distinct prime bases for the counting formula to apply directly.
Know which divisors the count includes
This formula counts positive divisors, including one and the number itself. If a task asks for proper positive divisors, exclude the number itself after calculating the total. If it asks for positive prime divisors, count distinct prime bases instead of using the exponent-choice product. Negative divisors form another convention and are not included in the positive count. Calculator ForEver’s factorization output supplies the prime powers, while this additional counting step answers a separate question. State which divisor set you mean when presenting the final number.
Questions about this calculation
Are negative divisors included?
No. The expression here counts positive divisors. If signed integer divisors are wanted for a positive number, each positive divisor has a negative counterpart.
Try these values in the calculator
Break an integer into prime factors.
Use the prime factorization calculator