Every question on this topic begins the same way: break the number into primes and write it with exponents. Once you have, say, N = 2ᵃ × 3ᵇ × 5ᶜ, every factor of N is built by choosing a power of 2 from 2⁰ to 2ᵃ, a power of 3 from 3⁰ to 3ᵇ, and a power of 5 from 5⁰ to 5ᶜ. Counting factors is therefore counting choices.

Divide by small primes in order, 2, then 3, then 5, then 7, until you reach 1. Write the result neatly; a wrong exponent at this stage spoils every later step.

For example, 360 = 2³ × 3² × 5. This single line is the input for every worked example below.

There are (a + 1) choices for the power of 2, because the exponent can be 0, 1, …, a. Likewise (b + 1) for 3 and (c + 1) for 5. Multiply the choices:

Number of factors = (a + 1)(b + 1)(c + 1)…

Worked example 1: factors of 360

360 = 2³ × 3² × 5¹, so the number of factors is (3 + 1)(2 + 1)(1 + 1) = 24.

A useful consequence: the number of ways to write N as a product of two factors is half the number of factors, because factors pair up as a and N ÷ a. If N is a perfect square, the square root pairs with itself, so add 1 before halving.

Worked example 2: pairs for a perfect square

144 = 2⁴ × 3² has (4 + 1)(2 + 1) = 15 factors. It is a perfect square, so it can be written as a product of two factors in (15 + 1) ÷ 2 = 8 ways, including 12 × 12.

Restrict the choices to match the condition, then multiply as before.

  • Odd factors contain no 2, so drop the 2 entirely and use the other brackets.
  • Even factors contain at least one 2, so the power of 2 has only a choices (1 to a). Alternatively, subtract the odd factors from the total.
  • Perfect-square factors need every exponent even. For exponent a, the even choices are 0, 2, 4, …, a count of ⌊a ÷ 2⌋ + 1.
  • Factors divisible by k are k times a factor of N ÷ k, so count the factors of N ÷ k.

Worked example 3: even factors of 360

The power of 2 can be 1, 2 or 3 (3 choices); 3 and 5 keep their 3 and 2 choices. Even factors = 3 × 3 × 2 = 18.

The odd factors are therefore 24 − 18 = 6, which matches (2 + 1)(1 + 1) = 6 when the 2 is dropped.

Worked example 4: perfect-square factors of 360

For 2³ the even exponents are 0 and 2 (2 choices); for 3² they are 0 and 2 (2 choices); for 5¹ only 0 (1 choice). So 2 × 2 × 1 = 4: they are 1, 4, 9 and 36.

Worked example 5: factors of 360 divisible by 6

360 ÷ 6 = 60 = 2² × 3 × 5, which has (2 + 1)(1 + 1)(1 + 1) = 12 factors. Each one times 6 is a factor of 360 divisible by 6.

Each bracket in the factor formula becomes a sum of powers. For N = 2ᵃ × 3ᵇ × 5ᶜ:

Sum of factors = (1 + 2 + … + 2ᵃ)(1 + 3 + … + 3ᵇ)(1 + 5 + … + 5ᶜ)

Worked example 6: sum of the factors of 360

(1 + 2 + 4 + 8)(1 + 3 + 9)(1 + 5) = 15 × 13 × 6 = 1,170.

Multiplying out the brackets produces every possible combination of one power from each bracket, which is exactly the list of factors, so the product is their sum. The same reasoning explains why the counting formula works.

  • ✘ Forgetting the "+1" for the zero exponent. 2³ gives 4 choices, not 3.
  • ✘ Factorising carelessly. Check by multiplying the primes back together.
  • ✘ Counting even factors with (a + 1) choices for 2. An even factor needs at least one 2.
  • ✘ Halving an odd count when pairing factors of a perfect square. Add 1 first.

Factor counts connect to HCF and LCM questions, which use the same prime factorisations, and to the divisibility rules that speed up factorising. For a quick formula sheet, see the Quant cheat code.

Q1. How many factors does 540 have? easy

✅ Answer: (c) 24

💡 Explanation: 540 = 2² × 3³ × 5. Add 1 to each exponent and multiply: (2 + 1)(3 + 1)(1 + 1) = 3 × 4 × 2 = 24.

Q2. How many even factors does 540 have? medium

✅ Answer: (a) 16

💡 Explanation: An even factor must contain at least one 2, so the power of 2 can be 1 or 2 (2 choices). The powers of 3 and 5 are free: 4 and 2 choices. 2 × 4 × 2 = 16.

Q3. How many odd factors does 1000 have? easy

✅ Answer: (d) 4

💡 Explanation: 1000 = 2³ × 5³. An odd factor uses no 2 at all, so only the powers of 5 vary: 5⁰, 5¹, 5², 5³, giving 4 odd factors.

Q4. What is the sum of all the factors of 72? medium

✅ Answer: (b) 195

💡 Explanation: 72 = 2³ × 3². Sum of factors = (1 + 2 + 4 + 8) × (1 + 3 + 9) = 15 × 13 = 195.

Q5. How many factors of 2⁴ × 3³ × 7² are perfect squares? hard

✅ Answer: (c) 12

💡 Explanation: A perfect-square factor needs even exponents. For 2: 0, 2 or 4 (3 choices). For 3: 0 or 2 (2 choices). For 7: 0 or 2 (2 choices). 3 × 2 × 2 = 12.

Q6. How many factors of 1800 are divisible by 10? hard

✅ Answer: (d) 18

💡 Explanation: Factors divisible by 10 are 10 × (a factor of 1800 ÷ 10). 180 = 2² × 3² × 5 has (2 + 1)(2 + 1)(1 + 1) = 18 factors.

Do I count 1 and the number itself as factors?

Yes. The formula counts every factor, including 1 and the number itself. If a question asks for proper factors or factors other than 1 and the number, subtract the ones it excludes from the total.

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

Factors pair up as a and N ÷ a. For a perfect square, the square root pairs with itself, so one factor has no partner and the total is odd. Every exponent in its factorisation is even, so every bracket (a + 1) is odd.

All problems and solutions on this page are original. No outside facts are relied on; every numeric answer is recomputed by software before publishing.

How this page was prepared. Drafted with AI assistance (Claude (Anthropic AI model)) from the sources listed above. 14 calculations on this page were recomputed by software and matched. Automated checks also covered structure, internal links and duplicate text. Software checks cannot confirm facts. Reviewed by praveenkumar on 2026-10-20 against the sources listed above.

Found an error? Report it and we will correct the page.