Recall that if
n=p1α1p2α2⋯pkαk
where p1<p2<⋯<pk are prime numbers and α1,α2,…,αk are positive integers, then the sum of the positive divisors of n is
σ(n)=i=1∏k(j=0∑αipij)
a. Let n be a square-free perfect number. In this case, n=p1p2⋯pk, for some prime numbers p1<p2<…<pk, and
2p1p2⋯pk=(p1+1)(p2+1)⋯(pk+1)
If p1=2 then p1+1,p2+1,…,pk+1 are all even numbers while p1p2⋯pk is an odd number. We deduce that k=1 and 2p1=p1+1
which is impossible.
If p1=2 then p1+1=3=p2 and if k>2, we have
p3p4⋯pk=(p3+1)(p4+1)⋯(pk+1),
which is impossible since both sides have different parity. Hence k=2 and n=6.
This proves that the only square-free perfect number is 6.
b. Let n be a perfect square. There exist prime numbers p1<p2<…<pk and positive integers α1,α2,…,αk, such that
n=p12α1p22α2⋯pk2αk
Because ∑j=02αipij is an odd number, for i=1,2,…,k, the sum σ(n) of the positive divisors of n is odd while 2n is even. Hence n cannot be a perfect number.