{"id":60,"date":"2018-08-15T19:39:45","date_gmt":"2018-08-15T18:39:45","guid":{"rendered":"http:\/\/webdesignhighlands.co.uk\/gr-wp\/?p=60"},"modified":"2018-08-15T19:57:15","modified_gmt":"2018-08-15T18:57:15","slug":"the-pisbn-project","status":"publish","type":"post","link":"https:\/\/thegeoff.net\/gr-wp\/the-pisbn-project\/","title":{"rendered":"The PiSBN Project"},"content":{"rendered":"<p>In 2010 I was working in a bookshop and teaching myself the web scripting language PHP. A good way to learn a language is to find problems you can solve with it, and as I had recently been working with ISBNs, the identifying numbers given to printed books, I decided to write a program to search Pi for them.<\/p>\n<p><a href=\"http:\/\/artificialphilosophy.blogspot.com\/2010\/11\/pisbn-project.html\">I found the first three books in Pi<\/a>. Then, a few years later, it got picked up by a few popular Twitter accounts and went viral, including a write-up in the science page of <a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;sl=de&amp;u=http:\/\/www.spiegel.de\/wissenschaft\/mensch\/mathematik-software-findet-buchnummern-in-kreiszahl-pi-a-1013772.html&amp;prev=search\" target=\"_blank\" rel=\"noopener\">Der Spiegel<\/a>.<\/p>\n<p>What&#8217;s the point? There isn&#8217;t, other than a programming exercise and the pleasure of finding things out. But it does raise a few interesting things:<\/p>\n<h4>Is Pi &#8220;normal&#8221;?<\/h4>\n<p>Normal in this sense means &#8220;does it have the same numbers of each digit, 0-9?&#8221;<br \/>\nIf Pi <em>is<\/em> normal then you&#8217;d expect every possible number sequence to appear in it. If it&#8217;s not (say, if you get to a certain point and then there&#8217;s never a 9 again) then it won&#8217;t. It&#8217;s generally thought that Pi <em>is<\/em> normal, but it&#8217;s still an open question in mathematics.<\/p>\n<h4>How does it fare with the old 10 digit ISBN?<\/h4>\n<p>As you&#8217;d expect, there&#8217;s about a thousand times more ISBNs if you search for the 10 digit version, as it&#8217;s a shorter string and more likely to appear in any random set of digits. Some ISBN-10s end in an X, which obviously doesn&#8217;t appear in Pi, but that can be ignored, we&#8217;re just messing about here. <a href=\"http:\/\/lisletters.fiander.info\/2015\/01\/finding-isbns-in-the-digits-of.html\">David J Fianders went to the effort of tracking down ISBN-10s<\/a>.<\/p>\n<h4>It&#8217;s now out of date!<\/h4>\n<p>ISBNs are constantly being added for new publications, so it may well be that &#8220;my&#8221; first three books have been superseded. Feel free to try searching for new ones!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In 2010 I was working in a bookshop and teaching myself the web scripting language PHP. A good way to learn a language is to find problems you can solve with it, and as I had recently been working with ISBNs, the identifying numbers given to printed books, I decided to write a program to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"_links":{"self":[{"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/posts\/60"}],"collection":[{"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":3,"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/posts\/60\/revisions\/64"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thegeoff.net\/gr-wp\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}