Abundancy Index Calculator
Divisors
- Factor 12 = 2^2 x 3 and apply the multiplicative formula for sigma(n), the sum-of-divisors function.
- That gives sigma(12) = 28; the abundancy index is the ratio sigma(n) / n = 7/3.
- Compare the index with 2: sigma(12) is more than twice the number, so it is abundant. The index itself - not just the class - is what the abundancy index page reports, and two numbers are friendly exactly when their indices match.
- Perfect numbers are the friendly fixed points of the index at exactly 2; abundant numbers sit above 2 and deficient numbers below it, and the proper divisors of 12 sum to 16.
The Abundancy Index Calculator finds the abundancy index of any whole number n. That index is sigma(n) / n: the sum of all divisors of n, including n itself, divided by n. The calculator returns the exact value, so you see it as a fraction and as a decimal. For example, 12 has an abundancy index of 7/3 = 2.3333, because sigma(12) = 28. Any index above 2 means the number is abundant. An index of exactly 2 marks a perfect number, such as 6. Indices below 2 mark deficient numbers.
The method behind the calculator is the accepted standard for this kind of calculation because it follows the definition directly: add every divisor of n, including n, then divide by n. That keeps the result a rational number you can compare exactly, with no rounding error. For instance, sigma(30) = 72 gives 30 an index of 12/5, and sigma(140) = 336 gives 140 the same 12/5, which is why 30 and 140 are friendly numbers. This page shows the formula, step-by-step workings, worked examples and sources so you can check every result yourself.
Worked examples
Abundancy index of 12
(0 - test a single number · 12 · 140)
| abundancy index of 12 | 7/3 = 2.3333 |
| sigma(n), the sum of all divisors including n itself | 28 |
| classification by the abundancy index | Abundant - index above 2 |
| abundance, sigma(n) - 2n | +4 |
Abundancy index of 6, a perfect number
(0 - test a single number · 6 · 140)
| abundancy index of 6 | 2 |
| sigma(n), the sum of all divisors including n itself | 12 |
| classification by the abundancy index | Perfect - index equal to 2 |
| abundance, sigma(n) - 2n | 0 |
Are 30 and 140 friendly numbers?
(1 - test a pair for friendliness · 30 · 140)
| are 30 and 140 friendly numbers? | Yes - both have abundancy index 12/5 |
| sigma(30) and sigma(140) | 72 and 336 |
| abundancy index of 30 | 12/5 = 2.4000 |
| abundancy index of 140 | 12/5 = 2.4000 |
What is the abundancy index?
The abundancy index of a number n is sigma(n) / n, where sigma(n) is the sum of all the divisors of n, including n itself. In other words, you add up every number that divides n evenly, then divide that total by n. The result tells you how large the divisor sum is relative to the number you started with. Because both sigma(n) and n are whole numbers, the abundancy index is always a rational number, so two indices can be compared exactly rather than estimated from a decimal.
A worked example makes the idea concrete. The divisors of 12 are 1, 2, 3, 4, 6 and 12, and they add up to 28, so sigma(12) = 28. Dividing 28 by 12 gives 28/12, which reduces to 7/3, or about 2.3333. That single value places 12 in a class: any abundancy index above 2 means the number is abundant, because its divisors add up to more than the number itself.
The number 2 is the dividing line between the three classes. A number whose abundancy index is exactly 2 is perfect, because its proper divisors sum to exactly the number. The smallest example is 6, which is perfect, so its abundancy index is exactly 2. Indices below 2 mark deficient numbers, whose divisors add up to less than the number. So the abundancy index sorts every positive whole number into one of three groups: deficient below 2, perfect at exactly 2, and abundant above 2.
The index also reveals relationships between numbers that look unrelated. The numbers 30 and 140 are friendly numbers because they share the same abundancy index, 12/5, or 2.4000. You can confirm this exactly: sigma(30) = 72, which gives 30 an index of 72/30, and sigma(140) = 336, which gives 140 an index of 336/140. Both fractions reduce to 12/5. Because the abundancy index is a rational number, you can compare these values exactly instead of relying on rounded decimals that might hide a small difference.
Reading an abundancy index is therefore straightforward. Compute sigma(n), divide by n, and reduce the fraction. If the reduced value sits above 2, the number is abundant; at 2, it is perfect; below 2, it is deficient. The same fraction can also show when two different numbers belong together as friendly numbers, as 30 and 140 do with their shared 12/5.
How to compute the abundancy index
To compute the abundancy index of a number, start by writing the number as a product of prime powers. The sum-of-divisors function sigma is multiplicative, which means that if a number n factors as p^a × q^b × r^c, then sigma(n) equals sigma(p^a) × sigma(q^b) × sigma(r^c). For a single prime power, the formula is sigma(p^a) = (p^(a+1) − 1) / (p − 1), which is the same as 1 + p + p^2 + … + p^a. Multiply those prime-power values together and you have sigma(n). Then divide by n to get the abundancy index.
For example, 12 factors as 2^2 × 3. Applying the formula, sigma(2^2) = (2^3 − 1) / (2 − 1) = 7, and sigma(3) = (3^2 − 1) / (3 − 1) = 4. Multiplying gives sigma(12) = 7 × 4 = 28. Dividing by 12 gives 28/12, which reduces to 7/3, or 2.3333. Because that value is above 2, 12 is abundant. The same method works for any n: factor, apply the prime-power formula to each piece, multiply, then divide by n.
Reducing the ratio to lowest terms matters because the abundancy index is a rational number you can compare exactly. Take 30 = 2 × 3 × 5. Each prime appears to the first power, so sigma(2) = 3, sigma(3) = 4, and sigma(5) = 6. Their product is 72, and 72/30 reduces by 6 to 12/5, or 2.4000. Now take 140 = 2^2 × 5 × 7. Here sigma(2^2) = 7, sigma(5) = 6, and sigma(7) = 8, so sigma(140) = 7 × 6 × 8 = 336. Dividing by 140 gives 336/140, which also reduces to 12/5. That shared value is why 30 and 140 are friendly numbers. Working in lowest terms makes such matches visible and lets you compare two indices without converting to decimals.
The reduced fraction also tells you the number's classification at a glance. A value of exactly 2 means the number is perfect: 6 = 2 × 3, so sigma(6) = 3 × 4 = 12, and 12/6 = 2. Values below 2 mark deficient numbers, and values above 2 mark abundant ones. Because the ratio is exact, you never have to rely on a rounded decimal to decide which side of 2 a number falls on.
Friendly numbers share an index
Two numbers are called friendly when their abundancy indices match. The word describes a relationship between the numbers, not a property of either one alone: each number has its own divisors, yet the ratio sigma(n) / n comes out to the same value for both. The classic example is the pair 30 and 140. Their divisors are very different, but both give an abundancy index of 12/5 = 2.4000.
You can check the match by computing each index from the definition. For 30, sigma(30) = 72, so the index is 72/30, which reduces to 12/5. For 140, sigma(140) = 336, so the index is 336/140, which also reduces to 12/5. Because the index is a rational number, this comparison is exact rather than a decimal approximation: 12/5 equals 12/5, and the fact that both decimals read 2.4000 is just a convenient way to display it. That is what makes the abundancy index a reliable test for friendliness — you compare the fractions, not rounded values.
The index also tells you what kind of number you are looking at. Any index above 2 means the number is abundant, and 12/5 = 2.4000 is comfortably above that line, so both 30 and 140 are abundant. An index of exactly 2 marks a perfect number: 6 is perfect, so its abundancy index is exactly 2. Indices below 2 mark deficient numbers. This gives the perfect numbers a special role in friendliness — since every perfect number has an index of exactly 2, any two perfect numbers are automatically friendly with each other, no matter how far apart they are.
The table below collects a few indices so you can see the pattern side by side. Notice that 30 and 140 share a row value even though their sigma values (72 and 336) and the numbers themselves are quite different. The reduced fraction is the identity that matters; the decimal is only a display.
When you work with the abundancy index, reduce each fraction before comparing. Two numbers are friendly exactly when their reduced indices are identical. That single rule covers the 30-and-140 pair at 12/5 and the automatic friendship of any two perfect numbers at 2.
| Number | sigma(n) | Abundancy index | Decimal |
|---|---|---|---|
| 6 | — | 2 | 2.0000 |
| 12 | 28 | 7/3 | 2.3333 |
| 30 | 72 | 12/5 | 2.4000 |
| 140 | 336 | 12/5 | 2.4000 |
Abundancy index vs abundant number test
A plain abundant number test answers a yes-or-no question: is the sum of a number's divisors greater than the number itself? The abundancy index answers a more detailed question. It is sigma(n) / n — the sum of all divisors of n, including n itself, divided by n. Because it is a ratio, the result is a rational number you can write down, compare, and rank, rather than a single label. That difference matters as soon as you want to know how abundant or how deficient a number is, not merely which side of the line it falls on.
The labels still follow from the index, and the cutoffs are simple. Take 12: sigma(12) = 28, so its index is 28/12, which reduces to 7/3 = 2.3333. Any index above 2 means the number is abundant, so 12 is abundant. At the boundary sits 6, which is perfect, so its index is exactly 2. Indices below 2 mark deficient numbers. A classifier stops once it has placed a number in one of those three groups; the index keeps the actual value, which is what lets you say that 12 is more abundant than some other abundant number or that one deficient number is closer to perfect than another.
Exact comparison is where the ratio earns its keep. The numbers 30 and 140 are friendly numbers because they share the same abundancy index, 12/5 = 2.4000. You can confirm this without rounding: sigma(30) = 72 gives 30 an index of 72/30, which reduces to 12/5, and sigma(140) = 336 gives 140 an index of 336/140, which reduces to the same 12/5. A yes-or-no test would only report that both are abundant. The index shows they are abundant to exactly the same degree, and it does so with fractions rather than decimals that might hide a small difference.
That precision is the practical argument for using this page alongside a simple classifier. Decimals like 2.3333 and 2.4000 are convenient shorthand, but the underlying fractions — 7/3 and 12/5 — are the exact values, and two indices that look close in decimal form may or may not be equal. Working with sigma(n) / n keeps the comparison honest, whether you are checking a single number or lining up several.
One caution: the index describes the size of the divisor sum relative to n. It does not, by itself, tell you anything beyond that ratio, so treat it as a measurement to compare, not a verdict to replace the basic test.
- Index above 2: the number is abundant — for example, 12 has index 7/3 = 2.3333 because sigma(12) = 28.
- Index exactly 2: the number is perfect — for example, 6.
- Index below 2: the number is deficient.
- Equal indices, different numbers: 30 and 140 are friendly numbers, both with index 12/5 = 2.4000, since sigma(30) = 72 and sigma(140) = 336.
FAQs
What is the abundancy index of 12?
The abundancy index of 12 is 7/3, which is 2.3333. This comes from adding up all the divisors of 12, which sum to 28, and dividing that sum by 12 itself. Since 28 divided by 12 simplifies to 7/3, the index is about 2.3333.
What abundancy index does a perfect number have?
A perfect number has an abundancy index of exactly 2. That is because its divisors sum to twice the number itself. The number 6 is a classic example: its divisors add up to twice 6, giving an index of exactly 2, which is the defining property of a perfect number.
What are friendly numbers?
Friendly numbers are two different numbers that share the same abundancy index. For example, 30 and 140 are friendly because both have an index of 12/5. Even though the two numbers are different, their divisors relate to them in the same ratio, which is what makes the pair friendly.
Can the abundancy index be less than 1?
No, the abundancy index cannot be less than 1. The sum of divisors, sigma(n), always includes n itself and also 1, so that sum is always greater than n. Dividing by n therefore always gives a value above 1. The index is always above 1, never below it.
What is the abundancy index of 30?
The abundancy index of 30 is 12/5, which is 2.4000. This is because sigma(30) equals 72, and 72 divided by 30 simplifies to 12/5. The number 140 has the same index of 12/5, and that shared value is exactly what makes 30 and 140 a friendly pair.
How is the abundancy index different from the abundance?
The abundance is a difference: sigma(n) minus 2n. The abundancy index is a ratio: sigma(n) divided by n. So the abundance tells you how far the divisor sum is from twice the number, while the abundancy index expresses the divisor sum relative to the number itself. One is subtraction; the other is division.