The largest currently known perfect number is an even number with 1 4 8 , 4 1 4 , 5 6 1 binary digits. Let a be the number of 1's in its binary representation, and let b be the number of 0's. What is a − b ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
However the factors have respectively (p-1) zeros and p ones
Log in to reply
The formula for a perfect number is 2 k ( 2 k + 1 − 1 ) where k + 1 is prime.
In its binary expansion, 2 k + 1 − 1 is a string of ' 1 's of length k + 1 .
2 k − 1 is a string of ' 0 's of length k at the back of the string of ' 1 's.
Hence a − b = k + 1 − k = 1
Problem Loading...
Note Loading...
Set Loading...
We will prove a more general result about the binary form of all even perfect numbers.
We'll start with the Euler-Euclid result that all even perfect numbers are of the form
2 p − 1 ( 2 p − 1 )
(For this to yield a perfect number p must be prime and the second factor must also be prime, but these details are not needed to solve the problem.)
Writing this product out in binary gives
( 1 0 0 … 0 0 ) ( 1 1 1 … 1 1 1 )
where the first factor has ( p − 1 ) zeros and the second factor consists of ( p ) ones. Just as in our home base of ten, a multiplication like this is easy - we just append the zeros from the first factor to the second factor to get
1 1 1 … 1 1 1 0 0 … 0 0
and so
a − b = ( p ) − ( p − 1 ) = 1