
In
number theory
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
, a perfect number is a
positive integer
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positiv ...
that is equal to the sum of its positive proper
divisor
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a '' multiple'' of m. An integer n is divisible or evenly divisibl ...
s, that is, divisors excluding the number itself. For instance, 6 has proper divisors 1, 2 and 3, and 1 + 2 + 3 = 6, so 6 is a perfect number. The next perfect number is 28, since 1 + 2 + 4 + 7 + 14 = 28.
The first four perfect numbers are
6,
28,
496 and
8128.
The sum of proper divisors of a number is called its
aliquot sum
In number theory, the aliquot sum of a positive integer is the sum of all proper divisors of , that is, all divisors of other than itself.
That is,
s(n)=\sum_ d \, .
It can be used to characterize the prime numbers, perfect numbers, sociabl ...
, so a perfect number is one that is equal to its aliquot sum. Equivalently, a perfect number is a number that is half the sum of all of its positive divisors; in symbols,
where
is the
sum-of-divisors function.
This definition is ancient, appearing as early as
Euclid's ''Elements'' (VII.22) where it is called (''perfect'', ''ideal'', or ''complete number'').
Euclid
Euclid (; ; BC) was an ancient Greek mathematician active as a geometer and logician. Considered the "father of geometry", he is chiefly known for the '' Elements'' treatise, which established the foundations of geometry that largely domina ...
also proved a formation rule (IX.36) whereby
is an even perfect number whenever
is a prime
of the form for positive integer
—what is now called a
Mersenne prime
In mathematics, a Mersenne prime is a prime number that is one less than a power of two. That is, it is a prime number of the form for some integer . They are named after Marin Mersenne, a French Minim friar, who studied them in the early 1 ...
. Two millennia later,
Leonhard Euler
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
proved that all even perfect numbers are of this form.
[Caldwell, Chris]
"A proof that all even perfect numbers are a power of two times a Mersenne prime"
This is known as the
Euclid–Euler theorem.
It is not known whether there are any odd perfect numbers, nor whether infinitely many perfect numbers exist.
History
In about 300 BC Euclid showed that if 2
''p'' − 1 is prime then 2
''p''−1(2
''p'' − 1) is perfect.
The first four perfect numbers were the only ones known to early
Greek mathematics
Ancient Greek mathematics refers to the history of mathematical ideas and texts in Ancient Greece during Classical antiquity, classical and late antiquity, mostly from the 5th century BC to the 6th century AD. Greek mathematicians lived in cities ...
, and the mathematician
Nicomachus
Nicomachus of Gerasa (; ) was an Ancient Greek Neopythagorean philosopher from Gerasa, in the Roman province of Syria (now Jerash, Jordan). Like many Pythagoreans, Nicomachus wrote about the mystical properties of numbers, best known for his ...
noted 8128 as early as around AD 100.
In modern language, Nicomachus states without proof that perfect number is of the form
where
is prime. He seems to be unaware that itself has to be prime. He also says (wrongly) that the perfect numbers end in 6 or 8 alternately. (The first 5 perfect numbers end with digits 6, 8, 6, 8, 6; but the sixth also ends in 6.)
Philo of Alexandria
Philo of Alexandria (; ; ; ), also called , was a Hellenistic Jewish philosopher who lived in Alexandria, in the Roman province of Egypt.
The only event in Philo's life that can be decisively dated is his representation of the Alexandrian Je ...
in his first-century book "On the creation" mentions perfect numbers, claiming that the world was created in 6 days and the moon orbits in 28 days because 6 and 28 are perfect. Philo is followed by
Origen
Origen of Alexandria (), also known as Origen Adamantius, was an Early Christianity, early Christian scholar, Asceticism#Christianity, ascetic, and Christian theology, theologian who was born and spent the first half of his career in Early cent ...
, and by
Didymus the Blind
Didymus the Blind ( Coptic: ; 398), alternatively spelled Dedimus or Didymous, was a Christian theologian in the Church of Alexandria, where he taught for about half a century. He was a student of Origen, and, after the Second Council of Constant ...
, who adds the observation that there are only four perfect numbers that are less than 10,000. (Commentary on Genesis 1. 14–19).
Augustine of Hippo
Augustine of Hippo ( , ; ; 13 November 354 – 28 August 430) was a theologian and philosopher of Berber origin and the bishop of Hippo Regius in Numidia, Roman North Africa. His writings deeply influenced the development of Western philosop ...
defines perfect numbers in ''
The City of God
''On the City of God Against the Pagans'' (), often called ''The City of God'', is a book of Christian philosophy written in Latin by Augustine of Hippo in the early 5th century AD. Augustine wrote the book to refute allegations that Christian ...
'' (Book XI, Chapter 30) in the early 5th century AD, repeating the claim that God created the world in 6 days because 6 is the smallest perfect number. The Egyptian mathematician
Ismail ibn Fallūs (1194–1252) mentioned the next three perfect numbers (33,550,336; 8,589,869,056; and 137,438,691,328) and listed a few more which are now known to be incorrect. The first known European mention of the fifth perfect number is a manuscript written between 1456 and 1461 by an unknown mathematician. In 1588, the Italian mathematician
Pietro Cataldi
Pietro Antonio Cataldi (15 April 1548, Bologna – 11 February 1626, Bologna) was an Italian mathematician. A citizen of Bologna, he taught mathematics and astronomy and also worked on military problems. His work included the development of simple ...
identified the sixth (8,589,869,056) and the seventh (137,438,691,328) perfect numbers, and also proved that every perfect number obtained from Euclid's rule ends with a 6 or an 8.
Even perfect numbers
Euclid
Euclid (; ; BC) was an ancient Greek mathematician active as a geometer and logician. Considered the "father of geometry", he is chiefly known for the '' Elements'' treatise, which established the foundations of geometry that largely domina ...
proved that
is an even perfect number whenever
is prime (''
Elements'', Prop. IX.36).
For example, the first four perfect numbers are generated by the formula
with a
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
, as follows:
Prime numbers of the form
are known as
Mersenne prime
In mathematics, a Mersenne prime is a prime number that is one less than a power of two. That is, it is a prime number of the form for some integer . They are named after Marin Mersenne, a French Minim friar, who studied them in the early 1 ...
s, after the seventeenth-century monk
Marin Mersenne
Marin Mersenne, OM (also known as Marinus Mersennus or ''le Père'' Mersenne; ; 8 September 1588 – 1 September 1648) was a French polymath whose works touched a wide variety of fields. He is perhaps best known today among mathematicians for ...
, who studied
number theory
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
and perfect numbers. For
to be prime, it is necessary that itself be prime. However, not all numbers of the form
with a prime are prime; for example, is not a prime number. In fact, Mersenne primes are very rare: of the approximately 4 million primes up to 68,874,199,
is prime for only 48 of them.
While
Nicomachus
Nicomachus of Gerasa (; ) was an Ancient Greek Neopythagorean philosopher from Gerasa, in the Roman province of Syria (now Jerash, Jordan). Like many Pythagoreans, Nicomachus wrote about the mystical properties of numbers, best known for his ...
had stated (without proof) that perfect numbers were of the form
where
is prime (though he stated this somewhat differently),
Ibn al-Haytham
Ḥasan Ibn al-Haytham (Latinization of names, Latinized as Alhazen; ; full name ; ) was a medieval Mathematics in medieval Islam, mathematician, Astronomy in the medieval Islamic world, astronomer, and Physics in the medieval Islamic world, p ...
(Alhazen) circa AD 1000 was unwilling to go that far, declaring instead (also without proof) that the formula yielded only every even perfect number. It was not until the 18th century that
Leonhard Euler
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
proved that the formula
will yield all the even perfect numbers. Thus, there is a
one-to-one correspondence
In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equivale ...
between even perfect numbers and Mersenne primes; each Mersenne prime generates one even perfect number, and vice versa. This result is often referred to as the
Euclid–Euler theorem.
An exhaustive search by the
GIMPS distributed computing project has shown that the first 48 even perfect numbers are
for
: = 2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213, 19937, 21701, 23209, 44497, 86243, 110503, 132049, 216091, 756839, 859433, 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583, 25964951, 30402457, 32582657, 37156667, 42643801, 43112609 and 57885161 .
Four higher perfect numbers have also been discovered, namely those for which = 74207281, 77232917, 82589933 and 136279841. Although it is still possible there may be others within this range, initial but exhaustive tests by GIMPS have revealed no other perfect numbers for below 109332539. , 52 Mersenne primes are known,
and therefore 52 even perfect numbers (the largest of which is with 82,048,640 digits). It is
not known whether there are
infinitely many perfect numbers, nor whether there are infinitely many Mersenne primes.
As well as having the form
, each even perfect number is the
-th
triangular number
A triangular number or triangle number counts objects arranged in an equilateral triangle. Triangular numbers are a type of figurate number, other examples being square numbers and cube numbers. The th triangular number is the number of dots in ...
(and hence equal to the sum of the integers from 1 to
) and the
-th
hexagonal number
A hexagonal number is a figurate number. The ''n''th hexagonal number ''h'n'' is the number of ''distinct'' dots in a pattern of dots consisting of the ''outlines'' of regular hexagons with sides up to n dots, when the hexagons are overlaid so ...
. Furthermore, each even perfect number except for 6 is the
-th
centered nonagonal number and is equal to the sum of the first
odd cubes (odd cubes up to the cube of
):
Even perfect numbers (except 6) are of the form
with each resulting triangular number , , (after subtracting 1 from the perfect number and dividing the result by 9) ending in 3 or 5, the sequence starting with , , ,
It follows that by adding the digits of any even perfect number (except 6), then adding the digits of the resulting number, and repeating this process until a single digit (called the
digital root
The digital root (also repeated digital sum) of a natural number in a given radix is the (single digit) value obtained by an iterative process of summing digits, on each iteration using the result from the previous iteration to compute a digit su ...
) is obtained, always produces the number 1. For example, the digital root of 8128 is 1, because , , and . This works with all perfect numbers
with odd prime and, in fact, with numbers of the form
for odd integer (not necessarily prime) .
Owing to their form,
every even perfect number is represented in binary form as ones followed by zeros; for example:
Thus every even perfect number is a
pernicious number.
Every even perfect number is also a
practical number (cf.
Related concepts).
Odd perfect numbers
It is unknown whether any odd perfect numbers exist, though various results have been obtained. In 1496,
Jacques Lefèvre stated that Euclid's rule gives all perfect numbers, thus implying that no odd perfect number exists, but Euler himself stated: "Whether ... there are any odd perfect numbers is a most difficult question". More recently,
Carl Pomerance has presented a
heuristic argument suggesting that indeed no odd perfect number should exist.
[Oddperfect.org](_blank)
All perfect numbers are also
harmonic divisor numbers, and it has been conjectured as well that there are no odd harmonic divisor numbers other than 1. Many of the properties proved about odd perfect numbers also apply to
Descartes numbers, and Pace Nielsen has suggested that sufficient study of those numbers may lead to a proof that no odd perfect numbers exist.
Any odd perfect number ''N'' must satisfy the following conditions:
* ''N'' > 10
1500.
* ''N'' is not divisible by 105.
* ''N'' is of the form ''N'' ≡ 1 (mod 12) or ''N'' ≡ 117 (mod 468) or ''N'' ≡ 81 (mod 324).
* The largest prime factor of ''N'' is greater than 10
8,
and less than
* The second largest prime factor is greater than 10
4,
and is less than