{"id":245,"date":"2006-04-12T21:45:05","date_gmt":"2006-04-13T04:45:05","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/?p=245"},"modified":"2006-04-12T21:47:06","modified_gmt":"2006-04-13T04:47:06","slug":"2-more-pickover-puzzles","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/2-more-pickover-puzzles\/","title":{"rendered":"2 More Pickover Puzzles"},"content":{"rendered":"<p>Every now and then Pickover tosses out an extremely obvious puzzle. Given the following sequence of numbers:<\/p>\n<pre>\r\n  1, 27, 125, 343, 729, 1331, 2197, 3375, x\r\n<\/pre>\n<p>what is x? Now, when I say &#8220;obvious&#8221; in this context I should clarify that the solution is relatively straightforward to the math-trained mind. Typically the solutions to such numerical puzzles are along the lines of &#8220;The latitude coordinates of the original U.S. colonies multiplied by the longitude coordinates of the same, then add 3.&#8221;<\/p>\n<p>Anyway, that was today&#8217;s puzzle. The puzzle for April 4 was to find the numbers, A and B, that satisfy the following equation:<\/p>\n<pre>\r\n  A<sup>B<\/sup> + B<sup>A<\/sup> = A7\r\n<\/pre>\n<p>My first impulse was there should be some way to solve for A and B, maybe involving logarithms or something, until I noticed that there were 2 variables and only 1 equation which, per my math classes of long ago, proves difficult. So, a brute force program it was. Surprisingly, there is only 1 solution.<\/p>\n<p><em>See [more] for the answers, I mean, if you really care.<\/em><\/p>\n<p>I have a stack of puzzles to work through that should be brute-force-able using a combination of permutation logic and graph techniques. Eventually, I imagine I will be able to assemble a program toolkit to rip through an entire year of these puzzles automatically.<\/p>\n<p><!--more--><\/p>\n<p>First puzzle: The numbers represent odd numbers, beginning with 1, raised to the 3rd power. Thus, x = 17<sup>3<\/sup> = 4913.<\/p>\n<p>Second puzzle: 5<sup>2<\/sup> + 2<sup>5<\/sup> = 25 + 32 = 57, as found by this C code:<\/p>\n<pre>\r\n#include <font COLOR=BLUE SIZE=+1>&lt;<\/font>stdio<font COLOR=BLUE SIZE=+1><b>.<\/b><\/font>h<font COLOR=BLUE SIZE=+1>&gt;<\/font>\r\n#include <font COLOR=BLUE SIZE=+1>&lt;<\/font>math<font COLOR=BLUE SIZE=+1><b>.<\/b><\/font>h<font COLOR=BLUE SIZE=+1>&gt;<\/font>\r\n\r\n<font COLOR=RED><b>int<\/b><\/font> main <font COLOR=BLUE SIZE=+1><b>(<\/b><\/font><font COLOR=RED><b>int<\/b><\/font> argc<font COLOR=BLUE SIZE=+1><b>,<\/b><\/font> <font COLOR=RED><b>char<\/b><\/font> <font COLOR=BLUE SIZE=+1>*<\/font>argv<font COLOR=BLUE SIZE=+1><b>[<\/b><\/font><font COLOR=BLUE SIZE=+1><b>]<\/b><\/font><font COLOR=BLUE SIZE=+1><b>)<\/b><\/font>\r\n<font COLOR=BLUE SIZE=+1><b>{<\/b><\/font>\r\n    <font COLOR=RED><b>int<\/b><\/font> A<font COLOR=BLUE SIZE=+1><b>,<\/b><\/font> B<font COLOR=BLUE SIZE=+1><b>;<\/b><\/font>\r\n\r\n    <font COLOR=RED><b>for<\/b><\/font> <font COLOR=BLUE SIZE=+1><b>(<\/b><\/font>A <font COLOR=BLUE SIZE=+1>=<\/font> <font COLOR=BROWN>0<\/font><font COLOR=BLUE SIZE=+1><b>;<\/b><\/font> A <font COLOR=BLUE SIZE=+1>&lt;<\/font><font COLOR=BLUE SIZE=+1>=<\/font> <font COLOR=BROWN>9<\/font><font COLOR=BLUE SIZE=+1><b>;<\/b><\/font> A<font COLOR=BLUE SIZE=+1><\/font><font COLOR=BLUE SIZE=+1>+<\/font><font COLOR=BLUE SIZE=+1>+<\/font><font COLOR=BLUE SIZE=+1><b>)<\/b><\/font> <font COLOR=BLUE SIZE=+1><b>{<\/b><\/font>\r\n        <font COLOR=RED><b>for<\/b><\/font> <font COLOR=BLUE SIZE=+1><b>(<\/b><\/font>B <font COLOR=BLUE SIZE=+1>=<\/font> <font COLOR=BROWN>0<\/font><font COLOR=BLUE SIZE=+1><b>;<\/b><\/font> B <font COLOR=BLUE SIZE=+1>&lt;<\/font><font COLOR=BLUE SIZE=+1>=<\/font><font COLOR=BROWN>9<\/font><font COLOR=BLUE SIZE=+1><b>;<\/b><\/font> B<font COLOR=BLUE SIZE=+1><\/font><font COLOR=BLUE SIZE=+1>+<\/font><font COLOR=BLUE SIZE=+1>+<\/font><font COLOR=BLUE SIZE=+1><b>)<\/b><\/font> <font COLOR=BLUE SIZE=+1><b>{<\/b><\/font>\r\n            <font COLOR=RED><b>if<\/b><\/font> <font COLOR=BLUE SIZE=+1><b>(<\/b><\/font><font COLOR=BLUE SIZE=+1><b>(<\/b><\/font><font COLOR=RED><b>int<\/b><\/font><font COLOR=BLUE SIZE=+1><b>)<\/b><\/font>pow<font COLOR=BLUE SIZE=+1><b>(<\/b><\/font>A<font COLOR=BLUE SIZE=+1><b>,<\/b><\/font> B<font COLOR=BLUE SIZE=+1><b>)<\/b><\/font> <font COLOR=BLUE SIZE=+1>+<\/font> <font COLOR=BLUE SIZE=+1><b>(<\/b><\/font><font COLOR=RED><b>int<\/b><\/font><font COLOR=BLUE SIZE=+1><b>)<\/b><\/font>pow<font COLOR=BLUE SIZE=+1><b>(<\/b><\/font>B<font COLOR=BLUE SIZE=+1><b>,<\/b><\/font> A<font COLOR=BLUE SIZE=+1><b>)<\/b><\/font> <font COLOR=BLUE SIZE=+1>=<\/font><font COLOR=BLUE SIZE=+1>=<\/font> <font COLOR=BROWN>10<\/font> <font COLOR=BLUE SIZE=+1>*<\/font> A <font COLOR=BLUE SIZE=+1>+<\/font> <font COLOR=BROWN>7<\/font><font COLOR=BLUE SIZE=+1><b>)<\/b><\/font>\r\n                printf <font COLOR=BLUE SIZE=+1><b>(<\/b><\/font><font COLOR=PURPLE>\"solution: %d^%d + %d^%d = %d7\\n\"<\/font><font COLOR=BLUE SIZE=+1><b>,<\/b><\/font>\r\n                    A<font COLOR=BLUE SIZE=+1><b>,<\/b><\/font> B<font COLOR=BLUE SIZE=+1><b>,<\/b><\/font> B<font COLOR=BLUE SIZE=+1><b>,<\/b><\/font> A<font COLOR=BLUE SIZE=+1><b>,<\/b><\/font> A<font COLOR=BLUE SIZE=+1><b>)<\/b><\/font><font COLOR=BLUE SIZE=+1><b>;<\/b><\/font>\r\n        <font COLOR=BLUE SIZE=+1><b>}<\/b><\/font>\r\n    <font COLOR=BLUE SIZE=+1><b>}<\/b><\/font>\r\n\r\n    <font COLOR=RED><b>return<\/b><\/font> <font COLOR=BROWN>0<\/font><font COLOR=BLUE SIZE=+1><b>;<\/b><\/font>\r\n<font COLOR=BLUE SIZE=+1><b>}<\/b><\/font>\r\n<\/pre>\n<p><em>Code colorized by the <a href=\"http:\/\/www.chami.com\/colorizer\/\">Code Colorizer<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One easy, one brute-force&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-pickover-puzzles"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":0,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}