{"id":794,"date":"2011-04-01T22:02:11","date_gmt":"2011-04-02T05:02:11","guid":{"rendered":"http:\/\/www.elbeno.com\/blog\/?p=794"},"modified":"2011-04-01T22:02:11","modified_gmt":"2011-04-02T05:02:11","slug":"maths-is-fun","status":"publish","type":"post","link":"https:\/\/www.elbeno.com\/blog\/?p=794","title":{"rendered":"Maths is fun"},"content":{"rendered":"<p>The other week, a colleague walked into my office and posed the following problem to me:<\/p>\n<p>For all n where n is prime and n > 3, show that n&sup2; &#8211; 1 is divisible by 24.<br \/>\nExamples: 5&sup2; &#8211; 1 = 24; 7&sup2; -1 = 48; 11&sup2; &#8211; 1 = 120.<\/p>\n<p>(If you&#8217;re interested, give it a go before looking at the solution. It doesn&#8217;t require any advanced Maths.)<\/p>\n<p>First, what does it mean to be divisible by 24? Well, it means being divisible by 2, 2, 2, and 3 (the prime factorization of 24). So we have to find a factor of 3, and 3 factors of 2.<\/p>\n<p>As any highschool mathematician knows, n&sup2; &#8211; 1 = (n + 1)(n &#8211; 1).<\/p>\n<p>Since n is prime and n > 3, it must be odd. Which means that both (n + 1) and (n &#8211; 1) must be even (divisible by 2). Moreover, since they are consecutive multiples of 2, one of them must be divisible by 4, and the other by 2.<\/p>\n<p>We also know that (n &#8211; 1), n, (n + 1) are three consecutive numbers, so one of them must be divisible by 3. Since n is prime and n > 3, it cannot be divisible by 3. So either (n &#8211; 1) or (n + 1) must be divisible by 3.<\/p>\n<p>Which means that (n + 1)(n &#8211; 1) is divisible by 24. QED.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The other week, a colleague walked into my office and posed the following problem to me: For all n where n is prime and n > 3, show that n&sup2; &#8211; 1 is divisible by 24. Examples: 5&sup2; &#8211; 1 = 24; 7&sup2; -1 = 48; 11&sup2; &#8211; 1 =&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-794","post","type-post","status-publish","format-standard","hentry","category-maths"],"_links":{"self":[{"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=794"}],"version-history":[{"count":1,"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/794\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/794\/revisions\/795"}],"wp:attachment":[{"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elbeno.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}