{"id":585,"date":"2018-01-21T08:50:47","date_gmt":"2018-01-21T08:50:47","guid":{"rendered":"http:\/\/mathscitech.org\/articles\/?p=585"},"modified":"2024-05-10T13:19:00","modified_gmt":"2024-05-10T12:19:00","slug":"finite-summations-1","status":"publish","type":"post","link":"https:\/\/mathscitech.org\/articles\/finite-summations-1","title":{"rendered":"Sum of Integer Powers (Part 1)"},"content":{"rendered":"<p><em>2nd ed. January 21, 2018; 1st ed. Feb 8th, 2010<\/em><\/p>\n<p><strong>Abstract<\/strong><br \/>\nThis three part paper explores solving the sum of powers problem <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_r%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7Bn%7D+k%5Er&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_r(n) = \\sum_{k=1}^{n} k^r' title='S_r(n) = \\sum_{k=1}^{n} k^r' class='latex' \/> using discrete maths techniques (recurrence relations, matrix systems) to obtain a solution polynomials whose coefficients turn out to be exactly the Bernoulli numbers <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=B_n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='B_n' title='B_n' class='latex' \/>.<br \/>\n<strong>Part 1 (this paper)<\/strong> solves the problem using recurrence relations in a way which a high school student could emulate for small <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' \/>.  In <a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-2\" rel=\"noopener\" target=\"_blank\">Part 2<\/a>, we develop a general recursive solution that works for arbitrary <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' \/>, from which we can build a table of values to assist in finding the coefficients of the solution polynomial, coefficients that are precisely the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bernoulli_number\" rel=\"noopener noreferrer\" target=\"_blank\">Bernoulli numbers<\/a> discovered in 1713.  In <a href=\"finite-summations-3\">Part 3<\/a>, we show how by transforming the problem into a linear system, we may obtain a direct (non-recursive) solution which directly calculates the Bernoulli number for any power <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' \/>. Source code is provided for all solutions.  <\/p>\n<p>Readers who are interested in this topic are referred also to lovely paper by <a href=\"https:\/\/t.co\/a6wJ6DZqLe?amp=1\" rel=\"noopener noreferrer\" target=\"_blank\">Bearden<\/a> (March 1996, American Mathematical Monthly), which tells the mathematical story and fills in the history (thanks to a reader for this great reference).<br \/>\n<!--more--><\/p>\n<hr \/>\n<h3>1. Introduction<\/h3>\n<p>We are looking to find closed form solutions in <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> for sums-of-powers problems:<br \/>\n<a name=\"listk\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7Bn%7D+k+%3D+1+%2B+2+%2B+3+%2B+%5Cldots+%2B+%28n-1%29+%2B+n%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%28linear%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) = \\sum_{k=1}^{n} k = 1 + 2 + 3 + \\ldots + (n-1) + n\\ \\ \\ \\ \\ \\mbox{(linear)}' title='\\displaystyle S_1(n) = \\sum_{k=1}^{n} k = 1 + 2 + 3 + \\ldots + (n-1) + n\\ \\ \\ \\ \\ \\mbox{(linear)}' class='latex' \/><\/p>\n<p><a name=\"listk\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"listk\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7Bn%7D+k%5E2+%3D+1%5E2+%2B+2%5E2+%2B+3%5E2+%2B+%5Cldots+%2B+%28n-1%29%5E2+%2B+n%5E2%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%28squares%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n) = \\sum_{k=1}^{n} k^2 = 1^2 + 2^2 + 3^2 + \\ldots + (n-1)^2 + n^2\\ \\ \\ \\ \\ \\mbox{(squares)}' title='\\displaystyle S_2(n) = \\sum_{k=1}^{n} k^2 = 1^2 + 2^2 + 3^2 + \\ldots + (n-1)^2 + n^2\\ \\ \\ \\ \\ \\mbox{(squares)}' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_3%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7Bn%7D+k%5E3%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%28cubes%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_3(n) = \\sum_{k=1}^{n} k^3\\ \\ \\ \\ \\ \\mbox{(cubes)}' title='\\displaystyle S_3(n) = \\sum_{k=1}^{n} k^3\\ \\ \\ \\ \\ \\mbox{(cubes)}' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_4%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7Bn%7D+k%5E4%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%28quarts%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_4(n) = \\sum_{k=1}^{n} k^4\\ \\ \\ \\ \\ \\mbox{(quarts)}' title='\\displaystyle S_4(n) = \\sum_{k=1}^{n} k^4\\ \\ \\ \\ \\ \\mbox{(quarts)}' class='latex' \/><\/p>\n<p>and, generally:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_r%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7Bn%7D+k%5Er+%3D+1%5Er+%2B+2%5Er+%2B+3%5Er+%2B+%5Cldots+%2B+%28n-1%29%5Er+%2B+n%5Er%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%28r-th+powers%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_r(n) = \\sum_{k=1}^{n} k^r = 1^r + 2^r + 3^r + \\ldots + (n-1)^r + n^r\\ \\ \\ \\ \\ \\mbox{(r-th powers)}' title='\\displaystyle S_r(n) = \\sum_{k=1}^{n} k^r = 1^r + 2^r + 3^r + \\ldots + (n-1)^r + n^r\\ \\ \\ \\ \\ \\mbox{(r-th powers)}' class='latex' \/><\/p>\n<h3>2. Solving Linear Sums<\/h3>\n<p>Consider the linear sum<br \/>\n<a name=\"s1n\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7Bn%7D+k+%3D+1+%2B+2+%2B+3+%2B+%5Cldots+%2B+%28n-1%29+%2B+n%5C+%5C+%5C+%5C+%5C+%281%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) = \\sum_{k=1}^{n} k = 1 + 2 + 3 + \\ldots + (n-1) + n\\ \\ \\ \\ \\ (1)' title='\\displaystyle S_1(n) = \\sum_{k=1}^{n} k = 1 + 2 + 3 + \\ldots + (n-1) + n\\ \\ \\ \\ \\ (1)' class='latex' \/><\/p>\n<h4>Method 1: Algebraic Insight<\/h4>\n<p>Tradition<sup class='footnote'><a href='#fn-585-1' id='fnref-585-1' onclick='return fdfootnote_show(585)'>1<\/a><\/sup> has it that seven-year-old Gauss solved <a href=\"#s1n\">(1)<\/a> by writing out the sum twice, first forwards then in reverse, and then adding the terms column-wise:<\/p>\n<p align=\"center\"><a name=\"gaussA\"><\/a><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D+1+%2B+2+%2B+3+%2B+%5Cldots+%2B+%28n-2%29+%2B+%28n-1%29+%2B+n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) = 1 + 2 + 3 + \\ldots + (n-2) + (n-1) + n' title='\\displaystyle S_1(n) = 1 + 2 + 3 + \\ldots + (n-2) + (n-1) + n' class='latex' \/><\/p>\n<p align=\"center\"><a name=\"gaussB\"><\/a><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D+n+%2B+%28n-1%29+%2B+%28n-2%29+%2B+%5Cldots+%2B+3+%2B+2+%2B+1.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) = n + (n-1) + (n-2) + \\ldots + 3 + 2 + 1.' title='\\displaystyle S_1(n) = n + (n-1) + (n-2) + \\ldots + 3 + 2 + 1.' class='latex' \/><\/p>\n<p>The left hand terms add to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=2S_1%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='2S_1(n)' title='2S_1(n)' class='latex' \/>, or twice the original.  Each of the right-hand terms adds to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%2B1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n+1' title='n+1' class='latex' \/> and there are exactly <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> terms, giving the solution:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+2S_1%28n%29+%3D+n%28n%2B1%29+%5Cimplies+S_1%28n%29+%3D+%5Ctfrac%7B1%7D%7B2%7Dn%28n%2B1%29+%3D+%5Ctfrac%7B1%7D%7B2%7D%5Bn%5E2+%2B+n%5D+%5C+%5C+%5C+%5C+%5C+%282%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle 2S_1(n) = n(n+1) \\implies S_1(n) = \\tfrac{1}{2}n(n+1) = \\tfrac{1}{2}[n^2 + n] \\ \\ \\ \\ \\ (2)' title='\\displaystyle 2S_1(n) = n(n+1) \\implies S_1(n) = \\tfrac{1}{2}n(n+1) = \\tfrac{1}{2}[n^2 + n] \\ \\ \\ \\ \\ (2)' class='latex' \/>.<\/p>\n<p>Elegant. The key insight here was cleverly rearranging a copy of the sum so that the solution became obvious when added to itself. Is there another way?<\/p>\n<h4>Method 2: Geometric Insight<\/h4>\n<p>Write down the first few examples of <a href=\"#s1n\">(1)<\/a>:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+n%3A+1%2C2%2C3%2C4%2C5%2C6%2C%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle n: 1,2,3,4,5,6,\\ldots' title='\\displaystyle n: 1,2,3,4,5,6,\\ldots' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29%3A+1%2C3%2C6%2C10%2C15%2C21%2C%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n): 1,3,6,10,15,21,\\ldots' title='\\displaystyle S_1(n): 1,3,6,10,15,21,\\ldots' class='latex' \/><\/p>\n<p><a name=\"figisocdots\"><\/a><br \/>\n<div id=\"attachment_595\" style=\"width: 107px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-1\/isocdots\" rel=\"attachment wp-att-595\"><img decoding=\"async\" aria-describedby=\"caption-attachment-595\" loading=\"lazy\" class=\"size-full wp-image-595\" title=\"isocdots\" src=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/isocdots.png\" alt=\"S_1(n) is the blue triangle\" width=\"97\" height=\"93\" \/><\/a><p id=\"caption-attachment-595\" class=\"wp-caption-text\">S_1(n) is the blue triangle<\/p><\/div><\/p>\n<p>Arranging each term <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5C%7B1%2C2%2C3%2C4%2C%5Cldots%5C%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\{1,2,3,4,\\ldots\\}' title='\\{1,2,3,4,\\ldots\\}' class='latex' \/> as a row of dots forms a right triangle (Figure <a href=\"#figisocdots\">1<\/a>, blue dots) with side lengths and a diagonal each of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> dots.  <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n)' title='S_1(n)' class='latex' \/> is the total number of dots in the triangle, hence the name <strong>triangular numbers<\/strong> for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n)' title='S_1(n)' class='latex' \/>.<\/p>\n<p>Finding the desired sum <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n)' title='S_1(n)' class='latex' \/>, the blue triangle, is now a geometric question, and there are several solutions.<\/p>\n<p><strong>Solution 2A<\/strong> The blue triangle <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n)' title='S_1(n)' class='latex' \/> is found by taking the square of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^2' title='n^2' class='latex' \/> dots, and removing the diagonal (<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> dots), which leaves two (red) triangles of side length <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n-1' title='n-1' class='latex' \/>, <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n-1)' title='S_1(n-1)' class='latex' \/>, each having half the remaining dots, or<br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n-1%29+%3D+%5Ctfrac%7B1%7D%7B2%7D%28n%5E2+-+n%29+%3D+%5Ctfrac%7B1%7D%7B2%7D%28n-1%29%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n-1) = \\tfrac{1}{2}(n^2 - n) = \\tfrac{1}{2}(n-1)(n)' title='\\displaystyle S_1(n-1) = \\tfrac{1}{2}(n^2 - n) = \\tfrac{1}{2}(n-1)(n)' class='latex' \/>.<\/p>\n<p>We can now shift indices to get the solution as before:<br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D++%5Ctfrac%7B1%7D%7B2%7D%28n%29%28n%2B1%29.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) =  \\tfrac{1}{2}(n)(n+1).' title='\\displaystyle S_1(n) =  \\tfrac{1}{2}(n)(n+1).' class='latex' \/><\/p>\n<p>Note that this geometric deconstruction also yields recurrence that will be fundamental:<br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D+S_1%28n-1%29+%2B+n+%5C+%5C+%5C+%5C+%5C+%283%29%2C&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) = S_1(n-1) + n \\ \\ \\ \\ \\ (3),' title='\\displaystyle S_1(n) = S_1(n-1) + n \\ \\ \\ \\ \\ (3),' class='latex' \/><br \/>\nwhich says the blue triangle <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n)' title='S_1(n)' class='latex' \/> is the red triangle <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n-1)' title='S_1(n-1)' class='latex' \/> with the diagonal <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> added on.<\/p>\n<p>Good. Here the insight was using of geometry to represent the sum.<\/p>\n<p>We now show a third method which motivates the one we will use to find the general solution.<\/p>\n<h4>Method 3: Two Recurrence Relations<\/h4>\n<p>The definition <a href=\"#s1n\">(1)<\/a> gives a first-order recurrence relation:<br \/>\n<a name=\"s1nA\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D+S_1%28n-1%29+%2B+n%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%285%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) = S_1(n-1) + n\\ \\ \\ \\ \\ \\mbox{(5)}' title='\\displaystyle S_1(n) = S_1(n-1) + n\\ \\ \\ \\ \\ \\mbox{(5)}' class='latex' \/><\/p>\n<p><a name=\"s1nA\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s1nA\"><\/a><br \/>\nThis says that you get from one sum to the next case by adding the next term.<br \/>\nIf we had another recurrence, we could solve by substitution or elimination, treating the pair as a system of two equations in two unknowns <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n%29+%5Cmbox%7B+and+%7D+S_1%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n) \\mbox{ and } S_1(n-1)' title='S_1(n) \\mbox{ and } S_1(n-1)' class='latex' \/>.<\/p>\n<p>The geometric insight above (see Figure <a href=\"#figisocdots\">1<\/a>) can be adapted to yield a second recurrence:<br \/>\n<a name=\"s1nB\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D+n%5E2+-+S_1%28n-1%29%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%286%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) = n^2 - S_1(n-1)\\ \\ \\ \\ \\ \\mbox{(6)}' title='\\displaystyle S_1(n) = n^2 - S_1(n-1)\\ \\ \\ \\ \\ \\mbox{(6)}' class='latex' \/><\/p>\n<p><a name=\"s1nB\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s1nB\"><\/a><\/p>\n<p>This says that the blue triangle <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n)' title='S_1(n)' class='latex' \/> remains after removing a smaller copy, the red triangle, <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n-1)' title='S_1(n-1)' class='latex' \/> from the square of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^2' title='n^2' class='latex' \/> dots.<sup class='footnote'><a href='#fn-585-2' id='fnref-585-2' onclick='return fdfootnote_show(585)'>2<\/a><\/sup><\/p>\n<p>Note that the recurrence (6) can be established by mathematical induction without reference to the geometric thinking that inspired it, which is a desirable simplification.<\/p>\n<p>With the two recurrences (5) and (6), we can solve by substitution or in this case by directly adding them to get:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+2S_1%28n%29+%3D+n%5E2+%2B+n+%5C+%5Cimplies+%5C+S_1%28n%29+%3D+%5Cfrac%7B1%7D%7B2%7Dn%28n%2B1%29%2C&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle 2S_1(n) = n^2 + n \\ \\implies \\ S_1(n) = \\frac{1}{2}n(n+1),' title='\\displaystyle 2S_1(n) = n^2 + n \\ \\implies \\ S_1(n) = \\frac{1}{2}n(n+1),' class='latex' \/><\/p>\n<p>which is the same solution as equation 4 above.<\/p>\n<p><strong>Remarks<\/strong> Let&#8217;s consider what we have just seen.<\/p>\n<p>The first solution method required the observation that pairs of entries marching in from opposite sides have a constant sum. Rewriting the series twice is a clever way of dealing with the otherwise sticky detail of whether all the entries can be paired, which would depend on whether there are an even or odd number of terms in the sum.<\/p>\n<p>The second solution required coming upon the suggestive geometric arrangement of dots, from which known results about geometric figures could be used to deduce the closed form formula.<\/p>\n<p>The third solution has the promise of a general method if we can always find a second recurrence relation. For <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n)' title='S_1(n)' class='latex' \/>, the geometric arrangement of method 2 suggested the second recurrence, after which obtaining the solution was mechanical.<\/p>\n<p>We will now solve the problem for every member of the family <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_r%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_r(n)' title='S_r(n)' class='latex' \/> by prescribing an automatic way of generating the second recurrence using a generalization of the geometric insight of solution 2.<\/p>\n<h3>3. Sum of Squares<\/h3>\n<p>Consider the sum of squares <a name=\"s2n\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29+%3D+%5Csum_1%5En+k%5E2%5C+%5C+%5C+%5C+%5C+%287%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n) = \\sum_1^n k^2\\ \\ \\ \\ \\ (7)' title='\\displaystyle S_2(n) = \\sum_1^n k^2\\ \\ \\ \\ \\ (7)' class='latex' \/><\/p>\n<p><a name=\"s2n\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s2n\"><\/a><\/p>\n<p>The sequence for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_2%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_2(n)' title='S_2(n)' class='latex' \/> goes as:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+n%3A+1%2C2%2C3%2C4%2C5%2C6%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle n: 1,2,3,4,5,6\\ldots' title='\\displaystyle n: 1,2,3,4,5,6\\ldots' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29%3A+1%2C5%2C14%2C30%2C55%2C91%2C%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n): 1,5,14,30,55,91,\\ldots' title='\\displaystyle S_2(n): 1,5,14,30,55,91,\\ldots' class='latex' \/><\/p>\n<p>Method 1 doesn&#8217;t work for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_2%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_2(n)' title='S_2(n)' class='latex' \/>: matched pairs from opposite ends of the finite sum don&#8217;t have a constant sum (92, 60, 44 for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_2%286%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_2(6)' title='S_2(6)' class='latex' \/>).<\/p>\n<p>Playing with dot arrangements yields a pattern: each square number <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=k%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k^2' title='k^2' class='latex' \/> is built up as a sum of the first <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=k&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k' title='k' class='latex' \/> odd numbers &#8212; see Figure 2. <sup class='footnote'><a href='#fn-585-3' id='fnref-585-3' onclick='return fdfootnote_show(585)'>3<\/a><\/sup> We shall exploit this lemma (sum-of-odd-integers-is-square) to obtain the required second recurrence and solve the problem.<sup class='footnote'><a href='#fn-585-4' id='fnref-585-4' onclick='return fdfootnote_show(585)'>4<\/a><\/sup><\/p>\n<div id=\"attachment_596\" style=\"width: 108px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-596\" loading=\"lazy\" class=\"size-full wp-image-596\" title=\"fig1dots\" src=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/fig1dots.png\" alt=\"Sum of Odd Integers\" width=\"98\" height=\"118\" \/><p id=\"caption-attachment-596\" class=\"wp-caption-text\">Figure 2. Sum of Odd Integers<\/p><\/div>\n<h4>Method 3: Two Recurrence Relations<\/h4>\n<p>The first recurrence relation is immediate from the definition <a href=\"#s2n\">(2)<\/a>: <a name=\"s2nA\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29+%3D+S_2%28n-1%29+%2B+n%5E2.%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%288%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n) = S_2(n-1) + n^2.\\ \\ \\ \\ \\ \\mbox{(8)}' title='\\displaystyle S_2(n) = S_2(n-1) + n^2.\\ \\ \\ \\ \\ \\mbox{(8)}' class='latex' \/><\/p>\n<p><a name=\"s2nA\"><\/a><\/p>\n<p>For the second recurrence relation write out the definition of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_2%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_2(n)' title='S_2(n)' class='latex' \/> and replace each <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=k%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k^2' title='k^2' class='latex' \/> term using the Sum-of-Odd-Integers-is-Square Lemma (e.g. <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%5E2+%3D+1+%2B+3+%2B+5+%2B+%5Cldots+%2B+2n-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^2 = 1 + 3 + 5 + \\ldots + 2n-1' title='n^2 = 1 + 3 + 5 + \\ldots + 2n-1' class='latex' \/>). This gives:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29+%3D+1%5E2+%2B+2%5E2+%2B+3%5E2+%2B+%5Cldots+%2B+n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n) = 1^2 + 2^2 + 3^2 + \\ldots + n^2' title='\\displaystyle S_2(n) = 1^2 + 2^2 + 3^2 + \\ldots + n^2' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+%281%29+%2B+%281%2B3%29+%2B+%281%2B3%2B5%29+%2B+%5Cldots+%2B+%281%2B3%2B5%2B%5Cldots%2B%282n-1%29%29%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%289%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = (1) + (1+3) + (1+3+5) + \\ldots + (1+3+5+\\ldots+(2n-1))\\ \\ \\ \\ \\ \\mbox{(9)}' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = (1) + (1+3) + (1+3+5) + \\ldots + (1+3+5+\\ldots+(2n-1))\\ \\ \\ \\ \\ \\mbox{(9)}' class='latex' \/><\/p>\n<p>Now we can re-arrange the terms but instead group by odd integers:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29+%3D+%281%29n+%2B+%283%29%28n-1%29+%2B+%285%29%28n-2%29+%2B+%5Cldots+%2B+%282n-1%29%281%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n) = (1)n + (3)(n-1) + (5)(n-2) + \\ldots + (2n-1)(1)' title='\\displaystyle S_2(n) = (1)n + (3)(n-1) + (5)(n-2) + \\ldots + (2n-1)(1)' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_%7Bk%3D0%7D%5E%7Bn-1%7D%28n-k%29%282k%2B1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = \\sum_{k=0}^{n-1}(n-k)(2k+1)' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = \\sum_{k=0}^{n-1}(n-k)(2k+1)' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+%282n-1%29%5Csum_%7Bk%3D0%7D%5E%7Bn-1%7Dk+-+2%5Csum_0%5E%7Bn-1%7Dk%5E2+%2B+%5Csum_0%5E%7Bn-1%7Dn&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = (2n-1)\\sum_{k=0}^{n-1}k - 2\\sum_0^{n-1}k^2 + \\sum_0^{n-1}n' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = (2n-1)\\sum_{k=0}^{n-1}k - 2\\sum_0^{n-1}k^2 + \\sum_0^{n-1}n' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D%282n-1%29S_1%28n-1%29+-2S_2%28n-1%29+%2B+n%5E2.+%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%2810%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ =(2n-1)S_1(n-1) -2S_2(n-1) + n^2. \\ \\ \\ \\ \\ \\mbox{(10)}' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ =(2n-1)S_1(n-1) -2S_2(n-1) + n^2. \\ \\ \\ \\ \\ \\mbox{(10)}' class='latex' \/><\/p>\n<p>Note that both <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1+%5Cmbox%7B+and+%7D+S_2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1 \\mbox{ and } S_2' title='S_1 \\mbox{ and } S_2' class='latex' \/> occur in the recurrence, but we know already <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1' title='S_1' class='latex' \/> from <a href=\"#s1nsol\">(2)<\/a>. Substituting this gives our second recurrence in <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_2' title='S_2' class='latex' \/> alone:<\/p>\n<p><a name=\"s2nB\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29+%3D+n%5E3+-+%5Ctfrac%7B1%7D%7B2%7Dn%5E2+%2B+%5Ctfrac%7B1%7D%7B2%7Dn+-+2S_2%28n-1%29.%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%2811%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n) = n^3 - \\tfrac{1}{2}n^2 + \\tfrac{1}{2}n - 2S_2(n-1).\\ \\ \\ \\ \\ \\mbox{(11)}' title='\\displaystyle S_2(n) = n^3 - \\tfrac{1}{2}n^2 + \\tfrac{1}{2}n - 2S_2(n-1).\\ \\ \\ \\ \\ \\mbox{(11)}' class='latex' \/><\/p>\n<p>&nbsp;<\/p>\n<p>Combining the two recurrences <a href=\"#s2nA\">(8)<\/a> and <a href=\"#s2nB\">(11)<\/a>, and simplifying, yields<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+3S_2%28n%29+%3D+n%5E3+%2B+%5Ctfrac%7B3%7D%7B2%7Dn%5E2+%2B+%5Ctfrac%7B1%7D%7B2%7Dn%2C&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle 3S_2(n) = n^3 + \\tfrac{3}{2}n^2 + \\tfrac{1}{2}n,' title='\\displaystyle 3S_2(n) = n^3 + \\tfrac{3}{2}n^2 + \\tfrac{1}{2}n,' class='latex' \/><\/p>\n<p>from which the closed form formula is immediate:<br \/>\n<a name=\"s2nsol\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29+%3D+%5Ctfrac%7B1%7D%7B6%7D%282n%5E3+%2B+3n%5E2+%2B+n%29+%3D+%5Ctfrac%7B1%7D%7B3%7Dn%5E3+%2B+%5Ctfrac%7B1%7D%7B2%7Dn%5E2+%2B+%5Ctfrac%7B1%7D%7B6%7Dn.%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%2812%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n) = \\tfrac{1}{6}(2n^3 + 3n^2 + n) = \\tfrac{1}{3}n^3 + \\tfrac{1}{2}n^2 + \\tfrac{1}{6}n.\\ \\ \\ \\ \\ \\mbox{(12)}' title='\\displaystyle S_2(n) = \\tfrac{1}{6}(2n^3 + 3n^2 + n) = \\tfrac{1}{3}n^3 + \\tfrac{1}{2}n^2 + \\tfrac{1}{6}n.\\ \\ \\ \\ \\ \\mbox{(12)}' class='latex' \/><\/p>\n<p><a name=\"s2nsol\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s2nsol\"><\/a><\/p>\n<h3>4. Sum of Cubes<\/h3>\n<p>The recurrence relation approach to solving the two specific problems above suggests this may generalize to solving the general problem:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_r%28n%29+%3D+%5Csum_1%5En+k%5Er.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_r(n) = \\sum_1^n k^r.' title='\\displaystyle S_r(n) = \\sum_1^n k^r.' class='latex' \/><\/p>\n<p>Let&#8217;s test this theory by applying it to the sum of cubes problem:<\/p>\n<p><a name=\"s3n\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_3%28n%29+%3D+%5Csum_1%5En+k%5E3.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_3(n) = \\sum_1^n k^3.' title='\\displaystyle S_3(n) = \\sum_1^n k^3.' class='latex' \/><\/p>\n<p><a name=\"s3n\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s3n\"><\/a> The first recurrence is: <a name=\"s3nA\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_3%28n%29+%3D+S_3%28n-1%29+%2B+n%5E3+%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%2813%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_3(n) = S_3(n-1) + n^3 \\ \\ \\ \\ \\ \\mbox{(13)}' title='\\displaystyle S_3(n) = S_3(n-1) + n^3 \\ \\ \\ \\ \\ \\mbox{(13)}' class='latex' \/><\/p>\n<p><a name=\"s3nA\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s3nA\"><\/a> For the second recurrence, solve for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=k%5E3&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k^3' title='k^3' class='latex' \/> in the solution for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_2%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_2(n)' title='S_2(n)' class='latex' \/>, equation <a href=\"#s2nsol\">(12)<\/a> above:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+6S_2%28k%29+%3D+2k%5E3+%2B+3k%5E2+%2B+k&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle 6S_2(k) = 2k^3 + 3k^2 + k' title='\\displaystyle 6S_2(k) = 2k^3 + 3k^2 + k' class='latex' \/><\/p>\n<p>so <a name=\"star\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+k%5E3+%3D+3S_2%28k%29+-+%5Ctfrac%7B3%7D%7B2%7Dk%5E2+-+%5Ctfrac%7B1%7D%7B2%7Dk.%5C+%5C+%5C+%5C+%5C+%2814%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle k^3 = 3S_2(k) - \\tfrac{3}{2}k^2 - \\tfrac{1}{2}k.\\ \\ \\ \\ \\ (14)' title='\\displaystyle k^3 = 3S_2(k) - \\tfrac{3}{2}k^2 - \\tfrac{1}{2}k.\\ \\ \\ \\ \\ (14)' class='latex' \/><\/p>\n<p><a name=\"star\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"star\"><\/a> Putting this into the definition <a href=\"#s3n\">(3)<\/a> gives: <a name=\"s3nB\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_3%28n%29+%3D+%5Csum_1%5En+%5B3S_2%28k%29+-+%5Ctfrac%7B3%7D%7B2%7Dk%5E2+-+%5Ctfrac%7B1%7D%7B2%7Dk%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_3(n) = \\sum_1^n [3S_2(k) - \\tfrac{3}{2}k^2 - \\tfrac{1}{2}k]' title='\\displaystyle S_3(n) = \\sum_1^n [3S_2(k) - \\tfrac{3}{2}k^2 - \\tfrac{1}{2}k]' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+3%5Csum_1%5En+S_2%28k%29+-+%5Ctfrac%7B3%7D%7B2%7D%5Csum_1%5En+k%5E2+-+%5Ctfrac%7B1%7D%7B2%7D%5Csum_1%5En+k&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 3\\sum_1^n S_2(k) - \\tfrac{3}{2}\\sum_1^n k^2 - \\tfrac{1}{2}\\sum_1^n k' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 3\\sum_1^n S_2(k) - \\tfrac{3}{2}\\sum_1^n k^2 - \\tfrac{1}{2}\\sum_1^n k' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+3%5Csum_1%5En+S_2%28k%29+-+%5Ctfrac%7B3%7D%7B2%7DS_2%28n%29+-+%5Ctfrac%7B1%7D%7B2%7DS_1%28n%29.%5C+%5C+%5C+%5C+%5C+%5Cmbox%7B%2815%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 3\\sum_1^n S_2(k) - \\tfrac{3}{2}S_2(n) - \\tfrac{1}{2}S_1(n).\\ \\ \\ \\ \\ \\mbox{(15)}' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 3\\sum_1^n S_2(k) - \\tfrac{3}{2}S_2(n) - \\tfrac{1}{2}S_1(n).\\ \\ \\ \\ \\ \\mbox{(15)}' class='latex' \/><\/p>\n<p>What is <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Csum_1%5En+S_2%28k%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\sum_1^n S_2(k)' title='\\sum_1^n S_2(k)' class='latex' \/>? Writing it out and then gathering like terms gives:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5Csum_1%5En+S_2%28k%29+%3D+S_2%281%29+%2B+S_2%282%29+%2B+S_2%283%29+%2B+%5Cldots+%2B+S_2%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\sum_1^n S_2(k) = S_2(1) + S_2(2) + S_2(3) + \\ldots + S_2(n)' title='\\displaystyle \\sum_1^n S_2(k) = S_2(1) + S_2(2) + S_2(3) + \\ldots + S_2(n)' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+1%5E2+%2B+%281%5E2+%2B+2%5E2%29+%2B+%281%5E2+%2B+2%5E2+%2B+3%5E2%29+%2B+%5Cldots+%2B+%281%5E2+%2B+2%5E2+%2B+%5Cldots+%2B+n%5E2%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 1^2 + (1^2 + 2^2) + (1^2 + 2^2 + 3^2) + \\ldots + (1^2 + 2^2 + \\ldots + n^2)' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 1^2 + (1^2 + 2^2) + (1^2 + 2^2 + 3^2) + \\ldots + (1^2 + 2^2 + \\ldots + n^2)' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+n%281%5E2%29+%2B+%28n-1%29%282%5E2%29+%2B+%28n-2%29%283%5E2%29+%2B+%5Cldots+%2B+2%28n-1%29%5E2+%2B+n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = n(1^2) + (n-1)(2^2) + (n-2)(3^2) + \\ldots + 2(n-1)^2 + n^2' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = n(1^2) + (n-1)(2^2) + (n-2)(3^2) + \\ldots + 2(n-1)^2 + n^2' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_0%5E%7Bn-1%7D%28n-k%29%28k%2B1%29%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = \\sum_0^{n-1}(n-k)(k+1)^2' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = \\sum_0^{n-1}(n-k)(k+1)^2' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_0%5E%7Bn-1%7D%5B-k%5E3+%2B+%28n-2%29k%5E2+%2B+%282n-1%29k+%2B+n%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = \\sum_0^{n-1}[-k^3 + (n-2)k^2 + (2n-1)k + n]' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = \\sum_0^{n-1}[-k^3 + (n-2)k^2 + (2n-1)k + n]' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+-S_3%28n-1%29+%2B+%28n-2%29S_2%28n-1%29+%2B+%282n-1%29S_1%28n-1%29+%2B+n%5E2.%5C+%5C+%5C+%5C+%5C+%5C+%2816%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = -S_3(n-1) + (n-2)S_2(n-1) + (2n-1)S_1(n-1) + n^2.\\ \\ \\ \\ \\ \\ (16)' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = -S_3(n-1) + (n-2)S_2(n-1) + (2n-1)S_1(n-1) + n^2.\\ \\ \\ \\ \\ \\ (16)' class='latex' \/><\/p>\n<p>Putting (16) into <a href=\"#s3nB\">(15)<\/a> gives the desired recurrence for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_3%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_3(n)' title='S_3(n)' class='latex' \/>:<br \/>\n<a name=\"s3nC\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_3%28n%29+%3D+3%5B-S_3%28n-1%29+%2B+%28n-2%29S_2%28n-1%29+%2B+%282n-1%29S_1%28n-1%29+%2B+n%5E2%5D+-+%5Ctfrac%7B3%7D%7B2%7DS_2%28n%29+-+%5Ctfrac%7B1%7D%7B2%7DS_1%28n%29.%5C+%5C+%5C+%5C+%5C+%2817%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_3(n) = 3[-S_3(n-1) + (n-2)S_2(n-1) + (2n-1)S_1(n-1) + n^2] - \\tfrac{3}{2}S_2(n) - \\tfrac{1}{2}S_1(n).\\ \\ \\ \\ \\ (17)' title='\\displaystyle S_3(n) = 3[-S_3(n-1) + (n-2)S_2(n-1) + (2n-1)S_1(n-1) + n^2] - \\tfrac{3}{2}S_2(n) - \\tfrac{1}{2}S_1(n).\\ \\ \\ \\ \\ (17)' class='latex' \/><br \/>\nRewriting <a href=\"#s3nA\">(13)<\/a> for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_3%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_3(n-1)' title='S_3(n-1)' class='latex' \/>, substituting into the above, and gathering like terms gives the closed form formula:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=4S_3%28n%29+%3D+3n%5E3+%2B+%283n-6%29S_2%28n-1%29+%2B+%286n-3%29S_1%28n-1%29+%2B+3n%5E2+-+%5Ctfrac%7B3%7D%7B2%7DS_2%28n%29+-+%5Ctfrac%7B1%7D%7B2%7DS_1%28n%29.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='4S_3(n) = 3n^3 + (3n-6)S_2(n-1) + (6n-3)S_1(n-1) + 3n^2 - \\tfrac{3}{2}S_2(n) - \\tfrac{1}{2}S_1(n).' title='4S_3(n) = 3n^3 + (3n-6)S_2(n-1) + (6n-3)S_1(n-1) + 3n^2 - \\tfrac{3}{2}S_2(n) - \\tfrac{1}{2}S_1(n).' class='latex' \/><\/p>\n<p>Substitute with known formulae for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_2%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_2(n-1)' title='S_2(n-1)' class='latex' \/> and <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n-1)' title='S_1(n-1)' class='latex' \/>, equations (2) and (12), to get after algebraic simplification:<br \/>\n<a name=\"s3nsol\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_3%28n%29+%3D+%5Ctfrac%7B1%7D%7B4%7D%28n%5E4+%2B+2n%5E3+%2B+n%5E2%29+%3D+%5Ctfrac%7B1%7D%7B4%7Dn%5E4+%2B+%5Ctfrac%7B1%7D%7B2%7Dn%5E3+%2B+%5Ctfrac%7B1%7D%7B4%7Dn%5E2.%5C+%5C+%5C+%5C+%5C+%2818%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_3(n) = \\tfrac{1}{4}(n^4 + 2n^3 + n^2) = \\tfrac{1}{4}n^4 + \\tfrac{1}{2}n^3 + \\tfrac{1}{4}n^2.\\ \\ \\ \\ \\ (18)' title='\\displaystyle S_3(n) = \\tfrac{1}{4}(n^4 + 2n^3 + n^2) = \\tfrac{1}{4}n^4 + \\tfrac{1}{2}n^3 + \\tfrac{1}{4}n^2.\\ \\ \\ \\ \\ (18)' class='latex' \/><\/p>\n<p><a name=\"s3nsol\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s3nsol\"><\/a><\/p>\n<p>A table of the first few values is<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+n%3A+1%2C2%2C3%2C4%2C5%2C6%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle n: 1,2,3,4,5,6\\ldots' title='\\displaystyle n: 1,2,3,4,5,6\\ldots' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_3%28n%29%3A+1%2C9%2C36%2C100%2C225%2C441%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_3(n): 1,9,36,100,225,441\\ldots' title='\\displaystyle S_3(n): 1,9,36,100,225,441\\ldots' class='latex' \/><\/p>\n<h3>5. Sum of Quartics &#8212; <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_4%28n%29+%3D+%5Csum_1%5En+k%5E4&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_4(n) = \\sum_1^n k^4' title='S_4(n) = \\sum_1^n k^4' class='latex' \/><\/h3>\n<p>Sum of quartics <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_4%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_4(n)' title='S_4(n)' class='latex' \/> can now be handled routinely:<\/p>\n<p>First recurrence: <a name=\"s4nA\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_4%28n%29+%3D+S_4%28n-1%29+%2B+n%5E4.%5C+%5C+%5C+%5C+%5C+%2819%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_4(n) = S_4(n-1) + n^4.\\ \\ \\ \\ \\ (19)' title='\\displaystyle S_4(n) = S_4(n-1) + n^4.\\ \\ \\ \\ \\ (19)' class='latex' \/><\/p>\n<p><a name=\"s4nA\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s4nA\"><\/a><\/p>\n<p>Second recurrence: Start with the solution to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_3%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_3(n)' title='S_3(n)' class='latex' \/>, equation <a href=\"#s3nsol\">(18)<\/a>, and solve for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%5E4&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^4' title='n^4' class='latex' \/>:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+n%5E4+%3D+4S_3%28n%29+-+2n%5E3+-+n%5E2.+%5C+%5C+%5C+%5C+%5C+%2820%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle n^4 = 4S_3(n) - 2n^3 - n^2. \\ \\ \\ \\ \\ (20)' title='\\displaystyle n^4 = 4S_3(n) - 2n^3 - n^2. \\ \\ \\ \\ \\ (20)' class='latex' \/><\/p>\n<p>Substitute (20) into definition <a href=\"#s4n\">(2)<\/a>:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_4%28n%29+%3D+%5Csum_1%5En+k%5E4+%3D+%5Csum_1%5En+%5B4S_3%28k%29+-+2k%5E3+-+k%5E2%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_4(n) = \\sum_1^n k^4 = \\sum_1^n [4S_3(k) - 2k^3 - k^2]' title='\\displaystyle S_4(n) = \\sum_1^n k^4 = \\sum_1^n [4S_3(k) - 2k^3 - k^2]' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+4%5Csum_1%5En+S_3%28k%29+-+2%5Csum_1%5En+k%5E3+-+%5Csum_1%5En+k%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 4\\sum_1^n S_3(k) - 2\\sum_1^n k^3 - \\sum_1^n k^2' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 4\\sum_1^n S_3(k) - 2\\sum_1^n k^3 - \\sum_1^n k^2' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+4%5Csum_1%5En+S_3%28k%29+-+2S_3%28n%29+-+S_2%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 4\\sum_1^n S_3(k) - 2S_3(n) - S_2(n)' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 4\\sum_1^n S_3(k) - 2S_3(n) - S_2(n)' class='latex' \/><br \/>\n[Writing out the first sum and gathering like cubes gives:]<br \/>\n<a name=\"s4nB\"><\/a><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%3D+4%5B%5Csum_0%5E%7Bn-1%7D+%28n-k%29%28k%2B1%29%5E3%5D+-+2S_3%28n%29+-+S_2%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='= 4[\\sum_0^{n-1} (n-k)(k+1)^3] - 2S_3(n) - S_2(n)' title='= 4[\\sum_0^{n-1} (n-k)(k+1)^3] - 2S_3(n) - S_2(n)' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%3D+4%5B-S_4%28n-1%29+%2B+%28n-3%29S_3%28n-1%29+%2B+%283n-3%29S_2%28n-1%29+%2B+%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 4[-S_4(n-1) + (n-3)S_3(n-1) + (3n-3)S_2(n-1) + \\ldots' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ = 4[-S_4(n-1) + (n-3)S_3(n-1) + (3n-3)S_2(n-1) + \\ldots' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Cldots+%2B+%283n-1%29S_1%28n-1%29+%2B+n%5E2%5D+-+2S_3%28n%29+-+S_2%28n%29%2C%5C+%5C+%5C+%5C+%5C+%2821%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ldots + (3n-1)S_1(n-1) + n^2] - 2S_3(n) - S_2(n),\\ \\ \\ \\ \\ (21)' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ldots + (3n-1)S_1(n-1) + n^2] - 2S_3(n) - S_2(n),\\ \\ \\ \\ \\ (21)' class='latex' \/><\/p>\n<p>which is the desired second recurrence.<\/p>\n<p>Rewriting <a href=\"#s4nA\">(19)<\/a> for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_4%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_4(n-1)' title='S_4(n-1)' class='latex' \/> and substituting into the above yields the closed form formula:<br \/>\n<a name=\"s4nSOLSYM\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_4%28n%29+%3D+%5Ctfrac%7B1%7D%7B5%7D%5B4n%5E4+%2B+4%28n-3%29S_3%28n-1%29+%2B+4%283n-3%29S_2%28n-1%29+%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_4(n) = \\tfrac{1}{5}[4n^4 + 4(n-3)S_3(n-1) + 4(3n-3)S_2(n-1) \\ldots' title='\\displaystyle S_4(n) = \\tfrac{1}{5}[4n^4 + 4(n-3)S_3(n-1) + 4(3n-3)S_2(n-1) \\ldots' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Cldots+%2B+4%283n-1%29S_1%28n-1%29+%2B+4n%5E2+-+2S_3%28n%29+-+S_2%28n%29%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ldots + 4(3n-1)S_1(n-1) + 4n^2 - 2S_3(n) - S_2(n)]' title='\\displaystyle \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ldots + 4(3n-1)S_1(n-1) + 4n^2 - 2S_3(n) - S_2(n)]' class='latex' \/><\/p>\n<p>which after algebraic simplification, is:<br \/>\n<a name=\"s4nsol\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_4%28n%29+%3D+%5Ctfrac%7B1%7D%7B30%7D%286n%5E5+%2B+15n%5E4+%2B+10n%5E3+-+n%29+%3D+%5Ctfrac%7B1%7D%7B5%7Dn%5E5+%2B+%5Ctfrac%7B1%7D%7B2%7Dn%5E4+%2B+%5Ctfrac%7B1%7D%7B3%7Dn%5E3+-%5Ctfrac%7B1%7D%7B30%7Dn+%5C%5C+%5C+%5C+%5C+%5C+%2822%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_4(n) = \\tfrac{1}{30}(6n^5 + 15n^4 + 10n^3 - n) = \\tfrac{1}{5}n^5 + \\tfrac{1}{2}n^4 + \\tfrac{1}{3}n^3 -\\tfrac{1}{30}n \\\\ \\ \\ \\ \\ (22)' title='\\displaystyle S_4(n) = \\tfrac{1}{30}(6n^5 + 15n^4 + 10n^3 - n) = \\tfrac{1}{5}n^5 + \\tfrac{1}{2}n^4 + \\tfrac{1}{3}n^3 -\\tfrac{1}{30}n \\\\ \\ \\ \\ \\ (22)' class='latex' \/><\/p>\n<p><a name=\"s4nsol\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"s4nsol\"><\/a><\/p>\n<p>A table of the first few values is<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+n%3A+1%2C2%2C3%2C4%2C5%2C6%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle n: 1,2,3,4,5,6\\ldots' title='\\displaystyle n: 1,2,3,4,5,6\\ldots' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_4%28n%29%3A+1%2C17%2C98%2C354%2C979%2C2275%5Cldots&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_4(n): 1,17,98,354,979,2275\\ldots' title='\\displaystyle S_4(n): 1,17,98,354,979,2275\\ldots' class='latex' \/><\/p>\n<h4>Using a Symbolic Computation package<\/h4>\n<p>A computational algebra system such as Maxima, Maple, Mathematica, or Sage, can handle hairy algebraic simplifications such as the one in <a href=\"#s4nSOLSYM\">(4 SOL SYMB)<\/a> quite easily. See Figure <a href=\"#figs4nsolmax\">3<\/a>, which shows a typical result using the Maxima software &#8212; available freely.[<a href=\"#Maxima\" name=\"CITEMaxima\">Max09<\/a>] To find out how Maxima is able to handle complicated symbolical algebra, see [<a href=\"#Wilf\/A=B\" name=\"CITEWilf\/A=B\">PWZ<\/a>].<\/p>\n<div id=\"attachment_597\" style=\"width: 406px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-1\/s4nsol\" rel=\"attachment wp-att-597\"><img decoding=\"async\" aria-describedby=\"caption-attachment-597\" loading=\"lazy\" class=\"size-full wp-image-597\" title=\"S4nSol\" src=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/S4nSol.png\" alt=\"Symbolic Simplification in Maxima\" width=\"396\" height=\"266\" srcset=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/S4nSol.png 396w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/S4nSol-300x201.png 300w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><\/a><p id=\"caption-attachment-597\" class=\"wp-caption-text\">Symbolic Simplification in Maxima<\/p><\/div>\n<p><a name=\"figs4nsolmax\"><\/a><\/p>\n<h4>6. Next Steps: The General Case<\/h4>\n<p>Applying the method above to the general case <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_r%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5En+k%5Er&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_r(n) = \\sum_{k=1}^n k^r' title='S_r(n) = \\sum_{k=1}^n k^r' class='latex' \/> yields the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' \/>-th order recurrence relation:<br \/>\n<a name=\"spnsol\"><\/a><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_r%28n%29+%3D+%5Cfrac%7B1%7D%7B1%2B%5Calpha_%7Br-1%7D%28r%29%7D%5Cleft%28n%5E2+%2B+n%5Er+%2B+%5Csum_%7Bj%3D1%7D%5E%7Br-1%7D+C_%7Br-1%7D%28j%29S_j%28n-1%29+-+%5Csum_%7Bj%3D1%7D%5E%7Br-1%7D+%5Calpha_%7Br-1%7D%28j%29+S_j%28n%29%5Cright%29%2C+%5C+%5C+%5C+%5C+%5C+%2823%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_r(n) = \\frac{1}{1+\\alpha_{r-1}(r)}\\left(n^2 + n^r + \\sum_{j=1}^{r-1} C_{r-1}(j)S_j(n-1) - \\sum_{j=1}^{r-1} \\alpha_{r-1}(j) S_j(n)\\right), \\ \\ \\ \\ \\ (23)' title='\\displaystyle S_r(n) = \\frac{1}{1+\\alpha_{r-1}(r)}\\left(n^2 + n^r + \\sum_{j=1}^{r-1} C_{r-1}(j)S_j(n-1) - \\sum_{j=1}^{r-1} \\alpha_{r-1}(j) S_j(n)\\right), \\ \\ \\ \\ \\ (23)' class='latex' \/><\/p>\n<p><a name=\"spnsol\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"spnsol\"><\/a> where <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Calpha_%7Br-1%7D%28j%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\alpha_{r-1}(j)' title='\\alpha_{r-1}(j)' class='latex' \/> is the coefficient of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%5Ej&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^j' title='n^j' class='latex' \/> in the polynomial solution to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_%7Br-1%7D%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_{r-1}(n)' title='S_{r-1}(n)' class='latex' \/>, and<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+C_%7Br-1%7D%28j%29+%3D+%5Cleft%5Bn%5Cbinom%7Br-1%7D%7Bj%7D+-+%5Cbinom%7Br-1%7D%7Bj-1%7D%5Cright%5D.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle C_{r-1}(j) = \\left[n\\binom{r-1}{j} - \\binom{r-1}{j-1}\\right].' title='\\displaystyle C_{r-1}(j) = \\left[n\\binom{r-1}{j} - \\binom{r-1}{j-1}\\right].' class='latex' \/><\/p>\n<p>The details of this derivation and its solution are given in <a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-2\" rel=\"noopener\" target=\"_blank\"><em>Finite Summations, Part 2<\/em><\/a> of this paper, [<a href=\"#Ebrahim\/Sumkp2\" name=\"CITEEbrahim\/Sumkp2\">Ebr10a<\/a>].<\/p>\n<p>To obtain a direct (non-iterative) general solution to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_r%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_r(n)' title='S_r(n)' class='latex' \/> requires a different approach. In <a href=\"finite-summations-3\">Part 3 of this paper<\/a>, [<a href=\"#Ebrahim\/Sumkp3\" name=\"CITEEbrahim\/Sumkp3\">EO10<\/a>], we use a matrix method and a linear independence argument from linear algebra to obtain a general closed form solution.<\/p>\n<h3>7. Conclusion and Commentary<\/h3>\n<h4>Summary<\/h4>\n<p>In the above discussion, we have motivated and illustrated an bootstrap method using recurrence relations that yields closed form formulas for finite summations of any integer power in terms of lower order finite summations.<\/p>\n<p>The closed form formulas for the first four powers were developed to motivate the approach and illustrate the method:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28N%29+%3D+%5Csum_%7Bk%3D1%7D%5En+k+%3D+%5Ctfrac%7B1%7D%7B2%7D%28n%5E2%2Bn%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(N) = \\sum_{k=1}^n k = \\tfrac{1}{2}(n^2+n)' title='\\displaystyle S_1(N) = \\sum_{k=1}^n k = \\tfrac{1}{2}(n^2+n)' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_2%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5En+k%5E2+%3D+%5Ctfrac%7B1%7D%7B6%7D%282n%5E3%2B3n%5E2%2Bn%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_2(n) = \\sum_{k=1}^n k^2 = \\tfrac{1}{6}(2n^3+3n^2+n)' title='\\displaystyle S_2(n) = \\sum_{k=1}^n k^2 = \\tfrac{1}{6}(2n^3+3n^2+n)' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_3%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5En+k%5E3+%3D+%5Ctfrac%7B1%7D%7B4%7D%28n%5E4%2B2n%5E3%2Bn%5E2%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_3(n) = \\sum_{k=1}^n k^3 = \\tfrac{1}{4}(n^4+2n^3+n^2)' title='\\displaystyle S_3(n) = \\sum_{k=1}^n k^3 = \\tfrac{1}{4}(n^4+2n^3+n^2)' class='latex' \/><\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_4%28n%29+%3D+%5Csum_%7Bk%3D1%7D%5En+k%5E4+%3D+%5Ctfrac%7B1%7D%7B30%7D%286n%5E5+%2B+15n%5E4+%2B+10n%5E3+-+n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_4(n) = \\sum_{k=1}^n k^4 = \\tfrac{1}{30}(6n^5 + 15n^4 + 10n^3 - n)' title='\\displaystyle S_4(n) = \\sum_{k=1}^n k^4 = \\tfrac{1}{30}(6n^5 + 15n^4 + 10n^3 - n)' class='latex' \/><\/p>\n<p>Using this method, one can obtain the closed form formulas for any finite sum of integral powers.<\/p>\n<h4>Observations<\/h4>\n<p>Observe the coefficients of the polynomial solution to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_r%28n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_r(n)' title='S_r(n)' class='latex' \/> sum to unity. This is a necessary condition due to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_r%281%29+%3D+1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_r(1) = 1' title='S_r(1) = 1' class='latex' \/> for all <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' \/>, hence any polynomial in <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> must have coefficients summing to 1.<\/p>\n<p>The highest order coefficient is the integral of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=k%5Er&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k^r' title='k^r' class='latex' \/>, i.e. <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Ctfrac%7B1%7D%7Br%2B1%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\tfrac{1}{r+1}' title='\\tfrac{1}{r+1}' class='latex' \/>.<\/p>\n<p>The next coefficient is always <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Ctfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\tfrac{1}{2}' title='\\tfrac{1}{2}' class='latex' \/>.<\/p>\n<h4>Problems<\/h4>\n<ol>\n<li>Show that the sum of first <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> odd integers sums to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^2' title='n^2' class='latex' \/>. Use Method 1.<\/li>\n<\/ol>\n<h4>Acknowledgements<\/h4>\n<p>I thank Carol Ouellette for reading an early draft of this paper and for many thoughtful comments and suggestions.<\/p>\n<hr \/>\n<p>This article is available for download as a PDF <a href=\"downloads#Papers\">here<\/a>.<\/p>\n<p><em>&gt;&gt; Continue reading: <\/em><a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-2\" rel=\"noopener\" target=\"_blank\">Sums of Powers <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=x%5Er&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x^r' title='x^r' class='latex' \/>, Part 2<\/a><\/p>\n<p><em>&gt;&gt; Continue reading: <\/em><a href=\"finite-summations-3\">Sums of Powers <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=x%5Er&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x^r' title='x^r' class='latex' \/>, Part 3<\/a><\/p>\n<p><em>&gt;&gt; Continue reading: <\/em><a href=\"good-math-technique\">Good Mathematical Technique and the Case for Mathematical Insight<\/a><\/p>\n<hr \/>\n<h3>References<\/h3>\n<dl compact=\"compact\">\n<dt><a href=\"#CITEEbrahim\/Sumkp2\" name=\"Ebrahim\/Sumkp2\">[Ebr10a]<\/a><\/dt>\n<dd><a href=\"finite-summations-2\">Sums of Powers x<sup>r<\/sup>, part 2.<\/a><br \/>\nAssad Ebrahim.<br \/>\nFebruary 2010.<\/dd>\n<\/dl>\n<p><a href=\"#CITEEbrahim\/Sumkp3\" name=\"Ebrahim\/Sumkp3\">[EO10]<\/a><a href=\"finite-summations-3\">Sums of Powers x<sup>r<\/sup>, part 3.<\/a><br \/>\nAssad Ebrahim and Carol Ouellette.<br \/>\nApril 2010.<\/p>\n<p><a href=\"#CITEGauss\/Reckoning\" name=\"Gauss\/Reckoning\">[Hay06]<\/a>Gauss&#8217;s day of reckoning.<br \/>\nBrian Hayes.<br \/>\n<em>The American Scientist, Vol. 94, No. 3<\/em>, page 200, May\/June<br \/>\n2006.<\/p>\n<p><a href=\"#CITEMaxima\" name=\"Maxima\">[Max09]<\/a><em>Maxima, a Computer Algebra System<\/em>.<br \/>\n2009.<\/p>\n<p><a href=\"#CITEWilf\/A=B\" name=\"Wilf\/A=B\">[PWZ96]<\/a><em>A=B<\/em>.<br \/>\nMarko Petkovsek, Herbert Wilf, and Doron Zeilberger.<br \/>\n1996, AK Peters\/CRC Press<\/p>\n<hr \/>\n<h3>Footnotes<\/h3>\n<p><!-- UPDATE 1 FEB 2014: Doron Zeilberger's Opinion #129: http:\/\/www.math.rutgers.edu\/~zeilberg\/Opinion129.html further debunks the seven-year old Gauss myth citing a newly uncovered journal of Gauss... But my concern is the post date: April 1 (!) 2013. He does cite an excellent piece of investigative reporting by a well known computer science columnist, Brian Hayes. So my first instinct was to believe this. But is Doron Zeilberger taking the mick? --><\/p>\n<div class='footnotes' id='footnotes-585'>\n<div class='footnotedivider'><\/div>\n<ol>\n<li id='fn-585-1'> In actuality, despite being part of the handed down tradition of every mathematician, the attribution of this problem and solution to the historical Gauss seems to be apocryphal. Investigative reporter Brian Hayes (<a href=\"#Gauss\/Reckoning\" name=\"CITEGauss\/Reckoning\">Hay06<\/a>) was not able to find any primary historical source giving the problem, let alone the solution method. The only primary historical source that provides any mention at all merely gave an anecdote that Gauss was mathematical precocious at an early age, and that in one particular instance he surprised even the instructor with how swiftly he was able to dispatch with an assigned problem. <span class='footnotereverse'><a href='#fnref-585-1'>&#8617;<\/a><\/span><\/li>\n<li id='fn-585-2'> We also get the relation: <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%5E2+%3D+2S_1%28n-1%29+%2B+n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^2 = 2S_1(n-1) + n' title='n^2 = 2S_1(n-1) + n' class='latex' \/>, interpreted as the square <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^2' title='n^2' class='latex' \/> is composed of the diagonal <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> plus the two red triangles <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n-1)' title='S_1(n-1)' class='latex' \/> above and below the diagonal. From this we get <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_1%28n-1%29+%3D+%5Cfrac%7B1%7D%7B2%7D%28n%5E2+-+n%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_1(n-1) = \\frac{1}{2}(n^2 - n)' title='S_1(n-1) = \\frac{1}{2}(n^2 - n)' class='latex' \/> so<br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1%28n%29+%3D+%5Cfrac%7B1%7D%7B2%7D%28+%28n%2B1%29%5E2+-+%28n%2B1%29+%29+%3D+%5Cfrac%7B1%7D%7B2%7D%28+n%5E2+%2B+2n+%2B1+-+n+-+1%29+%3D+%5Cfrac%7B1%7D%7B2%7D%28n%5E2+%2Bn%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1(n) = \\frac{1}{2}( (n+1)^2 - (n+1) ) = \\frac{1}{2}( n^2 + 2n +1 - n - 1) = \\frac{1}{2}(n^2 +n)' title='\\displaystyle S_1(n) = \\frac{1}{2}( (n+1)^2 - (n+1) ) = \\frac{1}{2}( n^2 + 2n +1 - n - 1) = \\frac{1}{2}(n^2 +n)' class='latex' \/>, as shown before. <span class='footnotereverse'><a href='#fnref-585-2'>&#8617;<\/a><\/span><\/li>\n<li id='fn-585-3'> The first few odd integers can be written as <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=M&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='M' title='M' class='latex' \/> odd integers:\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_%7B1_%7B%5Cmbox%7Bodd%7D%7D%7D%28M%29%3D%5Csum_0%5EM+2k%2B1+%3D+1%2B3%2B5%2B%5Cldots%2B%282M%2B1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_{1_{\\mbox{odd}}}(M)=\\sum_0^M 2k+1 = 1+3+5+\\ldots+(2M+1)' title='\\displaystyle S_{1_{\\mbox{odd}}}(M)=\\sum_0^M 2k+1 = 1+3+5+\\ldots+(2M+1)' class='latex' \/><\/p>\n<p>or restricted to only odd integers while sum runs from 1 to <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/>, in which case the equivalent value <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=M+%3D+%5Clfloor+%5Ctfrac%7Bn-1%7D%7B2%7D+%5Crfloor&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='M = \\lfloor \\tfrac{n-1}{2} \\rfloor' title='M = \\lfloor \\tfrac{n-1}{2} \\rfloor' class='latex' \/>.<\/p>\n<p>Closed form formulas are:<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_%7B1_%7B%5Cmbox%7Bodd%7D%7D%7D%28M%29+%3D+%28M%2B1%29%5E2%2C&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_{1_{\\mbox{odd}}}(M) = (M+1)^2,' title='\\displaystyle S_{1_{\\mbox{odd}}}(M) = (M+1)^2,' class='latex' \/><\/p>\n<p>or<\/p>\n<p align=\"center\"><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_%7B1_%7B%5Cmbox%7Bodd%7D%7D%7D%28n%29+%3D+%5Cleft%28%5Cleft%5Clfloor+%5Ctfrac%7Bn-1%7D%7B2%7D+%5Cright%5Crfloor+%2B+1+%5Cright%29%5E2+%3D+%5Cleft%5Clfloor+%5Ctfrac%7Bn%2B1%7D%7B2%7D+%5Cright%5Crfloor%5E2.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_{1_{\\mbox{odd}}}(n) = \\left(\\left\\lfloor \\tfrac{n-1}{2} \\right\\rfloor + 1 \\right)^2 = \\left\\lfloor \\tfrac{n+1}{2} \\right\\rfloor^2.' title='\\displaystyle S_{1_{\\mbox{odd}}}(n) = \\left(\\left\\lfloor \\tfrac{n-1}{2} \\right\\rfloor + 1 \\right)^2 = \\left\\lfloor \\tfrac{n+1}{2} \\right\\rfloor^2.' class='latex' \/><\/p>\n<p> <span class='footnotereverse'><a href='#fnref-585-3'>&#8617;<\/a><\/span><\/li>\n<li id='fn-585-4'> If there is a moral to this story, it is that in mathematics, play around, stay curious and alert, and pursue interesting observations when they arise &#8212; they often turn out to be useful. <span class='footnotereverse'><a href='#fnref-585-4'>&#8617;<\/a><\/span><\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>2nd ed. January 21, 2018; 1st ed. Feb 8th, 2010<\/p>\n<p>Abstract This three part paper explores solving the sum of powers problem using discrete maths techniques (recurrence relations, matrix systems) to obtain a solution polynomials whose coefficients turn out to be exactly the Bernoulli numbers . Part 1 (this paper) solves the problem using recurrence [Read More&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[119],"tags":[25,26,28,23,29,27],"coauthors":[112],"class_list":["post-585","post","type-post","status-publish","format-standard","hentry","category-technical","tag-discrete-mathematics","tag-finite-summation","tag-heuristics","tag-maxima","tag-problem-solving","tag-results","odd"],"views":54515,"_links":{"self":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/comments?post=585"}],"version-history":[{"count":248,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"predecessor-version":[{"id":11609,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/585\/revisions\/11609"}],"wp:attachment":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/tags?post=585"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/coauthors?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}