Number of Factors: Formula, Method and Examples

Number of Factors means the count of positive divisors of a number. The count is found by writing the number as a product of prime powers and multiplying one more than each exponent. This page covers the divisor count formula, factor-counting method, special cases, shortcuts and numerical examples.

On this page

What Is the Number of Factors?

The number of factors of a positive integer is the number of its positive divisors, including 1 and the number itself. If n = p₁ᵃ¹ × p₂ᵃ² × ... × pₖᵃᵏ, then its number of positive factors is (a₁ + 1)(a₂ + 1)...(aₖ + 1).

The exponents are obtained from the prime factorisation of n. For example, 360 = 2³ × 3² × 5¹, so the number of factors is (3 + 1)(2 + 1)(1 + 1) = 24. Each divisor is formed by independently choosing an exponent from 0 to the exponent available for every prime.

Number of Factors Formula & Tricks

Important Formulas

Divisor count formula
If n = p₁ᵃ¹ × p₂ᵃ² × ... × pₖᵃᵏ, then d(n) = (a₁ + 1)(a₂ + 1)...(aₖ + 1).

For each prime pᵢ, its exponent in a divisor can have aᵢ + 1 possible values: 0, 1, 2, ..., aᵢ. Multiplying these choices gives the total number of factors.

Number of factors of a prime
d(p) = 2

A prime number has exactly two positive factors: 1 and the prime number itself.

Number of factors of a prime power
d(pᵃ) = a + 1

The factors of pᵃ are 1, p, p², ..., pᵃ, giving a + 1 factors.

Number of factors of a perfect square
If n is a perfect square, d(n) is odd.

Factors usually occur in pairs. A perfect square has one unpaired factor, its square root, so its divisor count is odd.

Quick Tricks

Use prime exponents directly

Do not list all factors. First write the number in prime-factorised form, then add 1 to each exponent and multiply the results.

Example: For 540 = 2² × 3³ × 5, d(540) = (2 + 1)(3 + 1)(1 + 1) = 24.
Recognise square numbers

A number has an odd number of positive factors exactly when it is a perfect square. This follows because only the square root pairs with itself.

Example: 144 = 12², so it has an odd number of factors. In fact, 144 = 2⁴ × 3², giving d(144) = 5 × 3 = 15.
Count factors using factor pairs

For a non-square number, factors occur in pairs and the total count is twice the number of factor pairs. For a square number, the square-root pair is counted only once.

Example: For 20, the pairs are (1, 20), (2, 10), and (4, 5), so it has 6 factors. For 25, (1, 25) and (5, 5) give 3 factors.

Number of Factors Concepts

Prime Factorisation Method

To count the factors of a number, express it as a product of prime powers and apply the divisor count formula.

If n = pᵃ × qᵇ × rᶜ, then d(n) = (a + 1)(b + 1)(c + 1). The primes must be distinct, and their exponents must be read from the complete prime factorisation.

Example: For 840 = 2³ × 3 × 5 × 7, d(840) = (3 + 1)(1 + 1)(1 + 1)(1 + 1) = 32.

Factors of a Prime Power

A prime power pᵃ has exactly a + 1 positive factors.

The possible factors are p⁰, p¹, p², ..., pᵃ. For example, 2⁵ has the factors 1, 2, 4, 8, 16 and 32, so it has 6 factors.

Example: For 81 = 3⁴, the number of factors is 4 + 1 = 5.

Odd and Even Number of Factors

A positive integer has an odd number of positive factors if and only if it is a perfect square; every non-square positive integer has an even number of factors.

For a non-square n, each factor x pairs with a different factor n/x. For n = m², the factor m pairs with itself, leaving one unpaired factor and making the total odd.

Example: 72 is not a square and d(72) = (3 + 1)(2 + 1) = 12, which is even. Since 100 = 10², d(100) = (2 + 1)(2 + 1) = 9, which is odd.

Factors and Proper Factors

The number of positive factors includes 1 and the number itself, while the number of proper positive factors excludes the number itself.

If d(n) is the total number of positive factors of n, then the number of proper positive factors is d(n) − 1 for n > 1. For n = 1, the only positive factor is 1, and it has no proper positive factor.

Example: The factors of 18 are 1, 2, 3, 6, 9 and 18. Thus d(18) = 6, while the number of proper factors is 5.

Numbers with a Fixed Number of Factors

The prime-exponent pattern determines the possible forms of a number having a specified divisor count.

For example, a number with exactly 6 factors can have the exponent patterns 5 or 2 × 1. Therefore, it can be of the form p⁵ or p²q, where p and q are distinct primes.

Example: 32 = 2⁵ has (5 + 1) = 6 factors, and 12 = 2² × 3 has (2 + 1)(1 + 1) = 6 factors.

Number of Factors Video Lessons

Watch short topic-wise lessons for quick revision.

14 Lessons
Lesson 1 of 14 Quick Revision

Multiples and Factors in Number System

Understand the meaning of multiples and factors, learn how they are related, and identify them using simple examples in the Number System.

Continue with more lessons and practice in PrepShots.Watch More in App - Start ₹1 Trial →
More Number of Factors Lessons Scroll to explore →

Practice Number of Factors Questions

Practise published questions related to this topic.

Number of Factors Quick Quiz

Attempt 5 questions and check your score instantly.

Quick Revision Notes

Number of Factors: Quick Revision

Use these rules to calculate divisor counts quickly and avoid common counting errors.

  • If n = p₁ᵃ¹ × p₂ᵃ² × ... × pₖᵃᵏ, then d(n) = (a₁ + 1)(a₂ + 1)...(aₖ + 1).
  • A prime number has exactly 2 positive factors.
  • The number 1 has exactly 1 positive factor.
  • A prime power pᵃ has a + 1 positive factors.
  • A number has an odd number of factors if and only if it is a perfect square.
  • The number of proper positive factors of n > 1 is d(n) − 1.
  • For a non-square number, factors occur in distinct pairs; for a square, the square-root factor is unpaired.

Number of Factors FAQs

What is the number of factors formula?

If n = p₁ᵃ¹ × p₂ᵃ² × ... × pₖᵃᵏ, then the number of positive factors is d(n) = (a₁ + 1)(a₂ + 1)...(aₖ + 1).

How many factors does 360 have?

360 = 2³ × 3² × 5. Therefore, d(360) = (3 + 1)(2 + 1)(1 + 1) = 24.

How many factors does a prime number have?

Every prime number has exactly 2 positive factors: 1 and the number itself.

Why does a perfect square have an odd number of factors?

Factors occur in pairs as x and n/x. For n = m², the factor m pairs with itself, so one factor is unpaired and the total count is odd.

How many factors does 1 have?

The number 1 has exactly 1 positive factor, which is 1 itself.

How many proper factors does 48 have?

Since 48 = 2⁴ × 3, it has d(48) = (4 + 1)(1 + 1) = 10 positive factors. Excluding 48 itself leaves 9 proper positive factors.

Continue learning Number of Factors on PrepShots

Continue on PrepShots