Number

Divisors that add to three times the number

The divisors of 6 add up to 12, twice 6: a perfect number. The divisors of 120 add up to 360, three times 120, and those of 30,240 to four times it. Numbers like these were a sport for Fermat and Descartes, and they are held together by one fact — the ratio σ(n)/n is a product over the primes, and each prime can add only a little.

Worth reading first: Numbers that are their own parts · Why a quarter of numbers overshoot.

A perfect number is one whose divisors, itself included, add up to twice the number: 1+2+3+6=12=2×61 + 2 + 3 + 6 = 12 = 2 \times 6. Numbers that are their own parts builds every even one from a Mersenne prime and leaves the odd ones as an open question. The definition has an obvious generalisation that the seventeenth century pursued with enthusiasm: why stop at twice?

The divisors of 120120 are 1,2,3,4,5,6,8,10,12,15,20,24,30,40,60,1201, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120, and they add up to 360360 — exactly three times 120120. Such a number is called multiperfect, or kk-perfect when its divisors add to kk times it. Pierre de Fermat found the next three-perfect number, 672672, and in 1638 René Descartes, in a letter to Marin Mersenne, announced numbers whose divisors add to four and five times themselves. The game was to find more, and it was played without any theory of why the numbers existed.

The theory, once there is one, is short. It rests on the ratio

I(n)=σ(n)n,I(n) = \frac{\sigma(n)}{n},

the abundancy of nn — the sum of its divisors measured in units of nn — which why a quarter of numbers overshoot uses to sort numbers into deficient and abundant. A kk-perfect number is one whose abundancy is exactly the whole number kk.

A game played by letter

The first three-perfect number on record is 120120, noted by the English mathematician Robert Recorde in 1557 without any sign of how he found it. The subject came alive eighty years later in the correspondence that Marin Mersenne, a friar in Paris, kept up with most of the mathematicians of Europe. Mersenne posed the problem of finding numbers whose divisors add to a given multiple, and the answers travelled by letter: Fermat sent 672672 and 523,776523{,}776 in 1637, and Descartes, in 1638, sent three more three-perfect numbers as well as the four-perfect 30,24030{,}240 and the five-perfect 14,182,439,04014{,}182{,}439{,}040, with the remark that he could find as many as anyone wanted.

He could not, and nobody else could either without a method. The finds of the seventeenth century were made by the chains described below, followed by hand with considerable skill, and the next substantial additions came in the early twentieth century from Robert Carmichael, Thomas Mason and Derrick Lehmer, and in the late twentieth century from computers running the same method at scale. The sixth three-perfect number, 51,001,180,16051{,}001{,}180{,}160, belongs to that later period of hand computation. After it the list of multiple three stopped growing, though the search for larger multiples went on.

Two to six times themselves

Numbers whose divisors add to two, three, four, five and six times themselves. A table of multiperfect numbers with the multiple their divisor sum makes of them, the number itself and its factorisation into prime powers.
Fig. 1 Numbers whose divisors add up to a whole multiple of the number, from multiple two to multiple six, with their factorisations into prime powers. Every row is checked by computing σ(n) exactly from the factorisation. Six numbers have multiple three and no more are known; the one shown with multiple six has 21 digits and eleven distinct primes.

The table lists the first few of each multiple from two to six. The three-perfect numbers are 120120, 672672, 523,776523{,}776, 459,818,240459{,}818{,}240, 1,476,304,8961{,}476{,}304{,}896 and 51,001,180,16051{,}001{,}180{,}160 — six of them, all found by 1929, and none since. The four-perfect numbers begin 30,24030{,}240 and 32,76032{,}760; the five-perfect with 14,182,439,04014{,}182{,}439{,}040; the six-perfect with a number of twenty-one digits. Each row was checked, not copied: the figure computes σ(n)\sigma(n) exactly from the factorisation, as a whole number with no rounding, and confirms that it is kk times nn.

Two things stand out. Every number in the table is even, and every one has a large power of two in it — 232^3 in 120120, 2152^{15} in the six-perfect number. And the numbers of distinct primes grow with the multiple: two for the perfect numbers, three or more for three, four or more for four, seven for the first five-perfect, eleven for the six. Both have explanations, and both come from the same formula.

The abundancy is a product over the primes

The divisors of n=p1a1p2a2⋯n = p_1^{a_1} p_2^{a_2} \cdots are all the products of one power of each prime, so their sum factorises:

σ(n)=∏i(1+pi+pi2+⋯+piai),\sigma(n) = \prod_i \bigl(1 + p_i + p_i^2 + \dots + p_i^{a_i}\bigr),

and the abundancy is a product of one factor for each prime power:

I(n)=∏i(1+1pi+⋯+1piai).I(n) = \prod_i \Bigl(1 + \frac{1}{p_i} + \dots + \frac{1}{p_i^{a_i}}\Bigr).

That is the fact the shape of a number’s divisors draws as a box with one axis per prime. The factor for pap^a is a partial geometric series, larger than one and smaller than p/(p−1)p/(p - 1), the sum of the whole series.

The abundancy of a multiperfect number, one prime at a time. Rows of segments laid end to end on a logarithmic scale, one row per multiperfect number and one segment per prime power, each segment the factor that prime power contributes, reaching exactly three, four and five.
Fig. 2 σ(n)/n as a product with one factor for each prime power, drawn on a logarithmic scale so that factors multiply by lying end to end. For 120, 30,240 and 14,182,439,040 the segments reach exactly 3, 4 and 5; each extra prime contributes less than the one before, so a larger multiple needs many more primes.

On a logarithmic scale the factors add, and the figure lays them end to end. For 120=23⋅3⋅5120 = 2^3 \cdot 3 \cdot 5 the power of two contributes 15/815/8, the three 4/34/3 and the five 6/56/5, and 158⋅43⋅65=3\tfrac{15}{8} \cdot \tfrac43 \cdot \tfrac65 = 3 exactly. For 30,240=25⋅33⋅5⋅730{,}240 = 2^5 \cdot 3^3 \cdot 5 \cdot 7 four segments reach four. For the five-perfect number seven segments reach five, and the last few are slivers: the factor for 1717 is 18/1718/17, barely more than one.

That is the reason the prime counts grow. Each prime can multiply the abundancy by less than p/(p−1)p/(p - 1), which for p=2p = 2 is two, for p=3p = 3 one and a half, and for large pp only a hair above one. Reaching a large multiple means collecting many such hairs.

How many primes a multiple needs

The largest abundancy a number with rr distinct primes can approach is the product of p/(p−1)p/(p - 1) over the rr smallest primes, since smaller primes contribute more.

How many primes each multiple needs. Two step curves of the largest abundancy achievable with a given number of distinct primes, for all numbers and for odd numbers, crossing the horizontal lines at two, three, four, five and six.
Fig. 3 The largest abundancy a number built from r distinct primes can approach — the product of p/(p − 1) over the smallest r primes — for all numbers and for odd numbers. To reach a multiple k a number needs at least 2 primes for 2, 3 for 3, 4 for 4, 6 for 5 and 9 for 6; an odd number needs 3, 8, 21, 54 and 141.

The products climb 2,3,3.75,4.375,4.81,5.21,…2, 3, 3.75, 4.375, 4.81, 5.21, \dots, and a number can only reach abundancy kk if the product for its number of primes is above kk. So a perfect number needs two primes, a three-perfect number three, a four-perfect four, a five-perfect six and a six-perfect nine. Every example in the table has at least that many.

For odd numbers the bound bites much harder, because the prime 22, with its factor of two, is excluded. The product over odd primes climbs 1.5,1.875,2.19,…1.5, 1.875, 2.19, \dots and reaches two only at the third prime: an odd perfect number needs at least three distinct primes. That elementary bound was raised by James Joseph Sylvester in 1888 and by computation since to at least ten. An odd three-perfect number would need eight, an odd four-perfect twenty-one, an odd six-perfect one hundred and forty-one. None is known, of any multiple.

The growth is extremely slow. By a theorem of Franz Mertens, the product of p/(p−1)p/(p - 1) over primes up to xx grows like eγln⁡xe^{\gamma} \ln x, where γ=0.5772…\gamma = 0.5772\ldots is Euler’s constant. To reach abundancy kk the primes must run up to about eke−γe^{k e^{-\gamma}}, and a number built from all of them is doubly exponential in kk — which is why the six-perfect number has twenty-one digits and the largest multiples known, eleven, belong to numbers with hundreds.

Chains that close

The factorisations in the table are not arbitrary, and one way to see their structure is to follow the divisor sums.

The divisor sums that supply the primes they need. A table for two multiperfect numbers listing each prime power, the sum of its divisors, and that sum factorised into the primes that make up the number.
Fig. 4 Each prime power of a multiperfect number, the sum of its divisors, and that sum factorised. For 120=23⋅3⋅5120 = 2^3 \cdot 3 \cdot 5: σ(23)=15=3⋅5\sigma(2^3) = 15 = 3 \cdot 5 supplies the 3 and the 5, σ(3)=4\sigma(3) = 4 and σ(5)=6\sigma(5) = 6 return the powers of 2, and the product is 3×1203 \times 120. For 30,240 the chain runs through 63=32⋅763 = 3^2 \cdot 7 and 40=23⋅540 = 2^3 \cdot 5.

For nn to be kk-perfect, the product of the divisor sums of its prime powers must be kk times nn — so the primes those sums contain must be, apart from the factor kk, exactly the primes of nn. For 120120: σ(23)=15=3⋅5\sigma(2^3) = 15 = 3 \cdot 5 produces a 33 and a 55; σ(3)=4\sigma(3) = 4 and σ(5)=6\sigma(5) = 6 produce 222^2 and 2⋅32 \cdot 3. Altogether 15⋅4⋅6=23⋅32⋅5=3×12015 \cdot 4 \cdot 6 = 2^3 \cdot 3^2 \cdot 5 = 3 \times 120 — the primes of 120120, with one extra 33.

That is how the numbers were found by hand. Start with a power of two, factor its divisor sum 2a+1−12^{a+1} - 1, add those primes to the number, factor their divisor sums, add those primes, and try to arrange that everything closes up with the right powers. The Mersenne numbers 2a+1−12^{a+1} - 1 are where every chain starts, which is why every known multiperfect number carries a large power of two: 2a+1−12^{a+1} - 1 is the only way to introduce odd primes cheaply, and the odd primes’ own sums, being even, pay back the twos. The perfect numbers are the shortest chains of all, 2a2^a and one prime 2a+1−12^{a+1} - 1 closing immediately.

A sieve to a million

A search can confirm that nothing was missed below some bound.

Every number up to 1,000,000, by its abundancy. A scatter of abundancy against the logarithm of n for a sample of numbers, with dashed lines at the whole numbers two to four and the few numbers lying exactly on them marked.
Fig. 5 The abundancy σ(n)/n of every ninety-seventh number up to 1,000,000, on a logarithmic scale of n, with the numbers whose abundancy is a whole number — found by testing all 1,000,000 — marked. There are nine besides 1: 6, 28, 120, 496, 672, 8,128, 30,240, 32,760 and 523,776.

Computing σ(n)\sigma(n) for every nn up to a million by adding each divisor to each of its multiples, and testing which σ(n)\sigma(n) are multiples of nn, finds exactly nine numbers besides 11: the four perfect numbers below a million, three of the six three-perfect numbers, and the two smallest four-perfect ones. The scatter of all abundancies shows why they are rare. The cloud of values fills the region from one to about four and a half, rising slowly with nn as Mertens’s product allows, and a whole number is a single horizontal line through a cloud of hundreds of thousands of fractions. Only nine points in a million land on one exactly.

The sieve is the same kind of computation as the sieve of Eratosthenes, run with addition instead of crossing out: for every dd up to a million, add dd to σ\sigma of each of its multiples. It touches each number once for every divisor it has, about fourteen million additions in all, and it finds every multiperfect number in its range because it tests them all — no chain, no guess, no structure assumed. The price is that it stops at its bound, and the next three-perfect number after 523,776523{,}776 is nearly nine hundred times larger.

How large an abundancy can get, and a connection to the Riemann hypothesis

The prime-count argument bounds the abundancy of a number by a product over its primes, and it can be turned into a bound in terms of the number itself. A number with many small primes is the most abundant for its size, and Thomas Gronwall proved in 1913 that the abundancy of nn can grow no faster than eγln⁡ln⁡ne^\gamma \ln \ln n — and does grow that fast, along the right sequence of numbers:

lim sup⁡n→∞σ(n)nln⁡ln⁡n=eγ=1.781…\limsup_{n \to \infty} \frac{\sigma(n)}{n \ln \ln n} = e^\gamma = 1.781\ldots

So the multiple a number’s divisors can make of it grows like the logarithm of the logarithm of the number — about 55 for numbers of twenty digits, about 99 for numbers of a million digits. Multiperfect numbers of large multiple are necessarily astronomically large, and that is the real reason the table’s rows get so long so quickly.

The bound hides one of the most surprising facts in elementary number theory. Guy Robin proved in 1984 that the inequality

σ(n)<eγ nln⁡ln⁡nfor every n>5040\sigma(n) < e^\gamma\, n \ln \ln n \quad \text{for every } n > 5040

holds if and only if the Riemann hypothesis is true. The largest number that breaks it is 5040=7!5040 = 7!, and it has been checked for enormous ranges of nn above that. A statement about adding up divisors — the operation that defines perfect numbers — is equivalent to the most famous open question about the zeros of a complex function, because both are statements about how regularly the primes are spread, and the numbers that come closest to breaking Robin’s inequality are exactly the ones built, like the multiperfect numbers, from long runs of small primes.

Why the powers of two are so large

The chain picture explains one more feature of the table, the size of the powers of two. A multiperfect number 2am2^a m with mm odd must have σ(2a)=2a+1−1\sigma(2^a) = 2^{a+1} - 1 built entirely from primes that appear in mm, and every odd prime’s divisor sum returns powers of two. The two budgets have to balance: the total power of two produced by the odd primes’ sums, less the factor in kk, must be exactly aa. An odd prime pp appearing once contributes σ(p)=p+1\sigma(p) = p + 1, which is even, so a number with many odd primes pays back many twos, and aa has to be large enough to absorb them — a=15a = 15 for the six-perfect number, whose ten odd prime powers return sixteen factors of two between them: fifteen to rebuild 2152^{15} and one for the two in the multiple six. The single prime 3131 returns five of them, since σ(31)=32\sigma(31) = 32, and the prime 257257 returns one. A chain is, in this light, an accounting problem: every prime a divisor sum introduces must be paid for in the number, and every power of two the odd primes throw back must be absorbed by the power of two the chain began with. Large multiples need many odd primes, many odd primes return many twos, and so the power of two grows with the multiple.

Where the aliquot sequence sends them

The sum of the parts, taken again iterates a different map, n↦σ(n)−nn \mapsto \sigma(n) - n, the sum of the proper divisors, and finds that perfect numbers are its fixed points. A kk-perfect number with k≥3k \ge 3 is not a fixed point of that map; it is sent to (k−1)n(k - 1)n, a number k−1k - 1 times as large, and its sequence climbs. So 120120 goes to 240240, which is abundant and climbs further, and the multiperfect numbers — so orderly under σ\sigma itself — are not special under the aliquot map at all. It is a reminder that “divisors adding up to a multiple” and “the aliquot sequence returning” are different conditions that happen to coincide at the multiple two.

The two maps share their growth bound, though. The aliquot map can multiply a number by at most about eγln⁡ln⁡ne^\gamma \ln \ln n in one step, by Gronwall’s theorem, and the harmonic-series estimate behind Mertens’s product — the same slow logarithm as the sum that never stops growing — is what sets that rate. Divisor sums are harmonic sums over the divisors, and every question about how large they get comes back to how slowly 1+12+13+⋯1 + \tfrac12 + \tfrac13 + \cdots grows.

What is known about the lists

The three-perfect list is believed complete and not proved so. Six were known by 1929 and exhaustive searches since have found no seventh, but nothing rules out a larger one. The situation is similar for four-perfect numbers, of which thirty-six are known, and the lists grow with the multiple: more than five thousand multiperfect numbers are known in all, with multiples up to eleven, most found in the late twentieth century by the chain method run on computers.

Three things are known in general. Every perfect number that is even has Euclid’s form, as the earlier essay proves, built from one of the Mersenne primes whose supply is tied to the infinitude of primes in general only by hope; for multiperfect numbers there is no such characterisation. For odd perfect numbers, Leonard Dickson proved in 1913 that only finitely many can have a given number of distinct primes — a chain of bounded length can close in only finitely many ways when no Mersenne prime is available to start it — which is what lets computer searches rule out small cases completely. And no odd multiperfect number of any multiple has ever been found.

What the pictures cannot show

That the lists are complete. The table is a selection of known numbers, each checked; the sieve is complete below a million and nowhere else. Neither says there are only six three-perfect numbers, which is unproved.

The chain search itself. The chain figure shows two chains that close. The method that finds them — trying prime powers, factoring their sums, backtracking when the primes run away — explores enormous trees of chains that do not close, and none of that is drawn.

Robin’s inequality. Nothing drawn here tests it, and no finite check could establish it: it is equivalent to the Riemann hypothesis, and the evidence for both is computation that stops somewhere. The figures show abundancies of numbers up to a million, far below where the inequality is interesting.

Mertens’s growth. The primes figure shows fourteen primes; the statement that the product grows like eγln⁡xe^\gamma \ln x, and the doubly exponential size it forces, is a theorem about all primes, quoted here.

Still open: an odd one, of any multiple

Every known multiperfect number is even, and the question the perfect numbers left open — whether an odd perfect number exists — generalises to every multiple: is there an odd kk-perfect number for any k≥2k \ge 2? None is known, and none is ruled out.

The prime-count figure shows why the odd case is hard to settle in either direction. An odd number needs many more primes to reach any given abundancy, so an odd multiperfect number, if one exists, must be very large and have many distinct prime factors — for an odd perfect number, more than 10150010^{1500} and at least ten distinct primes, by searches that close off every smaller case. Nothing in the arithmetic of chains forbids odd ones outright; the Mersenne primes that make even chains easy to start simply are not available. Whether that makes odd multiperfect numbers impossible, or merely rare beyond any search, is the question, and it has been open since Descartes.

What links here

Computed from the collection, not written here: the essays that point at this one.

Reads more easily once this is understood

Essays that name this one as worth reading first.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

AbundanceDivisor functionDivisor sumExhaustive searchMersenne primeMultiplicative functionPerfect numberPrimes