Divisor Calculator

Find all divisors of a number, count them (τ), sum them (σ), classify as perfect/abundant/deficient, visualize factor pairs, and explore presets with a comprehensive divisors table.

Numbers 1 to n in reference
τ(n) — Divisor Count
6
28 has 6 positive divisors
σ(n) — Divisor Sum
56
Sum of all 6 divisors of 28
Proper Divisor Sum
28
Sum of all divisors except n itself (σ(n) − n)
Classification
Perfect
28 equals the sum of its proper divisors
Abundance
0
Proper divisor sum minus n. Zero = perfect, positive = abundant, negative = deficient
Perfect Square?
No
√28 ≈ 5.2915 is not an integer
σ(n) / n Ratio
2.0000
Abundancy index. Perfect = 2.0, abundant > 2, deficient < 2
Prime Factorization: 22 × 7→ τ = (2+1)×(1+1) = 6

Divisor Size Chart

1
2
4
7
14
28

All Divisors

#Divisorn / DivisorIs Prime?
1128
2214Yes
347No
474Yes
5142No
6281No

Factor Pairs

aba × b
12828
21428
4728
Reference: Divisor Properties 1–50
nτ(n)σ(n)Type
111Deficient
223Deficient
324Deficient
437Deficient
526Deficient
6412Perfect
728Deficient
8415Deficient
9313Deficient
10418Deficient
11212Deficient
12628Abundant
13214Deficient
14424Deficient
15424Deficient
16531Deficient
17218Deficient
18639Abundant
19220Deficient
20642Abundant
21432Deficient
22436Deficient
23224Deficient
24860Abundant
25331Deficient
26442Deficient
27440Deficient
28656Perfect
29230Deficient
30872Abundant
31232Deficient
32663Deficient
33448Deficient
34454Deficient
35448Deficient
36991Abundant
37238Deficient
38460Deficient
39456Deficient
40890Abundant
41242Deficient
42896Abundant
43244Deficient
44684Deficient
45678Deficient
46472Deficient
47248Deficient
4810124Abundant
49357Deficient
50693Deficient
Planning notes, formulas, and examples

About the Divisor Calculator

The **Divisor Calculator** finds every positive divisor of a given integer and reveals the rich number-theoretic properties hidden within. Enter any positive integer and see its complete list of divisors, the total count τ(n), the sum σ(n), and whether the number is perfect, abundant, or deficient.

A **perfect number** equals the sum of its proper divisors (e.g., 6 = 1 + 2 + 3). An **abundant number** has proper divisors that sum to more than itself, while a **deficient number** has a proper divisor sum less than itself. This classification connects to some of the oldest open questions in mathematics — it is still unknown whether any odd perfect numbers exist.

The calculator also displays all factor pairs (a, b) where a × b = n, and highlights whether the number is a perfect square (which has an odd number of divisors). The prime factorization is shown alongside, since the divisor count formula τ(n) = (e₁+1)(e₂+1)⋯(eₖ+1) depends on the prime exponents. The sum-of-divisors function σ(n) has its own formula based on geometric series of each prime power.

A comprehensive reference table shows divisor properties for integers 1–100, letting you spot patterns like highly composite numbers (those with more divisors than any smaller number). Preset buttons load famous examples — perfect numbers like 28 and 496, abundant numbers like 12 and 18, and highly composite numbers like 120 and 360. Visual bars show the relative sizes of divisors, making factor structure intuitive at a glance.

When This Page Helps

Finding every divisor of a number by trial requires dividing by each candidate up to √n, collecting pairs, and then computing sums and counts. For multi-digit numbers this is slow and easy to miss a factor. This calculator lists all divisors, shows the prime factorisation, computes τ(n) and σ(n), classifies the number (perfect, abundant, deficient), and displays factor pairs. Number-theory students check homework, teachers demonstrate divisor functions, and math enthusiasts explore special numbers like highly composite and perfect numbers.

How to Use the Inputs

  1. Enter a positive integer in the input field.
  2. Click a preset to load a famous number.
  3. View the output cards for divisor count, sum, and classification.
  4. Browse the divisors table for the complete list with factor pairs.
  5. Examine the visual bars showing relative divisor sizes.
  6. Expand the reference section to compare divisor properties across numbers.
Formula used
If n = p₁^e₁ × p₂^e₂ × … × pₖ^eₖ, then τ(n) = (e₁+1)(e₂+1)…(eₖ+1) and σ(n) = Π [(pᵢ^(eᵢ+1) − 1) / (pᵢ − 1)].

Example Calculation

Result: 28: Divisors are 1

For n = 28: Divisors are 1, 2, 4, 7, 14, 28. τ(28) = 6 divisors. σ(28) = 56. Proper sum = 28 = n, so 28 is a perfect number.

Tips & Best Practices

  • Check that all inputs use the same scale and assumptions before trusting the result.
  • Compare the answer with the worked example or a rough estimate to catch entry mistakes.

The Divisor Count Formula

If the prime factorisation of n is p₁^e₁ × p₂^e₂ × … × pₖ^eₖ, the total number of positive divisors is τ(n) = (e₁+1)(e₂+1)…(eₖ+1). Each divisor is formed by choosing an exponent between 0 and eᵢ for each prime, and the choices are independent — a counting principle. For example, 360 = 2³ × 3² × 5¹, so τ(360) = 4 × 3 × 2 = 24 divisors. This formula lets you predict divisor counts without listing them.

Perfect, Abundant, and Deficient Numbers

A positive integer is called *perfect* when the sum of its proper divisors equals itself, *abundant* when the sum exceeds it, and *deficient* when it falls short. The smallest examples are 6 (perfect: 1+2+3 = 6), 12 (abundant: 1+2+3+4+6 = 16 > 12), and 8 (deficient: 1+2+4 = 7 < 8). Euclid proved that 2^{p−1}(2^p − 1) is perfect whenever 2^p − 1 is prime (a Mersenne prime); Euler showed that every even perfect number has this form. Whether odd perfect numbers exist remains one of mathematics' oldest open questions.

Highly Composite Numbers and Applications

A highly composite number (HCN) has more divisors than any smaller positive integer. The sequence starts 1, 2, 4, 6, 12, 24, 36, 48, 60, 120, 180, 240, 360, 720, … Engineers naturally gravitate toward HCNs: 12 inches in a foot, 24 hours in a day, 60 minutes in an hour, and 360 degrees in a circle are all highly composite, which is why — not coincidence — these numbers were chosen historically. They maximise the number of ways you can divide a whole evenly, making them ideal for partitioning, scheduling, and gear-ratio design.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A divisor (or factor) of n is a positive integer d such that n/d is also a positive integer. For example, the divisors of 12 are 1, 2, 3, 4, 6, 12.