 |
The Collatz Conjecture
Let's write it in the style of the old Basic programming language:
10 Pick any positive integer n.
20 If n is even, divide it by two; if it is odd, multiply it by
three and add one.
30 If n = 1, stop; else go back to step 2.
For the first digits, results are:
|
1
|
1 |
| 2 |
2, 1 |
| 3 |
3, 10, 5, 16, 8, 4, 2, 1 |
| 4 |
4, 2, 1 |
| 5 |
5, 16, 8, 4, 2, 1 |
| 6 |
6, 3, 10, 5, 16, 8, 4, 2, 1 |
That's
the Collatz conjecture, also known as the 3n+1 conjecture, the Ulam
conjecture or the Hailstone sequence, to which names Jeffrey C.
Lagarias, which also discusses more deeply its implications at cecm.sfu.ca,
adds mapping problem, Hasse's algorithm, Kakutani's problem, Syracuse
algorithm, Syracuse problem, and Thwaites conjecture. It was first
stated around 1950, according to some researchers, but John Allen
Paulos, in a special Commentary to ABCNEWS.com says that it was
discovered by Lothar Collatz in 1937, when he was at the University
of Hamburg. Paulos explains that The Collatz conjecture is that
no matter what number you choose, you'll always end up with 4, 2,
1, 4, 2, 1, .... "Sometimes it takes many applications of the
rule to get there; even the small number 27, for example, takes
111 steps before it reaches 1 (see below; the difference of one
step is probably due to taking either 27 or 1 as an occurrence).
Every number that has been tried does eventually return to 1, but
it's never been mathematically proved that every number does".
Well, mathematician Paul Erdös said about the Collatz conjecture:
"Mathematics is not yet ready for such problems". He offered
$500 for its solution. Thwaites (1996) has offered a £1000
reward for resolving the conjecture.
The site pass.maths.org.uk says
that "These are sometimes called 'Hailstone sequences' because
they go up and down just like a hailstone in a cloud before crashing
to Earth - the endless cycle 4, 2, 1, 4, 2, 1. It seems from experiment
that such a sequence will always eventually end in this repeating
cycle 4, 2, 1, 4, 2, 1,... and so on, but some values for N generate
many values before the repeating cycle begins. For example, try
starting with n = 27. See if you can find starting values that generate
even longer sequences". And it puts a slot so you can enter
your chosen number (27, in this case) to be investigated, and the
resulting chain of integers is given in a neat presentation:
Hailstone sequence
The requested sequence contained 112 terms up to and including the
first occurrence of 1.
27, 82, 41, 124, 62, 31, 94, 47, 142, 71, 214, 107, 322, 161, 484,
242, 121, 364, 182, 91, 274, 137, 412, 206, 103, 310, 155, 466,
233, 700, 350, 175, 526, 263, 790, 395, 1186, 593, 1780, 890, 445,
1336, 668, 334, 167, 502, 251, 754, 377, 1132, 566, 283, 850, 425,
1276, 638, 319, 958, 479, 1438, 719, 2158, 1079, 3238, 1619, 4858,
2429, 7288, 3644, 1822, 911, 2734, 1367, 4102, 2051, 6154, 3077,
9232, 4616, 2308, 1154, 577, 1732, 866, 433, 1300, 650, 325, 976,
488, 244, 122, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 40,
20, 10, 5, 16, 8, 4, 2, 1
So asks Lagarias: is the 3x+1 problem intractably hard? He states
that the difficulty of settling the 3x+1 problem seems connected
to the fact that it is a deterministic process that simulates "random"
behavior. We face this dilemma: On the one hand, to the extent that
the problem has structure, we can analyze it - yet it is precisely
this structure that seems to prevent us from proving that it behaves
"randomly". On the other hand, to the extent that the
problem is structureless and "random", we have nothing
to analyze and consequently cannot rigorously prove anything. Of
course there remains the possibility that someone will find some
hidden regularity in the 3x+1 problem that allows some of the conjectures
about it to be settled. "The existing general methods in number
theory and ergodic theory do not seem to touch the 3x+1 problem;
in this sense it seems intractable at present. Indeed all the conjectures
made in this paper seem currently to be out of reach if they are
true; I think there is more chance of disproving those that are
false. If the 3x+1 problem is intractable, why should one bother
to study it? One answer is provided by the following aphorism: 'No
problem is so intractable that something interesting cannot be said
about it'. Study of the 3x+1 problem has uncovered a number of interesting
phenomena; I believe further study of it may be rewarded by the
discovery of other new phenomena. It also serves as a benchmark
to measure the progress of general mathematical theories",
asserts Lagarias.
One of the greatest numbers subjected to the Collatz conjecture
that had its algorithm subjected to computerized calculation was
described by its author in Oliveira e Silva, T. "Maximum Excursion
and Stopping Time Record-Holders for the 3x+1 Problem: Computational
Results". Math. Comput. 68, 371-384, 1999: 3*2^53, which can
also be stated as 2702*10^16, according to http://mathworld.wolfram.com/CollatzProblem.html.
Related news:
";
while ($row = mysql_fetch_array($sql_result2))
{
$news_id = $row["news_id"];
$title = $row["title"];
$url = $row["url"];
$image2 = $row["image2"];
$image_visible2 = $row["image_visible2"];
if(($colcounter=='1') && ($image_visible2=='Yes'))
{
echo "
|
|
";
}
if(($colcounter=='2') && ($image_visible2=='Yes'))
{
echo "
|
";
}
if(($colcounter=='3') && ($image_visible2=='Yes'))
{
echo "
|
";
}
$colcounter++;
}
echo "
";
//Create the SQL statement
$sql3 = "SELECT news_id, title, url, image2, image_visible2 from $NewsTable WHERE visible='$visible' AND publishing_time<'$nowtime' AND (description LIKE '%$keyword1%' OR description LIKE '%$keyword2%' OR description LIKE '%$keyword3%' OR description LIKE '%$keyword4%' OR description LIKE '%$keyword5%') AND image_visible2='$image_visible2_2' ORDER BY news_id DESC LIMIT 1,3";
//Execute the SQL statement
$sql_result3 = mysql_query($sql3, $link) or die ("Couldn't execute query: " .mysql_error() );
$colcounter = '4';
while ($row = mysql_fetch_array($sql_result3))
{
$news_id = $row["news_id"];
$title = $row["title"];
$url = $row["url"];
$image2 = $row["image2"];
$image_visible2 = $row["image_visible2"];
if(($colcounter=='4') && ($image_visible2=='Yes'))
{
echo "
|
|
";
}
if(($colcounter=='5') && ($image_visible2=='Yes'))
{
echo "
|
";
}
if(($colcounter=='6') && ($image_visible2=='Yes'))
{
echo "
|
";
}
$colcounter++;
}
echo "
";
while ($row = mysql_fetch_array($sql_result))
{
$news_id = $row["news_id"];
$title = $row["title"];
$url = $row["url"];
echo "- $title
";
}
echo " ";
//Close connection
mysql_close($link);
?>
|
 |