{"id":1858,"date":"2015-03-30T13:40:22","date_gmt":"2015-03-30T13:40:22","guid":{"rendered":"http:\/\/www.dyalog.com\/blog\/?p=1858"},"modified":"2015-03-30T13:42:26","modified_gmt":"2015-03-30T13:42:26","slug":"unforgettable-numbers","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2015\/03\/unforgettable-numbers\/","title":{"rendered":"Unforgettable Numbers"},"content":{"rendered":"<p>Professor Kip Murray <a href=\"http:\/\/www.jsoftware.com\/pipermail\/programming\/2009-August\/016051.html\" target=\"_blank\">asked on the J Forum<\/a> for the &#8220;unforgettable&#8221; times seen on a 24-hour digital clock.<\/p>\n<p>The problem is that <em>every<\/em> number has something notable about it, so that each number is &#8220;unforgettable&#8221; and consequently it&#8217;s hard to remember any single one of them.<\/p>\n<p><code class=\"language-apl\">  0000    <\/code> all zeros<br \/>\n<code class=\"language-apl\">  0001    <\/code> first counting number<br \/>\n<code class=\"language-apl\">  0002    <\/code> first prime number<br \/>\n<code class=\"language-apl\">  0003    <\/code> first odd prime number<br \/>\n<code class=\"language-apl\">  0004    <\/code> first composite number<br \/>\n<code class=\"language-apl\">  ...    <\/code><\/p>\n<pre><code class=\"language-apl\">      \u2395rl\u21907*5 \u22c4 24 60\u22a4\u00af1+?\u00d7\/24 60\r\n6 59<\/code><\/pre>\n<p><code class=\"language-apl\">  0659    <\/code> the time I wake up if the alarm was set at 0700 \u263a<\/p>\n<p>You may have heard of the following story about Hardy and Ramanujan. One day Hardy took a taxi to visit Ramanujan. On arriving, Hardy told Ramanujan that the taxi had the thoroughly unremarkable 4-digit number <code class=\"language-apl\">n<\/code> on its licence plate. Ramanujan immediately remarked that <code class=\"language-apl\">n<\/code> is the first number that &#8230; . I forget what <code class=\"language-apl\">n<\/code> or the property was, something like <code class=\"language-apl\">n<\/code> is the first number that can be written as the sum of two perfect cubes in two different ways, something typically Ramanujanian.<\/p>\n<p>Yes, that was it:<\/p>\n<pre><code class=\"language-apl\">      c\u21903*\u2368\u2373200           \u235d cubes of numbers 1..200\r\n      t\u2190(\u2218.\u2264\u2368\u2373\u2262c) \u00d7 \u2218.+\u2368c  \r\n           \u235d upper triangle of the addition table of these cubes\r\n\r\n      e\u2190(,t){\u237a\u2375}\u2338,\u2373\u2374t     \u235d unique sums and their indices\r\n      e\u2190(2=\u2262\u00a8e[;2])\u233fe     \u235d sums that derive two different ways\r\n      e\r\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\r\n\u25021729   \u2502\u250c\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2510      \u2502\r\n\u2502       \u2502\u25021 12\u25029 10\u2502      \u2502\r\n\u2502       \u2502\u2514\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2518      \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u25021092728\u2502\u250c\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2510    \u2502\r\n\u2502       \u2502\u25021 103\u250264 94\u2502    \u2502\r\n\u2502       \u2502\u2514\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2518    \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n     ...\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u25025472152\u2502\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\u2502\r\n\u2502       \u2502\u2502102 164\u2502128 150\u2502\u2502\r\n\u2502       \u2502\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\r\n\r\n      e\u2337\u2368(\u22a2\u2373\u230a\/)e[;1]      \u235d the row with the smallest sum\r\n\u250c\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\r\n\u25021729\u2502\u250c\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2510\u2502\r\n\u2502    \u2502\u25021 12\u25029 10\u2502\u2502\r\n\u2502    \u2502\u2514\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2518\u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\r\n      +\/ 1 12 * 3         \u235d check the sums\r\n1729\r\n      +\/ 9 10 * 3\r\n1729\r\n<\/code><\/pre>\n<p>Now that I have worked out the number I can find <a href=\"http:\/\/en.wikipedia.org\/wiki\/1729_%28number%29\" target=\"_blank\">the story<\/a> on the net. On hearing the story, J.E. Littlewood remarked that &#8220;every positive integer is one of Ramanujan&#8217;s personal friends&#8221;.<\/p>\n<p>P.S. In my youth, when I needed to remember a (5-digit) number for a time, I computed its largest prime factor by mental calculation. Try it and you&#8217;ll see why it works.<\/p>\n<p><em>Translated and updated from a <a href=\"http:\/\/www.jsoftware.com\/jwiki\/Essays\/Unforgettable%20Numbers\" target=\"_blank\">J Wiki essay<\/a> which first appeared on 2009-08-22.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Professor Kip Murray asked on the J Forum for the &#8220;unforgettable&#8221; times seen on a 24-hour digital clock. The problem is that every number has something notable about it, so that each number is &#8220;unforgettable&#8221; and consequently it&#8217;s hard to &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2015\/03\/unforgettable-numbers\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1858","post","type-post","status-publish","format-standard","hentry","category-musings"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/1858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=1858"}],"version-history":[{"count":5,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/1858\/revisions"}],"predecessor-version":[{"id":2402,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/1858\/revisions\/2402"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=1858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=1858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=1858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}