<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nathaniel Johnston &#187; Open problems</title>
	<atom:link href="http://www.njohnston.ca/tag/open-problems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.njohnston.ca</link>
	<description>A blog of recreational math and quantum information theory</description>
	<lastBuildDate>Thu, 15 Dec 2011 16:11:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>The Collatz Conjecture as a Fractal</title>
		<link>http://www.njohnston.ca/2009/06/the-collatz-conjecture-as-a-fractal/</link>
		<comments>http://www.njohnston.ca/2009/06/the-collatz-conjecture-as-a-fractal/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 04:00:21 +0000</pubDate>
		<dc:creator>Nathaniel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Open problems]]></category>

		<guid isPermaLink="false">http://www.nathanieljohnston.com/?p=363</guid>
		<description><![CDATA[The Collatz conjecture (or hailstone problem or 3n+1 problem) is a problem that is so simple to state that grade-schoolers can understand it, yet has been approached from an innumerable variety of angles and has resisted mathematicians for decades now. The problem is as follows: Pick a positive integer. If it&#8217;s even then divide it by [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://en.wikipedia.org/wiki/Collatz_conjecture">Collatz conjecture</a> (or hailstone problem or 3n+1 problem) is a problem that is so simple to state that grade-schoolers can understand it, yet has been approached from an innumerable variety of angles and has resisted mathematicians for decades now. The problem is as follows:</p>
<p style="padding-left: 30px;">Pick a positive integer. If it&#8217;s even then divide it by 2. If it&#8217;s odd, multiply it by 3 and add 1. Now apply this procedure to the result. Repeat. Will you always eventually hit 1 if you continue in this way?</p>
<p>For example, if you start with 11 then you multiply by 3 and add 1 to get 34, divide by 2 to get 17, and continuing similarly gets you the rest of the sequence: 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1. Before you go trying to find a counterexample to the conjecture, know that it has been verified by computer search for all starting numbers up to 20 × 2<sup>58</sup> ≈ 5.764 × 10<sup>18</sup>. The way that we are going to look at this problem today is the &#8220;pretty&#8221; approach; we&#8217;re going to extend the Collatz conjecture over the complex plane and look at the fractal defined by its iteration.</p>
<p>Define the <em>Collatz function</em> f(x) as follows:</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-364" title="Collatz function" src="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/math.gif" alt="Collatz function" width="297" height="22" /></p>
<p>Take a moment or two to convinve yourself that if x is a positive integer, then f(x) is the next number after x in its Collatz sequence (e.g., f(11) = 34, f(34) = 17, and so on). To extend this function to the real numbers, simply recall that (-1)<sup>x</sup> = cos(πx). In fact, this gets us an extension to the complex numbers at the same time, and after some simplification we arrive at:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto; border: 0px initial initial;" title="Complex Collatz function" src="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/math1.gif" alt="Complex Collatz function" width="269" height="22" /></p>
<p>Well hey, that&#8217;s a <a href="http://en.wikipedia.org/wiki/Holomorphic_function">holomorphic function</a> so it has a notion of a <a href="http://en.wikipedia.org/wiki/Julia_set">Julia set</a> and we can study the fractal that its iterates induce. Indeed, we can obtain the following image pretty easily with standard fractal-generation software:</p>
<div id="attachment_367" class="wp-caption aligncenter" style="width: 624px"><a href="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/collatz.png"><img class="size-large wp-image-367 " title="Collatz fractal" src="http://www.nathanieljohnston.com/wp-content/uploads/2009/06/collatz-1024x480.png" alt="The Collatz fractal" width="614" height="288" /></a><p class="wp-caption-text">The Collatz f(z) fractal</p></div>
<p>The fractal is located on the complex plane, and the horizontal line through the middle of the image is the real line. Black regions are regions in which the orbit of that number is bounded, while other colours indicate that the orbit of that number is unbounded (notice the large region of bounded numbers around z = 0). The big &#8220;spikes&#8221; that occur along the real line are, as we would expect, located at the integers (the image above is wide enough that you can see the spikes at z = -2, -1, 1, and 2).  Instead of proceeding with the Collatz function as I have defined it, I&#8217;m going to introduce a modified Collatz function g(z) as follows:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto; border: 0px initial initial;" title="Modified Collatz function" src="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/img2.gif" alt="Modified Collatz function" width="533" height="24" /></p>
<p>Observe that this function, like f(z), always maps natural numbers to terms that appear later in their Collatz sequence (e.g., g(11) = 17, g(17) = 13). The benefit of this function is that it has the additional property that g(1) = 1. That is, 1 is a fixed point of g(z), whereas it is part of a period-3 cycle of f(z). The fractal induced by g(z) is:</p>
<div id="attachment_402" class="wp-caption aligncenter" style="width: 624px"><a href="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/center.png"><img class="size-large wp-image-402  " title="Collatz g(z) fractal" src="http://www.nathanieljohnston.com/wp-content/uploads/2009/06/center-1024x480.png" alt="Collatz g(z) fractal" width="614" height="288" /></a><p class="wp-caption-text">The Collatz g(z) fractal</p></div>
<div id="attachment_403" class="wp-caption alignright" style="width: 156px"><a href="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/1.png"><img class="size-full wp-image-403   " title="Close-up of the g(z) fractal at z = 1" src="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/1.png" alt="Close-up of the g(z) fractal at z = 1" width="146" height="230" /></a><p class="wp-caption-text">Close-up of the g(z) fractal at z = 1</p></div>
<p>I originally moved to using g(z) instead of f(z) because the plot of the f(z) fractal from earlier indicated to me that there may be a ball of black (i.e., boundedness) of non-zero radius around each of the integers, but proving this for f(z) seemed to be quite difficult (as we would expect, since it would basically imply half of the Collatz conjecture). Somewhat strangely, even though there appear to be balls around the integers in the fractal induced by f(z), these balls vanish in the fractal induced by g(z). The image to the right is a close-up of the above fractal (the point of convergence is z = 1).</p>
<p>Nonetheless, the real line still seems to behave reasonably nicely under the action of g(z); it&#8217;s not difficult to prove that the fractal contains the real line segment [0,N] for some large number N that is similar in magnitude to the least M such that the conjecture is true for all n ≤ M (known to be at least 5×10<sup>18</sup> or so, as mentioned earlier). However, many (non-natural number) points in that interval do not converge to 1.</p>
<p style="text-align: left;">So what now? If the Collatz conjecture is true, then z = 1 is the unique natural number fixed point of g(z), yet there seem to be points arbitrarily close to z = 1 that don&#8217;t even converge under iteration of g(z). Why are there smaller spikes between the integers in both of these fractals, and where are the spikes centered? Does the restriction of the Collatz function to the numbers at the center of those spikes have any simple interpretation? Who knows, I&#8217;ll explore some more in the future. Until then, enjoy some pretty pictures.</p>
<div id="attachment_405" class="wp-caption alignleft" style="width: 310px"><a href="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/4.png"><img class="size-medium wp-image-405" title="g(z) fractal at z = 4" src="http://www.nathanieljohnston.com/wp-content/uploads/2009/06/4-300x140.png" alt="g(z) fractal at z = 4" width="300" height="140" /></a><p class="wp-caption-text">g(z) fractal at z = 4</p></div>
<div id="attachment_406" class="wp-caption alignleft" style="width: 310px"><a href="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/8.png"><img class="size-medium wp-image-406" title="g(z) fractal at z = 8" src="http://www.nathanieljohnston.com/wp-content/uploads/2009/06/8-300x140.png" alt="g(z) fractal at z = 8" width="300" height="140" /></a><p class="wp-caption-text">g(z) fractal at z = 8</p></div>
<div id="attachment_408" class="wp-caption alignleft" style="width: 310px"><a href="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/16.png"><img class="size-medium wp-image-408" title="g(z) fractal at z = 16" src="http://www.nathanieljohnston.com/wp-content/uploads/2009/06/16-300x140.png" alt="g(z) fractal at z = 16" width="300" height="140" /></a><p class="wp-caption-text">g(z) fractal at z = 16</p></div>
<div id="attachment_412" class="wp-caption alignleft" style="width: 310px"><a href="http://njohns01home.webfactional.com/wp-content/uploads/2009/06/82.png"><img class="size-medium wp-image-412" title="g(z) fractal at z = -8" src="http://www.nathanieljohnston.com/wp-content/uploads/2009/06/82-300x140.png" alt="g(z) fractal at z = -8" width="300" height="140" /></a><p class="wp-caption-text">g(z) fractal at z = -8</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.njohnston.ca/2009/06/the-collatz-conjecture-as-a-fractal/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

