Dreaming of The Perfect Number
Dreaming of The Perfect Number
----->
----->
----->
----->
----->
----->
23
47
1631
64127
40968191
65536131071
2^1 . 3
2^2 . 7
2^4 . 31
2^6 . 127
2^12 . 8191
2^16 . 131071
_____________________________________________________________________
I can see a pattern here:
2^n , 2^(n+1) -1
2^2 , 2^3 -1
4 , 7
4 times 7 equals 28 so does (2^n)(2^(n+1) -1) equal a perfect number?
2^3 , 2^4 -1
8 , 15
8 times 15 equals 120 but 120 is an abundant number and so it is not
perfect. This is because 15 is not a prime number.
When 2^(n+1) -1 is not a prime number then (2^n)(2^(n+1) -1) is not
a perfect number, but when 2^(n+1) -1 is a prime number then
(2^n)(2^(n+1) -1) is a perfect number.
The above is only true for the small sample of perfect numbers that I
have investigated. Inductive reasoning is not a proof, but it makes a
strong argument.
I am sure that these are all well known facts that I have found here
but I worked it out for myself, with a little help from my friends.
_____________________________________________________________________
Below is a program to find perfect numbers:
_____________________________________________________________________
<!DOCTYPE HTML PUBLIC " - //W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>A for loop</title>
</head>
<body>
<script type="text/javascript" language="javascript">
u=1;
v=34;