Recap and Summary
Last class period we introduced the
function, which takes a given integer n and adds up the divisors of that number. In today's class, we discussed perfect numbers: those numbers n so that
. We gave a characterization of even perfect numbers and talked about properties that odd perfect numbers have — even though we don't know whether odd perfect numbers actually exist. We then briefly mentioned amicable pairs.
Numeric Perfection
Last class period we saw that
and
. We said that these numbers n have the additional property that the sum of their proper divisors (i.e., those divisors smaller than n) is n. This leads us to the main topic of the day
Definition: An integer n is called perfect if
. Equivalently, a number n is perfect if the sum of the proper divisors of n is n.
Example: Some perfect numbers
In addition to 6 and 28, here are the next perfect numbers:
. We noticed in class that these numbers have particular factorizations

We noticed a few things about these numbers in class. First, these numbers all seemed to factor as some power of two times some other odd prime. This odd prime number also seemed to be one less than a power of 2, and indeed the power of 2 which appeared in the factorization of n seemed to determine the power of 2 which was just ahead of the odd prime. In summary, we said that it seemed that the perfect numbers we were seeing took the form
(2)
where
was prime (and hence p itself was prime; see Exercise 26 in Chapter 1 of Strayer). It turns out we're not the first people to recognize this.
Theorem: If
where
is prime, then n is perfect.
Proof: To see that this is true, we just compute
:

where the last equality follows because
. Now we can compute the value of
on each of the components individually; for the former we can use our formula for
on a prime power, and for the latter we can use the fact that
is prime to conclude that
:

Notice that this final expression is just
, and hence we've proven that n is perfect.
Hence this theorem says whenever we find a prime of the form
, we can use this to produce a new even perfect number. Since it was recently shown that
is a prime number, this means that

is a perfect number. This number has around 26 million digits!
Is This It?
Now that we've shown that numbers of a particular form are perfect, it is natural to ask if there are numbers not of this form which are perfect. A partial answer to this question was provided by Euler.
Theorem: If n is even and perfect, then
, where
is prime.
Notice in particular this means that we have a correspondence between even perfect numbers and Mersenne primes: finding one gives rise to another.
Proof: Suppose that n is an even perfect number, and factor n as
; we assume that this factorization leaves
. Our goal will be to show that
, and that b is prime.
Now let's compute
in two ways. First, we'll use the factorization of n to determine a factorization of
:

On the other hand, we know that n is perfect, so that
. Hence we have

Putting these two equations together leaves
(8)
Our goal will be to use this equation to tell us that b has the desired form.
To do this, notice that
divides the left hand side, so hence we also have
. Since
is relatively prime to
, this means that we must have
. This means there is an integer c so that

Notice that if we substitute this expression back in for
in Equation (8) and cancel out the
term common to both sides, then we get the equation

We now claim that — in fact —
. To do this, suppose that $c>1$. Then Equation (10) tells us that c is a divisor of b which is distinct from 1 and b, and hence we get

On the other hand, we know from Equation (9) that
(12)
where the last equality comes from Equation (10). Together these equations give an obvious contradiction, and hence we conclude that
.
Now that we know
, we can substitute this back into Equations (9) and (10) to find

Hence we have
, so that we know b is prime.
Believe it or not, we've now established everything we set out to prove. 
Odd Perfects
Since we have such a nice description of even perfect numbers, it's natural to wonder if we've captured all the perfect numbers out there. In other words, we'd like to know if there are odd perfect numbers. It turns out that no one yet knows whether odd perfect numbers exist. There's been a lot of work done to find these numbers, and a surprising amount about odd perfect numbers is known. That is to say, if an odd perfect number exists, it has to satisfy a number of properties that one might not expect a priori. For instance, we proved the following
Theorem: If n is an odd perfect number, then
where p is an odd prime that is congruent to 1 modulo 4, a is an integer which is congruent to 1 modulo 4, and m is an integer relatively prime to p.
Proof: Since n is odd we know that
. Either way, we have
, and hence we know that

Now if
then we know

We argued that none of these factors
could be congruent to 0 modulo 4, since this would in turn imply that
. We also said that there can't be more than one term could satisfy
, since this would also force
. Finally, we said that there has to be at least one term which does satisfy
, since otherwise we'd be taking a product of terms which are all congruent to 1 or 3 modulo 4 (and hence their product couldn't be congruent to 2 modulo 4). Hence there is a unique prime p which has
with
and
.
We need to argue that
. First, suppose that
. Then we get

Now regardless of what a is, a sum of this form is either 1 or 0 modulo 4 (depending on whether there are an odd or an even number of terms in the sum). Either way, though, the sum is never 2 mod 4, which is what it should be. hence
, and so we have
. Now that we know
, then let's look at
again:

Hence we have
, and so we conclude
mod 4.
Finally, we argue that when we write
, then
. For this, notice that
must be an odd number — if it were even, then we'd have
, which we've already proven is false. But the only way for
to be odd is if s is a perfect square. Hence
, and so n takes the desired form. 
As an exercise, see if you can see which detail I've brushed over in this proof. (Hint: It's near the end.)
Amicable Numbers
To conclude this section, I gave the following
Definition: Two integers n,m form an amicable pair if
\sigma(n) = \sigma(m) = m+n.
Notice that if n and m form an amicable pair, then
- the sum of the proper divisors of n is equal to m and
- the sum of the proper divisors of m is equal to n.
You'll get a chance in the homework to play with an amicable pair.






where
where p is an odd prime that is congruent to 1 modulo 4, a is an integer which is congruent to 1 modulo 4, and m is an integer relatively prime to p.