## IntroductionIn my previous birth I aspired to be a mathematician (but in a previous.previous birth, I wanted to be an artist... that is a different story. And in previous.previous.previous...) Of many 'secret formulas' that I found at that time, one simple and beautiful one continues to make me smile. Having seen enough rediscoveries first hand, I share this more for the joy. But if you do find in some place that they have posted some million dollar prize for this, do alert me (I'll give you a cut). Now a teaser... 1 + 4 + 6 + 7 + 10 + 11 + 13 + 16 + 18 + 19 + 21 + 24 + 25 + 28 + 30 + 31 =264=2 + 3 + 5 + 8 + 9 + 12 + 14 + 15 + 17 + 20 + 22 + 23 + 26 + 27 + 29 + 32 Did that catch your interest?! No big deal? Oh yeah, you can always find two sets of numbers whose sum is equal. But two equal sized sets of positive integers should get some marks for "cuteness" right? No? At least, note that together it is all the numbers from 1-32, 16 in each set, none repeated! Come on, that should surely raise some tingles from the mathematician in you! Nope? Well, no worries, more surprises up the sleeves... 1 ^{2} + 4^{2 }+ 6^{2} + 7^{2} + 10^{2} + 11^{2} + 13^{2} + 16^{2} + 18^{2} + 19^{2} + 21^{2} + 24^{2} + 25^{2} + 28^{2} + 30^{2} + 31^{2} =5720=2 ^{2} + 3^{2} + 5^{2} + 8^{2} + 9^{2} + 12^{2} + 14^{2} + 15^{2} + 17^{2} + 20^{2} + 22^{2} + 23^{2} + 26^{2} + 27^{2} + 29^{2} + 32^{2}Ah that SHOULD stump you! See the beauty. Same set of 32 sequential numbers split into two sets, each squared, summed, and the answer is same. I cannot stop starring at it for hours together. To preach the convert, here is more... 1 ^{3} + 4^{3 }+ 6^{3} + 7^{3} + 10^{3} + 11^{3} + 13^{3} + 16^{3} + 18^{3} + 19^{3} + 21^{3 }+ 24^{3} + 25^{3} + 28^{3} + 30^{3} + 31^{3} =139392=2 ^{3} + 3^{3} + 5^{3} + 8^{3} + 9^{3} + 12^{3} + 14^{3} + 15^{3} + 17^{3} + 20^{3} + 22^{3} + 23^{3} + 26^{3} + 27^{3} + 29^{3} + 32^{3}HistoryOK, let me cut the hype and go for some history, and oh yeah the derivation and proof. The above equation is not a one-off case. It is a cute sample of a general rule, which I stumbled upon when trying (dreaming maybe) to solve an OR (Operation Research) Problem. The problem is: If you are given n books, and asked to arrange it into two stacks, so that the stack height difference is minimal, is there an algorithm that will work always? Looks like this is a NP-complete problem, that is, any know algorithm will take exponentially longer times, as you increase the number of books. Well, I didn't solve this problem (Of course, if I had, I would not be here writing articles on some old number tricks). But what happened was, while trying to test with easy book thickness, say integers, the above patterns came. Staring point is... 1 2 4 3 That is simple stack right? Surely no big deal for the OR goal, but you can see the direction... 1 + 4 = 2 + 3In general, (a + d _{1}) + (a + d_{4}) = (a + d_{2}) + (a + d_{3})if, d _{1} + d_{4} = d_{2} + d_{3}_{}_{This is kind of obvious from above. The key is a's quietly gets cancelled. On the first sight, this a should 'almost' go away even if you square each. }_{}_{(a + d1)2 + (a + d4)2 ---- (a + d2)2 + (a + d3)2}_{So, d12 + d42 + 2a(d1 + d4) ---- d22 + d32 + 2a(d2 + d3)}_{But from above equation in d's, d12 + d42 ---- d22 + d32}_{}_{Whatever this inequality be, it is independent of the 'a'. So if we have proper d's as above, then even squares of them will differ, so if you flip that same d's squares, but with a different starting a, then the total sum should be same for both stacks. }_{}_{(a + d1) + (a + d4) + (b + d2) + (b + d3) = (a + d2) + (a + d3) + (b + d1) + (b + d4)}_{also}_{(a + d1)2 + (a + d4)2 + (b + d2)2 + (b + d3)2 = (a + d2)2 + (a + d3)2 + (b + d1)2 + (b + d4)2}_{}This is neat, and looks like this can be generalized to higher powers. before that some examples... 1 + 4 = 2 + 31 ^{2} + 4^{2} ---- 2^{2} + 3^{2 }^{}The difference is 4 and similarly for a different a, but same d's 10 + 13 = 11 + 1210 ^{2} + 13^{2} ---- 11^{2} + 12^{2 }## The PatternInstead of going more rigorous, we can see the pattern is: A | _{1 } V |_{2} VA |_{3} VAAV |_{4} VAAV AVVA |_{5}_{}_{}Here say, if A = 14 - 23 then V = 23 - 14, is the reverse. Attaching a ruby script (SumOfPowersEqualities.rb) for generating this logic. You can direct the std out to a html file (say ruby SumOfPowersEqualities.rb > soap.html). |

Home >