Aliquot Sum Calculator

s(n) = σ(n) − n with perfect, abundant or deficient class and full aliquot sequences.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter a whole number

Enter your values below to get started.

Examples:
1 to 10¹² for s(n) and sequences; up to 1,000,000 for Classify 1 to N.
Find
Aliquot sequence only (1–200).
Reset restores the default values.

Tips for this calculator

s(n) = n means n is perfect; s(n) > n means abundant; s(n) < n means deficient.

Every prime p has s(p) = 1, so prime numbers are deficient.

Two numbers a and b are amicable when s(a) = b and s(b) = a, such as 220 and 284.

Set the step limit to 200 to follow long aliquot sequences such as 138.

An aliquot sum calculator adds the proper divisors of a whole number n, the divisors smaller than n, to give s(n) = σ(n) − n. For n = 12 the proper divisors 1, 2, 3, 4 and 6 add up to 16. Enter n up to 1012 to get s(n), its prime factorization, the perfect, abundant or deficient class, an amicable partner, the aliquot sequence n → s(n) → s(s(n)) → …, or a count of every class from 1 to N.

What is an Aliquot Sum?

An aliquot sum s(n) is the sum of the proper divisors of n, meaning every positive divisor of n except n itself. The proper divisors of 12 are 1, 2, 3, 4 and 6, so s(12) = 16.

s(n)=∑d∣n, d<nd=σ(n)−ns(n) = \sum_{d \mid n,\ d < n} d = \sigma(n) - n

The word aliquot comes from Latin and means "a part that divides a whole exactly". Greek mathematicians of the Pythagorean school compared s(n) with n more than 2,500 years ago, and Euclid proved the first theorem about perfect numbers in the Elements (Book IX, Proposition 36, around 300 BC). σ(n), the sum of all divisors including n, is the divisor function σ1(n).

The aliquot sum puts every whole number n ≥ 2 in 1 of 3 classes: perfect when s(n) = n (28), abundant when s(n) > n (12) and deficient when s(n) < n (every prime).

InteractiveStack the proper divisors and compare with n

How Does the Aliquot Sum Calculator Work?

The aliquot sum calculator factors n into primes, builds σ(n) from the prime powers and subtracts n. Trial division only needs to test divisors up to √n, since every divisor d below √n pairs with n/d above √n; for n = 1012 that is at most 106 trial divisors.

InteractiveDivisor pairs meet at √n
  1. Factor n

    Trial division by 2, 3 and numbers of the form 6k ± 1 up to √n: 220 = 2² × 5 × 11.

  2. Build σ(n)

    Multiply 1 + p + … + pe for each prime power: σ(220) = 7 × 6 × 12 = 504.

  3. Subtract n

    s(220) = 504 − 220 = 284.

  4. Classify and follow

    Compare s(n) with n, test s(s(n)) = n for an amicable pair, and repeat for the aliquot sequence.

Aliquot Sum Formula

The aliquot sum formula is s(n) = σ(n) − n, where σ(n) is the product of (pe+1 − 1)/(p − 1) over the prime powers pe of n. The product form follows from one property: σ is multiplicative: σ(ab) = σ(a)σ(b) when a and b share no factor.

Sum of Divisors Formula σ(n)

Write n = p1e1 p2e2 ⋯ pkek. Then:

σ(n)=∏j=1kpj ej+1−1pj−1\sigma(n) = \prod_{j=1}^{k} \frac{p_j^{\,e_j+1} - 1}{p_j - 1}

Aliquot Sum of a Prime and a Prime Power

s(p)=1,s(pe)=pe−1p−1s(p) = 1, \qquad s(p^{e}) = \frac{p^{e} - 1}{p - 1}

Worked Example: s(360)

360=23⋅32⋅5360 = 2^3 \cdot 3^2 \cdot 5
σ(360)=15⋅13⋅6=1170\sigma(360) = 15 \cdot 13 \cdot 6 = 1170
s(360)=1170−360=810s(360) = 1170 - 360 = 810
Interactiveσ(n) built from prime powers

Types of Numbers by Aliquot Sum

There are 3 main types of numbers by aliquot sum: deficient, perfect and abundant, plus 3 special cases: primes, amicable numbers and sociable numbers. About 75.2% of whole numbers are deficient and about 24.8% are abundant; perfect numbers are rare, with only 4 below 10 million.

Interactives(n)/n for every n: above, on or below the perfect line

Deficient: s(n) < n

Examples: 1, 8, 9, 10, 97. Every prime and every prime power is deficient.

Perfect: s(n) = n

6, 28, 496, 8,128 and 33,550,336. Every known perfect number is even.

Abundant: s(n) > n

12, 18, 20, 24, 360. The smallest odd abundant number is 945, with s(945) = 975.

Prime: s(n) = 1

A prime p has only 1 as a proper divisor, so s(p) = 1.

Amicable pair: s(a) = b, s(b) = a

220 and 284, 1,184 and 1,210, 2,620 and 2,924.

Sociable cycle

A loop of 3 or more numbers: 12,496 → 14,288 → 15,472 → 14,536 → 14,264 → 12,496.

How to Calculate an Aliquot Sum by Hand

To calculate an aliquot sum by hand, list every divisor of n up to √n with its partner n/d, drop n itself and add the rest. Here is s(36):

  1. √36 = 6, so test d = 1 to 6.
  2. Divisor pairs: (1, 36), (2, 18), (3, 12), (4, 9), (6, 6).
  3. Proper divisors: 1, 2, 3, 4, 6, 9, 12, 18 (count 6 once, drop 36).
  4. Add: 1 + 2 + 3 + 4 + 6 + 9 + 12 + 18 = 55.
  5. 55 > 36, so 36 is abundant. Check with the formula: σ(36) = 7 × 13 = 91, and 91 − 36 = 55.
InteractiveStep through an aliquot sum by hand

    Aliquot Sequences

    An aliquot sequence starts at n and applies s again and again: n, s(n), s(s(n)), … Every aliquot sequence studied so far does 1 of 3 things: it reaches a prime, then 1 and 0; it reaches a perfect number, amicable pair or sociable cycle and repeats; or it is still open.

    • Terminates: 12 → 16 → 15 → 9 → 4 → 3 → 1 → 0. The sequence of 138 climbs to 179,931,895,322 and reaches 1 after 177 steps.
    • Reaches a perfect number: 95 → 25 → 6 → 6 → …
    • Reaches an amicable pair: 562 → 284 → 220 → 284 → …
    • Open: 276 is the smallest start whose sequence has not been resolved; 276, 552, 564, 660 and 966 are the "Lehmer five".

    The Catalan–Dickson conjecture (Eugène Catalan 1888, Leonard Dickson 1913) states that every aliquot sequence ends or cycles. The Guy–Selfridge counter-conjecture states that many sequences with even starts grow without bound. Neither has been proven.

    InteractiveFollow famous aliquot sequences

    Perfect, Amicable and Sociable Numbers

    Perfect, amicable and sociable numbers are the cycles of the aliquot sum: a perfect number is a cycle of length 1, an amicable pair a cycle of length 2 and a sociable group a cycle of length 3 or more.

    • Euclid–Euler theorem: an even number is perfect exactly when it equals 2p−1(2p − 1) with 2p − 1 a Mersenne prime. p = 2, 3, 5, 7 give 6, 28, 496 and 8,128. Every known Mersenne prime gives one even perfect number; the Great Internet Mersenne Prime Search (GIMPS) has found the largest of them.
    • Amicable pairs: Thābit ibn Qurra (9th century) gave a rule for amicable pairs; Leonhard Euler found dozens of new pairs in the 1740s. There are 42 pairs with the smaller number below 1,000,000.
    • Sociable numbers: Paul Poulet found the 5-cycle starting at 12,496 and a 28-cycle starting at 14,316 in 1918.
    InteractiveAliquot cycles: perfect, amicable, sociable

    Common Mistakes with Aliquot Sums

    • Including n: σ(12) = 28 includes 12; the aliquot sum s(12) = 16 does not.
    • Counting a square root twice: for n = 36, the divisor 6 pairs with itself and is added once.
    • Calling 1 perfect: s(1) = 0, so 1 is deficient.
    • Assuming abundant numbers are even: 945 = 3³ × 5 × 7 is odd and abundant.
    • Treating every sequence as finite: the aliquot sequence of 276 has passed 200 digits without ending.
    InteractiveTrue or false: aliquot sums
    1. The aliquot sum of 12 is 28.

    2. Every prime number has an aliquot sum of 1.

    3. 220 and 284 are an amicable pair.

    4. Every abundant number is even.

    5. 496 is a perfect number.

    Score: 0 / 5

    How to Use the Aliquot Sum Calculator

    Enter n, pick Aliquot sum, Aliquot sequence or Classify 1 to N, and press Calculate. The result card shows s(n) with the class, σ(n), the abundance and the prime factors; the tabs list every step, chart the values and table each proper divisor or sequence term.

    InteractiveLoad a ready-made aliquot sum

    Each button fills the calculator and runs it.

    1. Enter n

      Any whole number from 1 to 1012, such as 8,128 or 999,999,999,989.

    2. Pick a mode

      Aliquot sum s(n), Aliquot sequence (with a step limit), or Classify 1 to N (N ≤ 1,000,000).

    3. Set the step limit

      Sequence mode only: up to 200 steps; terms above 1012 stop the run.

    4. Read the result

      Perfect, abundant or deficient, the amicable partner, the sequence outcome or the class counts.

    Real-Life Uses of Aliquot Sums

    Aliquot sums are used in number theory research, programming exercises, distributed computing projects and mathematics education. There are 4 common uses:

    • Programming practice: Project Euler problem 21 asks for the sum of all amicable numbers below 10,000 (31,626), and problem 23 uses abundant numbers.
    • Distributed computing: volunteers in the Aliquot Sequences project and FactorDB factor terms with more than 150 digits to extend open sequences such as 276.
    • Mersenne prime search: every new Mersenne prime found by GIMPS gives a new even perfect number.
    • Teaching divisors: classifying 1 to 100 as deficient, perfect or abundant (76, 2 and 22 numbers) practises factor pairs.
    InteractiveProject Euler 21: amicable numbers below N

    Aliquot Sum Examples

    Aliquot sums of well-known numbers.

    Aliquot Sum Examples
    nProper divisorss(n)ClassCalculator
    121, 2, 3, 4, 616Abundant
    281, 2, 4, 7, 1428Perfect
    9711Deficient (prime)
    2201, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110284Abundant, amicable
    2841, 2, 4, 71, 142220Deficient, amicable
    36023 divisors810Abundant
    94515 divisors975Abundant (smallest odd)

    Popular Aliquot Sum Problems

    Try each one, then reveal the answer or solve it in the calculator.

    1. Find the aliquot sum of 30 and classify 30.

      Show answers(30) = 1 + 2 + 3 + 5 + 6 + 10 + 15 = 42, abundant
    2. Show that 496 is a perfect number.

      Show answers(496) = 496
    3. Find s(1,184). Is 1,184 part of an amicable pair?

      Show answers(1,184) = 1,210 and s(1,210) = 1,184, so yes
    4. Write the aliquot sequence of 10.

      Show answer10 → 8 → 7 → 1 → 0
    5. Find the aliquot sum of 945, the smallest odd abundant number.

      Show answers(945) = 975
    6. How many abundant numbers are there from 1 to 100?

      Show answer22 (with 2 perfect and 76 deficient)

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is an aliquot sum calculator?

    An aliquot sum calculator is an online tool that adds the proper divisors of n to give s(n) = σ(n) − n. The calculator classifies n as perfect, abundant or deficient, finds amicable partners and follows the aliquot sequence.

    What is the aliquot sum of 12?

    The aliquot sum of 12 is 16: 1 + 2 + 3 + 4 + 6 = 16. 16 > 12, so 12 is the smallest abundant number.

    What is the difference between σ(n) and s(n)?

    σ(n) adds every divisor of n including n, and s(n) adds only the proper divisors, so s(n) = σ(n) − n. For n = 12, σ(12) = 28 and s(12) = 16.

    Is 1 a perfect number?

    No, 1 is not perfect. 1 has no proper divisors, so s(1) = 0 < 1 and 1 is deficient.

    What are the first 4 perfect numbers?

    The first 4 perfect numbers are 6, 28, 496 and 8,128. The 5th is 33,550,336.

    Are there odd perfect numbers?

    No, no odd perfect number is known, and none exists below 10<sup>1500</sup> (Pascal Ochem and Michaël Rao, 2012). Whether one exists is an open problem.

    What is an amicable pair?

    An amicable pair is 2 different numbers a and b with s(a) = b and s(b) = a. The smallest pair is 220 and 284.

    Does every aliquot sequence end?

    No, nobody has proved that every aliquot sequence ends. Most sequences reach 0 or a cycle, but the sequence of 276 has passed 200 digits without ending.

    What is the aliquot sum of a prime number?

    The aliquot sum of every prime number is 1, since 1 is the only proper divisor of a prime. s(97) = 1.

    Conclusion

    The aliquot sum s(n) = σ(n) − n adds the proper divisors of n, and comparing s(n) with n sorts every number into deficient, perfect or abundant. The aliquot sum calculator factors n up to 1012, lists each proper divisor, finds amicable partners, follows aliquot sequences for up to 200 steps and counts each class up to 1,000,000.

    Not sure which mode to pick? Answer 3 questions below.

    InteractiveWhich aliquot sum mode do you need?