Sum of Factors: Formula, Methods and Solved Examples

Sum of Factors is the total of all positive divisors of a number. It can be found by listing the factors for small numbers or by using prime factorisation for larger numbers. The standard sum of divisors formula uses the powers of the prime factors and converts the calculation into a product of geometric sums.

On this page

What Is the Sum of Factors?

The sum of factors of a positive integer is the sum of all its positive divisors, including 1 and the number itself.

If n = p₁ᵃ¹ × p₂ᵃ² × ... × pₖᵃᵏ, where the p values are distinct primes, then the sum of positive divisors is σ(n) = (1 + p₁ + p₁² + ... + p₁ᵃ¹)(1 + p₂ + p₂² + ... + p₂ᵃ²) ... (1 + pₖ + pₖ² + ... + pₖᵃᵏ). For example, 12 = 2² × 3, so σ(12) = (1 + 2 + 4)(1 + 3) = 21. Its positive divisors are 1, 2, 3, 4, 6 and 12, whose sum is also 21.

Sum of Factors Formula & Tricks

Important Formulas

Prime Factorisation Formula
If n = p₁ᵃ¹ × p₂ᵃ² × ... × pₖᵃᵏ, then σ(n) = ∏ᵢ [(pᵢᵃⁱ⁺¹ − 1)/(pᵢ − 1)]

For each distinct prime factor pᵢ, add its powers from pᵢ⁰ to pᵢᵃⁱ, then multiply the resulting sums.

Expanded Sum of Divisors Formula
σ(n) = (1 + p₁ + p₁² + ... + p₁ᵃ¹)(1 + p₂ + p₂² + ... + p₂ᵃ²) ...

This is the direct form of the formula and is usually convenient for numerical calculations.

Prime Number Case
If n = p, where p is prime, then σ(p) = 1 + p

A prime number has only two positive divisors: 1 and the number itself.

Perfect Power Case
If n = pᵃ, then σ(n) = 1 + p + p² + ... + pᵃ

For a number having only one distinct prime factor, the sum contains all powers of that prime from exponent 0 to a.

Quick Tricks

Use prime factorisation instead of listing factors

Factorise the number, add the powers of each prime factor, and multiply the sums. This avoids missing or repeating divisors.

Example: For 72 = 2³ × 3², σ(72) = (1 + 2 + 4 + 8)(1 + 3 + 9) = 15 × 13 = 195.
Use the geometric-series shortcut

For a prime p with exponent a, 1 + p + p² + ... + pᵃ = (pᵃ⁺¹ − 1)/(p − 1).

Example: 1 + 5 + 25 + 125 = (5⁴ − 1)/(5 − 1) = 624/4 = 156.
Pair factors for small numbers

Positive divisors can be paired as d and n/d. For a non-square number, every pair is different; for a perfect square, the square root appears only once.

Example: For 18, the pairs are (1,18), (2,9) and (3,6). Thus the sum is 1 + 18 + 2 + 9 + 3 + 6 = 39.

Sum of Factors Concepts

Prime Factorisation Method

To find the sum of factors, first write the number as a product of powers of distinct primes, then apply the sum of divisors formula.

If n = pᵃ × qᵇ, then σ(n) = (1 + p + p² + ... + pᵃ)(1 + q + q² + ... + qᵇ). Each term in the product represents one possible divisor formed by choosing a power of each prime.

Example: For 180 = 2² × 3² × 5, σ(180) = (1 + 2 + 4)(1 + 3 + 9)(1 + 5) = 7 × 13 × 6 = 546.

Sum of Factors of a Prime Power

For n = pᵃ, the sum of positive factors is 1 + p + p² + ... + pᵃ.

A prime power has divisors consisting only of the powers p⁰, p¹, p², ..., pᵃ. The geometric-series form is σ(pᵃ) = (pᵃ⁺¹ − 1)/(p − 1).

Example: For 32 = 2⁵, σ(32) = 1 + 2 + 4 + 8 + 16 + 32 = 63.

Multiplicative Property for Coprime Numbers

If gcd(m, n) = 1, then σ(mn) = σ(m)σ(n).

This property applies when m and n have no common prime factor. It follows because every positive divisor of mn can be formed by multiplying a divisor of m by a divisor of n.

Example: Since gcd(8, 9) = 1, σ(72) = σ(8)σ(9) = (1 + 2 + 4 + 8)(1 + 3 + 9) = 15 × 13 = 195.

Listing Factors and Pairing Method

For a small number, list factor pairs and add every distinct positive divisor exactly once.

Every divisor d of n has a paired divisor n/d. If n is not a perfect square, the pairs contain two different numbers. If n is a perfect square, the square root is the unpaired middle divisor and must not be counted twice.

Example: For 36, the pairs are (1,36), (2,18), (3,12), (4,9), and (6,6). The distinct divisors sum to 1 + 36 + 2 + 18 + 3 + 12 + 4 + 9 + 6 = 91.

Sum of Factors Video Lessons

Watch short topic-wise lessons for quick revision.

14 Lessons
Lesson 1 of 14 Quick Revision

Sum of Factors in Number System

Learn how to calculate the sum of factors of a number using standard number system methods, with clear steps to apply the concept in quantitative aptitude problems.

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

Practice Sum of Factors Questions

Practise published questions related to this topic.

Sum of Factors Quick Quiz

Attempt 5 questions and check your score instantly.

Quick Revision Notes

Sum of Factors: Quick Revision

Use these rules to calculate the sum of positive divisors accurately.

  • For n = p₁ᵃ¹ × p₂ᵃ² × ... × pₖᵃᵏ, σ(n) = ∏[(pᵢᵃⁱ⁺¹ − 1)/(pᵢ − 1)].
  • The expanded form is the product of sums of powers of each distinct prime factor.
  • A prime p has factor sum 1 + p.
  • For a prime power pᵃ, the factor sum is 1 + p + ... + pᵃ.
  • If gcd(m,n) = 1, then σ(mn) = σ(m)σ(n).
  • When listing factor pairs of a perfect square, count the square root only once.
  • The standard formula includes positive divisors, including 1 and n.

Sum of Factors FAQs

What is the sum of factors formula for n = pᵃqᵇ?

The formula is σ(n) = (1 + p + p² + ... + pᵃ)(1 + q + q² + ... + qᵇ), or σ(n) = [(pᵃ⁺¹ − 1)/(p − 1)] [(qᵇ⁺¹ − 1)/(q − 1)].

What is the sum of factors of 24?

24 = 2³ × 3, so σ(24) = (1 + 2 + 4 + 8)(1 + 3) = 15 × 4 = 60.

What is the sum of factors of 100?

100 = 2² × 5². Therefore, σ(100) = (1 + 2 + 4)(1 + 5 + 25) = 7 × 31 = 217.

How is the sum of factors of a prime number calculated?

A prime p has only the positive divisors 1 and p. Hence, its sum of factors is 1 + p; for example, σ(13) = 14.

What is the difference between the sum of factors and the sum of proper factors?

The sum of factors includes 1 and n, while the sum of proper factors excludes n. Thus, the sum of proper factors of n is σ(n) − n.

What is the sum of factors of 1?

The only positive divisor of 1 is 1, so σ(1) = 1. The prime-factorisation product is treated as an empty product in this special case.

Continue learning Sum of Factors on PrepShots

Continue on PrepShots