{"id":862,"date":"2010-06-22T11:58:52","date_gmt":"2010-06-22T11:58:52","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2010\/06\/22\/the-surprises-never-eend-the-ulam-spiral-of-primes\/"},"modified":"2010-06-22T11:58:52","modified_gmt":"2010-06-22T11:58:52","slug":"the-surprises-never-eend-the-ulam-spiral-of-primes","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2010\/06\/22\/the-surprises-never-eend-the-ulam-spiral-of-primes\/","title":{"rendered":"The Surprises Never Eend: The Ulam Spiral of Primes"},"content":{"rendered":"<p> One of the things that&#8217;s endlessly fascinating to me about math and<br \/>\nscience is the way that, no matter how much we know, we&#8217;re constantly<br \/>\ndiscovering more things that we <em>don&#8217;t<\/em> know. Even in simple, fundamental<br \/>\nareas, there&#8217;s always a surprise waiting just around the corner.<\/p>\n<p> A great example of this is something called the <em>Ulam spiral<\/em>,<br \/>\nnamed after Stanislaw Ulam, who first noticed it. Take a sheet of graph paper.<br \/>\nPut &#8220;1&#8221; in some square. Then, spiral out from there, putting one number in<br \/>\neach square. Then circle each of the prime numbers. Like the following:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_422.png?resize=142%2C148\" width=\"142\" height=\"148\" alt=\"ulam.png\" \/><\/p>\n<p> If you do that for a while &#8211; and zoom out, so that you can&#8217;t see the numbers,<br \/>\nbut just dots for each circled number, what you&#8217;ll get will look something like<br \/>\nthis:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_423.png?resize=400%2C400\" width=\"400\" height=\"400\" alt=\"ulam200.png\" \/><\/p>\n<p> That&#8217;s the Ulam spiral filling a 200&#215;200 grid. Look at how many diagonal<br \/>\nline segments you get! And look how many diagonal line segments occur along<br \/>\nthe same lines! Why do the prime numbers tend to occur in clusters<br \/>\nalong the diagonals of this spiral? I don&#8217;t have a clue. Nor, to my knowledge,<br \/>\ndoes anyone else! <\/p>\n<p> And it gets even a bit more surprising: you don&#8217;t need to start<br \/>\nthe spiral with one. You can start it with one hundred, or seventeen thousand. If<br \/>\nyou draw the spiral, you&#8217;ll find primes along diagonals.<\/p>\n<p> Intuitions about it are almost certainly wrong. For example, when I first<br \/>\nthought about it, I tried to find a numerical pattern around the diagonals.<br \/>\nThere are lots of patterns. For example, one of the simplest ones is<br \/>\nthat an awful lot of primes occur along the set of lines<br \/>\nf(n) = 4n<sup>2<\/sup>+n+c, for a variety of values of b and c. But what does<br \/>\nthat tell you? Alas, not much. <em>Why<\/em> do so many primes occur along<br \/>\nthose families of lines?<\/p>\n<p> You can make the effect even more prominent by making the spiral<br \/>\na bit more regular. Instead of graph paper, draw an archimedean spiral &#8211; that<br \/>\nis, the classic circular spiral path. Each revolution around the circle, evenly<br \/>\ndistribute the numbers up to the next perfect square. So the first spiral will have 2, 3, 4;<br \/>\nthe next will have 5, 6, 7, 8, 9. And so on. What you&#8217;ll wind up with is<br \/>\ncalled the <em>Sack&#8217;s spiral<\/em>, which looks like this:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_424.png?resize=300%2C300\" width=\"300\" height=\"300\" alt=\"Sacks spiral.png\" \/><\/p>\n<p> This has been cited by some religious folks as being a proof of the<br \/>\nexistence of God. Personally, I think that that&#8217;s silly; my personal<br \/>\nbelief is that even a deity can&#8217;t change the way the numbers work: the<br \/>\nnature of the numbers and how they behave in inescapable. Even a deity who<br \/>\ncould create the universe couldn&#8217;t make 4 a prime number.<\/p>\n<p> Even just working with simple integers, and as simple a concept of<br \/>\nthe prime numbers, there are still surprises waiting for us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the things that&#8217;s endlessly fascinating to me about math and science is the way that, no matter how much we know, we&#8217;re constantly discovering more things that we don&#8217;t know. Even in simple, fundamental areas, there&#8217;s always a surprise waiting just around the corner. A great example of this is something called the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[24,43],"tags":[],"class_list":["post-862","post","type-post","status-publish","format-standard","hentry","category-goodmath","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-dU","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=862"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/862\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=862"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}