{"id":622,"date":"2018-01-20T19:57:14","date_gmt":"2018-01-20T19:57:14","guid":{"rendered":"http:\/\/mathscitech.org\/articles\/?p=622"},"modified":"2024-05-10T13:19:10","modified_gmt":"2024-05-10T12:19:10","slug":"finite-summations-2","status":"publish","type":"post","link":"https:\/\/mathscitech.org\/articles\/finite-summations-2","title":{"rendered":"Sum of Integer Powers (Part 2)"},"content":{"rendered":"<p><strong>(Discrete Mathematics Techniques II)<\/strong><\/p>\n<p><em>1st ed. Feb 8th, 2010<\/em><\/p>\n<p><strong>Abstract<\/strong><br \/>\nWe continue the 3-part paper exploring how one might solve for themselves the general case of the sum-of-integer-powers problem <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7BN%7D+k%5Ep&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N) = \\sum_{k=1}^{N} k^p' title='S_p(N) = \\sum_{k=1}^{N} k^p' class='latex' \/> for arbitrary <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>, the coefficients of whose solution are the famous Bernoulli numbers (1716).  In this paper we show to how obtain a <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>-th order recurrence relation that can be used to <strong>iteratively<\/strong> obtain the closed form polynomial for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N)' title='S_p(N)' class='latex' \/> for any given <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>.  Source code is given for computing these polynomials using <a href=\"maxima\">Maxima<\/a>, an open-source (free) symbolic computation platform.  <!--more--><\/p>\n<p>This article generalizes the recurrence relation approach that is motivated and illustrated for small <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/> in <a href=\"finite-summations-1\"><em>Part 1<\/em><\/a>.  A <strong>direct<\/strong> (non-recursive) method for computing the closed-form solutions is given in <a href=\"finite-summations-3\"><em>Part 3<\/em><\/a>.<\/p>\n<p>A lovely paper by <a href=\"https:\/\/t.co\/a6wJ6DZqLe?amp=1\" rel=\"noopener noreferrer\" target=\"_blank\">Bearden (March 1996, American Mathematical Monthly)<\/a>, which was shared with me by a reader, tells the mathematical story nicely, with much of the history filled in.<\/p>\n<hr>\n<p><strong><em>NOTE: This paper contains many formulas.  As such, you may prefer reading the paper as a <a href=\"http:\/\/mathscitech.org\/papers\/ebrahim-sum-powers-2.pdf\">typeset PDF<\/a><\/em><\/strong>.<\/p>\n<hr>\n<p><h3>Finding <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N%29+%3D+%5Csum_%7Bk%3D1%7D%5EN+k%5Ep&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N) = \\sum_{k=1}^N k^p' title='S_p(N) = \\sum_{k=1}^N k^p' class='latex' \/><\/h3>\n<p>We desire a general formula that solves the finite-summation-of-integer-powers problem for any positive integer power <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>: <a name=\"spn\"><\/a><\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_p%28N%29+%3A%3D+%5Csum_%7Bk%3D1%7D%5EN+k%5Ep%2C+%5Cmbox%7B+%28where+%7D+p+%5Cin+%5Cmathbb%7BN%7D+%3D+%5C%7B0%2C1%2C2%2C%5Cldots%5C%7D%3B+N%5Cgeq0%29.+%5C+%5C+%5C+%5C+%5C+%281%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_p(N) := \\sum_{k=1}^N k^p, \\mbox{ (where } p \\in \\mathbb{N} = \\{0,1,2,\\ldots\\}; N\\geq0). \\ \\ \\ \\ \\ (1)' title='\\displaystyle S_p(N) := \\sum_{k=1}^N k^p, \\mbox{ (where } p \\in \\mathbb{N} = \\{0,1,2,\\ldots\\}; N\\geq0). \\ \\ \\ \\ \\ (1)' class='latex' \/><\/p>\n<p>We proceed using the method of recurrence relations that was illustrated for small <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/> in <a href=\"finite-summations-1\">Part 1 of this paper<\/a> <a href=\"#Ebrahim\/Sumkp1\" name=\"CITEEbrahim\/Sumkp1\">[Ebr10]<\/a> and that we prove inductively here.<\/p>\n<p>\n<b>Outline:<\/b> We obtain a simple first-order recurrence relation <a href=\"#spn1a\">(2)<\/a> and a more complicated recurrence relation <a href=\"#spn1b1\">(5)<\/a> that involves the coefficients of a lower order solution to <a href=\"#spn\">(1)<\/a>. A sequence of manipulations followed by substitution of the first recurrence into the second yields the recurrence relation solution <a href=\"#spnsol\">(10)<\/a>. Induction on <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/> shows that this is indeed the solution we seek, and that the closed form solution is a polynomial of degree <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p%2B1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p+1' title='p+1' class='latex' \/> with rational coefficients and no constant term.  The recurrence relation <a href=\"#spnsol\">(10)<\/a> allows the <a href=\"#solslist\">closed form expressions<\/a> to <a href=\"#spn\">(1)<\/a> to be computed iteratively for any <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>.  A direct (non-iterative) matrix method for computing the closed form solutions is given in <a href=\"finite-summations-3\"><em>Part 3<\/em><\/a> of this paper.<\/p>\n<p><h4>Deriving the Solution<\/h4>\n<p>\nProceeding now to the solution:<\/p>\n<blockquote><p><b>Claim 1<\/b> <em>The solution to <a href=\"#spn\">(1)<\/a> is a polynomial of degree <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p%2B1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p+1' title='p+1' class='latex' \/> with rational coefficients and no constant term. <\/em><\/p><\/blockquote>\n<p> In particular we shall find an expression <a href=\"#spnsol\">(10)<\/a> for this polynomial that allows a closed form for <a href=\"#spn\">(1)<\/a> to be computed iteratively for any given <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/> and all <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' \/>.<\/p>\n<p>\n<b>Proof: <\/b> (By Induction)<br \/>\nBase case <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p%3D0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p=0' title='p=0' class='latex' \/>: the solution is immediate: <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_0%28N%29+%3D+%5Csum_%7Bk%3D1%7D%5EN+1+%3D+N&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_0(N) = \\sum_{k=1}^N 1 = N' title='S_0(N) = \\sum_{k=1}^N 1 = N' class='latex' \/>. This is a polynomial of degree 1 with rational coefficients and no constant term.<\/p>\n<p>\nFor the inductive case, suppose the claim to be true for powers <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=1%2C2%2C%5Cldots%2Cp-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1,2,\\ldots,p-1' title='1,2,\\ldots,p-1' class='latex' \/>. We shall show that it is then true for case <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>.<\/p>\n<p>\nObtain the following recurrence directly from the problem statement <a href=\"#spn\">(1)<\/a>: <a name=\"spn1a\"><\/a><\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_p%28N%29+%3D+S_p%28N-1%29+%2B+N%5Ep.%5C+%5C+%5C+%5C+%5C+%282%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_p(N) = S_p(N-1) + N^p.\\ \\ \\ \\ \\ (2)' title='\\displaystyle S_p(N) = S_p(N-1) + N^p.\\ \\ \\ \\ \\ (2)' class='latex' \/><\/p>\n<p>This is a first recurrence.<\/p>\n<p>\nObtain a second recurrence from the problem statement <a href=\"#spn\">(1)<\/a> as follows: we have supposed in our induction hypothesis that the closed form solutions for the lower order problems are polynomials of a certain form. So we may write the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p-1' title='p-1' class='latex' \/> solution as: <a name=\"polyform\"><\/a><\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_%7Bp-1%7D%28N%29+%3D+%5Calpha_p+N%5Ep+%2B+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+N%5Ej.%5C+%5C+%5C+%5C+%28p%5Cgeq1%3B+N%5Cgeq0%29+%5C+%5C+%5C+%5C+%5C+%283%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_{p-1}(N) = \\alpha_p N^p + \\sum_{j=1}^{p-1} \\alpha_j N^j.\\ \\ \\ \\ (p\\geq1; N\\geq0) \\ \\ \\ \\ \\ (3)' title='\\displaystyle S_{p-1}(N) = \\alpha_p N^p + \\sum_{j=1}^{p-1} \\alpha_j N^j.\\ \\ \\ \\ (p\\geq1; N\\geq0) \\ \\ \\ \\ \\ (3)' class='latex' \/><\/p>\n<p>In writing <a href=\"#polyform\">(3)<\/a>, the highest order term, <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=N%5Ep&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='N^p' title='N^p' class='latex' \/>, and its coefficient <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Calpha_p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\alpha_p' title='\\alpha_p' class='latex' \/>, are emphasized. <\/p>\n<p>\nChange variables in <a href=\"#polyform\">(3)<\/a> from <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' \/> to <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' \/>, and solve for the highest order term <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=K%5Ep&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='K^p' title='K^p' class='latex' \/>: <a name=\"kp\"><\/a><\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+K%5Ep+%3D+%5Cfrac%7B1%7D%7B%5Calpha_p%7D%5Cleft%5BS_%7Bp-1%7D%28K%29+-+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+K%5Ej+%5Cright%5D.%5C+%5C+%5C+%5C+%5C+%284%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle K^p = \\frac{1}{\\alpha_p}\\left[S_{p-1}(K) - \\sum_{j=1}^{p-1} \\alpha_j K^j \\right].\\ \\ \\ \\ \\ (4)' title='\\displaystyle K^p = \\frac{1}{\\alpha_p}\\left[S_{p-1}(K) - \\sum_{j=1}^{p-1} \\alpha_j K^j \\right].\\ \\ \\ \\ \\ (4)' class='latex' \/><\/p>\n<p>\nSubstituting <a href=\"#kp\">(4)<\/a> into <a href=\"#spn\">(1)<\/a> gives the desired second recurrence, which we break into two summations for separate treatment:<br \/>\n<a name=\"spn1b1\"><\/a> <\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_p%28N%29+%3D+%5Csum_%7BK%3D1%7D%5EN+%5Cfrac%7B1%7D%7B%5Calpha_p%7D+%5Cleft%5BS_%7Bp-1%7D%28K%29+-+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+K%5Ej+%5Cright%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_p(N) = \\sum_{K=1}^N \\frac{1}{\\alpha_p} \\left[S_{p-1}(K) - \\sum_{j=1}^{p-1} \\alpha_j K^j \\right]' title='\\displaystyle S_p(N) = \\sum_{K=1}^N \\frac{1}{\\alpha_p} \\left[S_{p-1}(K) - \\sum_{j=1}^{p-1} \\alpha_j K^j \\right]' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%3D+%5Cfrac%7B1%7D%7B%5Calpha_p%7D+%5Csum_%7BK%3D1%7D%5EN+S_%7Bp-1%7D%28K%29+-+%5Cfrac%7B1%7D%7B%5Calpha_p%7D+%5Csum_%7BK%3D1%7D%5EN+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+K%5Ej.%5C+%5C+%5C+%5C+%5C+%285%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle = \\frac{1}{\\alpha_p} \\sum_{K=1}^N S_{p-1}(K) - \\frac{1}{\\alpha_p} \\sum_{K=1}^N \\sum_{j=1}^{p-1} \\alpha_j K^j.\\ \\ \\ \\ \\ (5)' title='\\displaystyle = \\frac{1}{\\alpha_p} \\sum_{K=1}^N S_{p-1}(K) - \\frac{1}{\\alpha_p} \\sum_{K=1}^N \\sum_{j=1}^{p-1} \\alpha_j K^j.\\ \\ \\ \\ \\ (5)' class='latex' \/>  <\/p>\n<p>Considering each summation in <a href=\"#spn1b1\">(5)<\/a> separately:<\/p>\n<p><h4>First summation in <a href=\"#spn1b1\">(5)<\/a>&#8230;<\/h4>\n<p> Expand the first summation and gather the terms by like (<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%7Bp-1%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{p-1}' title='{p-1}' class='latex' \/>)-powers of <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' \/>: <\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5Csum_%7Bk%3D1%7D%5EN+S_%7Bp-1%7D%28K%29+%3D+S_%7Bp-1%7D%281%29+%2B+S_%7Bp-1%7D%282%29+%2B+S_%7Bp-1%7D%283%29+%2B+%5Cldots+%2B+S_%7Bp-1%7D%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\sum_{k=1}^N S_{p-1}(K) = S_{p-1}(1) + S_{p-1}(2) + S_{p-1}(3) + \\ldots + S_{p-1}(N)' title='\\displaystyle \\sum_{k=1}^N S_{p-1}(K) = S_{p-1}(1) + S_{p-1}(2) + S_{p-1}(3) + \\ldots + S_{p-1}(N)' class='latex' \/><br \/>\n <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+1%5E%7Bp-1%7D+%2B+%281%5E%7Bp-1%7D+%2B+2%5E%7Bp-1%7D%29+%2B+%281%5E%7Bp-1%7D+%2B+2%5E%7Bp-1%7D+%2B+3%5E%7Bp-1%7D%29+%2B+%5Cldots+%2B+%281%5E%7Bp-1%7D+%2B+2%5E%7Bp-1%7D+%2B+3%5E%7Bp-1%7D+%2B+%5Cldots+%2B+N%5E%7Bp-1%7D%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = 1^{p-1} + (1^{p-1} + 2^{p-1}) + (1^{p-1} + 2^{p-1} + 3^{p-1}) + \\ldots + (1^{p-1} + 2^{p-1} + 3^{p-1} + \\ldots + N^{p-1})' title='\\displaystyle \\ \\ \\ \\ \\ = 1^{p-1} + (1^{p-1} + 2^{p-1}) + (1^{p-1} + 2^{p-1} + 3^{p-1}) + \\ldots + (1^{p-1} + 2^{p-1} + 3^{p-1} + \\ldots + N^{p-1})' class='latex' \/><br \/>\n <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+N%281%5E%7Bp-1%7D%29+%2B+%28N-1%29%282%5E%7Bp-1%7D%29+%2B+%5Cldots+%2B+2%28N-1%29%5E%7Bp-1%7D+%2B+1%28N%5E%7Bp-1%7D%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = N(1^{p-1}) + (N-1)(2^{p-1}) + \\ldots + 2(N-1)^{p-1} + 1(N^{p-1})' title='\\displaystyle \\ \\ \\ \\ \\ = N(1^{p-1}) + (N-1)(2^{p-1}) + \\ldots + 2(N-1)^{p-1} + 1(N^{p-1})' class='latex' \/><br \/>\n <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_%7Bk%3D0%7D%5E%7BN-1%7D+%28N-K%29%28K%2B1%29%5E%7Bp-1%7D%5C+%5C+%5C+%5C+%5C+%286%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{k=0}^{N-1} (N-K)(K+1)^{p-1}\\ \\ \\ \\ \\ (6)' title='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{k=0}^{N-1} (N-K)(K+1)^{p-1}\\ \\ \\ \\ \\ (6)' class='latex' \/><a name=\"star1a\"><\/a><br \/>\n Expand the binomial power in <a href=\"#star1a\">(6)<\/a> using the binomial formula:<br \/>\n <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_%7Bk%3D0%7D%5E%7BN-1%7D+%28N-K%29%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%5Cbinom%7Bp-1%7D%7Bj%7D+K%5Ej&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{k=0}^{N-1} (N-K)\\sum_{j=0}^{p-1} \\binom{p-1}{j} K^j' title='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{k=0}^{N-1} (N-K)\\sum_{j=0}^{p-1} \\binom{p-1}{j} K^j' class='latex' \/><br \/>\n <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_%7Bk%3D0%7D%5E%7BN-1%7D+%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%28N-K%29%5Cbinom%7Bp-1%7D%7Bj%7D+K%5Ej&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{k=0}^{N-1} \\sum_{j=0}^{p-1} (N-K)\\binom{p-1}{j} K^j' title='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{k=0}^{N-1} \\sum_{j=0}^{p-1} (N-K)\\binom{p-1}{j} K^j' class='latex' \/><br \/>\n <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_%7Bk%3D0%7D%5E%7BN-1%7D+%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%5Cbinom%7Bp-1%7D%7Bj%7D+%5Cleft%5BNK%5Ej+-K%5E%7Bj%2B1%7D%5Cright%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{k=0}^{N-1} \\sum_{j=0}^{p-1} \\binom{p-1}{j} \\left[NK^j -K^{j+1}\\right]' title='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{k=0}^{N-1} \\sum_{j=0}^{p-1} \\binom{p-1}{j} \\left[NK^j -K^{j+1}\\right]' class='latex' \/><br \/>\n Interchange the order of summation:<br \/>\n <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%5Cbinom%7Bp-1%7D%7Bj%7D+%5Csum_%7Bk%3D0%7D%5E%7BN-1%7D+%5Cleft%5BNK%5Ej+-K%5E%7Bj%2B1%7D%5Cright%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{j=0}^{p-1} \\binom{p-1}{j} \\sum_{k=0}^{N-1} \\left[NK^j -K^{j+1}\\right]' title='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{j=0}^{p-1} \\binom{p-1}{j} \\sum_{k=0}^{N-1} \\left[NK^j -K^{j+1}\\right]' class='latex' \/><br \/>\n Pull the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=K%3D0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='K=0' title='K=0' class='latex' \/> term out of both summations. NOTE: <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0%5E0+%3D+1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0^0 = 1' title='0^0 = 1' class='latex' \/>   <sup class='footnote'><a href='#fn-622-1' id='fnref-622-1' onclick='return fdfootnote_show(622)'>1<\/a><\/sup><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+N+%2B+%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%5Cbinom%7Bp-1%7D%7Bj%7D+%5Csum_%7Bk%3D1%7D%5E%7BN-1%7D+%5Cleft%5BNK%5Ej+-K%5E%7Bj%2B1%7D%5Cright%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = N + \\sum_{j=0}^{p-1} \\binom{p-1}{j} \\sum_{k=1}^{N-1} \\left[NK^j -K^{j+1}\\right]' title='\\displaystyle \\ \\ \\ \\ \\ = N + \\sum_{j=0}^{p-1} \\binom{p-1}{j} \\sum_{k=1}^{N-1} \\left[NK^j -K^{j+1}\\right]' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+N+%2B+%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%5Cbinom%7Bp-1%7D%7Bj%7D+%5Cleft%5B%5Csum_%7Bk%3D1%7D%5E%7BN-1%7D+NK%5Ej+-%5Csum_%7Bk%3D1%7D%5E%7BN-1%7DK%5E%7Bj%2B1%7D%5Cright%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = N + \\sum_{j=0}^{p-1} \\binom{p-1}{j} \\left[\\sum_{k=1}^{N-1} NK^j -\\sum_{k=1}^{N-1}K^{j+1}\\right]' title='\\displaystyle \\ \\ \\ \\ \\ = N + \\sum_{j=0}^{p-1} \\binom{p-1}{j} \\left[\\sum_{k=1}^{N-1} NK^j -\\sum_{k=1}^{N-1}K^{j+1}\\right]' class='latex' \/><br \/>\nRecognize the appearance of the finite sum of integer powers, but of lower order:<br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+N+%2B+%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%5Cbinom%7Bp-1%7D%7Bj%7D+NS_j%28N-1%29+-+%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%5Cbinom%7Bp-1%7D%7Bj%7D+S_%7Bj%2B1%7D%28N-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = N + \\sum_{j=0}^{p-1} \\binom{p-1}{j} NS_j(N-1) - \\sum_{j=0}^{p-1} \\binom{p-1}{j} S_{j+1}(N-1)' title='\\displaystyle \\ \\ \\ \\ \\ = N + \\sum_{j=0}^{p-1} \\binom{p-1}{j} NS_j(N-1) - \\sum_{j=0}^{p-1} \\binom{p-1}{j} S_{j+1}(N-1)' class='latex' \/><br \/>\nShifting indices in second summation, see <a href=\"#GKP\/Concrete\" name=\"CITEGKP\/Concrete\">[GKP]<\/a> and <a href=\"#Knuth\/TAOCP\" name=\"CITEKnuth\/TAOCP\">[Knu]<\/a>for index manipulation techniques:<br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+N+%2B+%5Csum_%7Bj%3D0%7D%5E%7Bp-1%7D+%5Cbinom%7Bp-1%7D%7Bj%7D+N+S_j%28N-1%29+-+%5Csum_%7Bj%3D1%7D%5E%7Bp%7D+%5Cbinom%7Bp-1%7D%7Bj-1%7D+S_j%28N-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = N + \\sum_{j=0}^{p-1} \\binom{p-1}{j} N S_j(N-1) - \\sum_{j=1}^{p} \\binom{p-1}{j-1} S_j(N-1)' title='\\displaystyle \\ \\ \\ \\ \\ = N + \\sum_{j=0}^{p-1} \\binom{p-1}{j} N S_j(N-1) - \\sum_{j=1}^{p} \\binom{p-1}{j-1} S_j(N-1)' class='latex' \/><br \/>\nPeel off <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0' title='0' class='latex' \/>-th term from first sum and <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>-th term from second sum to combine the rest:<br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+N+%2B+N%28N-1%29+-+S_p%28N-1%29+%2B+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+S_j%28N-1%29%5Cleft%5BN%5Cbinom%7Bp-1%7D%7Bj%7D+-+%5Cbinom%7Bp-1%7D%7Bj-1%7D%5Cright%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = N + N(N-1) - S_p(N-1) + \\sum_{j=1}^{p-1} S_j(N-1)\\left[N\\binom{p-1}{j} - \\binom{p-1}{j-1}\\right]' title='\\displaystyle \\ \\ \\ \\ \\ = N + N(N-1) - S_p(N-1) + \\sum_{j=1}^{p-1} S_j(N-1)\\left[N\\binom{p-1}{j} - \\binom{p-1}{j-1}\\right]' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+N%5E2+-+S_p%28N-1%29+%2B+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+S_j%28N-1%29%5Cleft%5BN%5Cbinom%7Bp-1%7D%7Bj%7D+-+%5Cbinom%7Bp-1%7D%7Bj-1%7D%5Cright%5D%5C+%5C+%5C+%5C+%287%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = N^2 - S_p(N-1) + \\sum_{j=1}^{p-1} S_j(N-1)\\left[N\\binom{p-1}{j} - \\binom{p-1}{j-1}\\right]\\ \\ \\ \\ (7)' title='\\displaystyle \\ \\ \\ \\ \\ = N^2 - S_p(N-1) + \\sum_{j=1}^{p-1} S_j(N-1)\\left[N\\binom{p-1}{j} - \\binom{p-1}{j-1}\\right]\\ \\ \\ \\ (7)' class='latex' \/><a name=\"star1b\"><\/a>\n<\/p>\n<h4>Second summation in <a href=\"#spn1b1\">(5)<\/a>&#8230;<\/h4>\n<p>The second summation term in <a href=\"#spn1b1\">(5)<\/a> is a double summation. Recognize that the finite sum of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=K%5Ej&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='K^j' title='K^j' class='latex' \/> summed over <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' \/> is in fact <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_j%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_j(N)' title='S_j(N)' class='latex' \/>. So interchange the order of summation and proceed:  <\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Csum_%7Bk%3D1%7D%5EN+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+K%5Ej+%3D+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+%5Cleft%28%5Csum_%7Bk%3D1%7D%5EN+k%5Ej%5Cright%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\sum_{k=1}^N \\sum_{j=1}^{p-1} \\alpha_j K^j = \\sum_{j=1}^{p-1} \\alpha_j \\left(\\sum_{k=1}^N k^j\\right)' title='\\sum_{k=1}^N \\sum_{j=1}^{p-1} \\alpha_j K^j = \\sum_{j=1}^{p-1} \\alpha_j \\left(\\sum_{k=1}^N k^j\\right)' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5C+%5C+%5C+%5C+%5C+%3D+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+S_j%28N%29.%5C+%5C+%5C+%5C+%288%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{j=1}^{p-1} \\alpha_j S_j(N).\\ \\ \\ \\ (8)' title='\\displaystyle \\ \\ \\ \\ \\ = \\sum_{j=1}^{p-1} \\alpha_j S_j(N).\\ \\ \\ \\ (8)' class='latex' \/><a name=\"star2\"><\/a><\/p>\n<p><h4>Arriving at the final form of the second recurrence&#8230;<\/h4>\n<p>Combining <a href=\"#star1b\">(7)<\/a> and <a href=\"#star2\">(8)<\/a> into the second recurrence <a href=\"#spn1b1\">(5)<\/a> gives the simplified second recurrence: <a name=\"spn1b\"><\/a><\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle++S_p%28N%29+%3D+%5Cfrac%7B1%7D%7B%5Calpha_p%7D+%5Cleft%5C%7BN%5E2+-+S_p%28N-1%29+%2B+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+C_j%28N%29S_j%28N-1%29+-+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+S_j%28N%29+%5Cright%5C%7D%2C+%5C+%5C+%5C+%5C+%5C+%289%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle  S_p(N) = \\frac{1}{\\alpha_p} \\left\\{N^2 - S_p(N-1) + \\sum_{j=1}^{p-1} C_j(N)S_j(N-1) - \\sum_{j=1}^{p-1} \\alpha_j S_j(N) \\right\\}, \\ \\ \\ \\ \\ (9)' title='\\displaystyle  S_p(N) = \\frac{1}{\\alpha_p} \\left\\{N^2 - S_p(N-1) + \\sum_{j=1}^{p-1} C_j(N)S_j(N-1) - \\sum_{j=1}^{p-1} \\alpha_j S_j(N) \\right\\}, \\ \\ \\ \\ \\ (9)' class='latex' \/><\/p>\n<p>where <\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+C_j%28N%29+%3D+%5Cleft%5B%5Cbinom%7Bp-1%7D%7Bj%7D+N+-+%5Cbinom%7Bp-1%7D%7Bj-1%7D%5Cright%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle C_j(N) = \\left[\\binom{p-1}{j} N - \\binom{p-1}{j-1}\\right]' title='\\displaystyle C_j(N) = \\left[\\binom{p-1}{j} N - \\binom{p-1}{j-1}\\right]' class='latex' \/><\/p>\n<p> is a linear 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' \/> with binomial coefficients.<\/p>\n<p>\nSubstituting <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N-1)' title='S_p(N-1)' class='latex' \/> from the first recurrence <a href=\"#spn1a\">(2)<\/a> into <a href=\"#spn1b\">(5)<\/a> yields: <\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_p%28N%29+%3D+%5Cfrac%7B1%7D%7B%5Calpha_p%7D+%5Cleft%5C%7BN%5E2+-+S_p%28N%29+%2B+N%5Ep+%2B+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+C_j%28N%29+S_j%28N-1%29+-+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+S_j%28N%29+%5Cright%5C%7D.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_p(N) = \\frac{1}{\\alpha_p} \\left\\{N^2 - S_p(N) + N^p + \\sum_{j=1}^{p-1} C_j(N) S_j(N-1) - \\sum_{j=1}^{p-1} \\alpha_j S_j(N) \\right\\}.' title='\\displaystyle S_p(N) = \\frac{1}{\\alpha_p} \\left\\{N^2 - S_p(N) + N^p + \\sum_{j=1}^{p-1} C_j(N) S_j(N-1) - \\sum_{j=1}^{p-1} \\alpha_j S_j(N) \\right\\}.' class='latex' \/><\/p>\n<p> Collecting the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N)' title='S_p(N)' class='latex' \/> terms and simplifying gives a <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>-th order recurrence relation that supplies a closed form expression for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N)' title='S_p(N)' class='latex' \/> in terms of lower order summations: <a name=\"spnsol\"><\/a><\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_p%28N%29+%3D+%5Cfrac%7B1%7D%7B1%2B%5Calpha_p%7D%5Cleft%5C%7BN%5E2+%2B+N%5Ep+%2B+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+C_j%28N%29+S_j%28N-1%29+-+%5Csum_%7Bj%3D1%7D%5E%7Bp-1%7D+%5Calpha_j+S_j%28N%29+%5Cright%5C%7D%2C+%5C+%5C+%5C+%5C+%5C+%2810%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_p(N) = \\frac{1}{1+\\alpha_p}\\left\\{N^2 + N^p + \\sum_{j=1}^{p-1} C_j(N) S_j(N-1) - \\sum_{j=1}^{p-1} \\alpha_j S_j(N) \\right\\}, \\ \\ \\ \\ \\ (10)' title='\\displaystyle S_p(N) = \\frac{1}{1+\\alpha_p}\\left\\{N^2 + N^p + \\sum_{j=1}^{p-1} C_j(N) S_j(N-1) - \\sum_{j=1}^{p-1} \\alpha_j S_j(N) \\right\\}, \\ \\ \\ \\ \\ (10)' class='latex' \/><\/p>\n<p>where the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Calpha_j&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\alpha_j' title='\\alpha_j' class='latex' \/> are the coefficients from the closed form solution of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_%7Bp-1%7D%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_{p-1}(N)' title='S_{p-1}(N)' class='latex' \/>, and <\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+C_j+%3D+%5Cleft%5BN%5Cbinom%7Bp-1%7D%7Bj%7D+-+%5Cbinom%7Bp-1%7D%7Bj-1%7D%5Cright%5D.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle C_j = \\left[N\\binom{p-1}{j} - \\binom{p-1}{j-1}\\right].' title='\\displaystyle C_j = \\left[N\\binom{p-1}{j} - \\binom{p-1}{j-1}\\right].' class='latex' \/><\/p>\n<p>\nInspection shows that the general solution <a href=\"#spnsol\">(10)<\/a> is a 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' \/> that satisfies all three elements of Claim 1: <\/p>\n<ol>\n<li> it has degree <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p%2B1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p+1' title='p+1' class='latex' \/>: <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_%7Bp-1%7D%28N-1%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_{p-1}(N-1)' title='S_{p-1}(N-1)' class='latex' \/> is a <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>-th order polynomial multiplied by the linear polynomial <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=C_p-1%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='C_p-1(N)' title='C_p-1(N)' class='latex' \/>,\n<li> it has no constant term\n<li> it has rational coefficients: the coefficients are sums and products of coefficients of lower order solutions (which are rational by the inductive hypothesis) and binomial coefficients (positive integers).\n<\/ol>\n<p> The Claim is therefore shown by induction.<\/p>\n<p>\n<b>Remarks<\/b> We have in <a href=\"#spnsol\">(10)<\/a> a recurrence formula for the finite-summation-of-integer-powers problem that can be used to derive closed form expressions for any given <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>. <\/p>\n<p>\n<a name=\"solslist\"><\/a><\/p>\n<h4>Listing of Closed Form Solutions<\/h4>\n<p> Figure <a href=\"#figSpNlist\">1<\/a> shows the first 10 closed form expressions computed iteratively using Maxima. Maxima source code is provided in Appendix A.<\/p>\n<p>\n<a name=\"figSpNlist\"><\/a><strong>Figure 1.<\/strong><br \/>\n<div id=\"attachment_1003\" style=\"width: 398px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-2\/spnlist\" rel=\"attachment wp-att-1003\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1003\" loading=\"lazy\" src=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/SpNlist.png\" alt=\"Figure 1. Closed form expressions for S_p(N), for p=1,2,...,10, computed using computer algebra system Maxima.\" title=\"SpNlist\" width=\"388\" height=\"490\" class=\"size-full wp-image-1003\" srcset=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/SpNlist.png 388w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/SpNlist-237x300.png 237w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/a><p id=\"caption-attachment-1003\" class=\"wp-caption-text\">Figure 1. Closed form expressions for S_p(N), for p=1,2,...,10, computed using computer algebra system Maxima.<\/p><\/div><\/p>\n<p><h4> Conclusion <\/h4>\n<p>\n<b>Summary<\/b> We have developed a <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>-th order recurrence relation <a href=\"#spnsol\">(10)<\/a> that, when used iteratively, gives the general closed form formula for the finite summation <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Csum_%7Bk%3D1%7D%5EN+k%5Ep&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\sum_{k=1}^N k^p' title='\\sum_{k=1}^N k^p' class='latex' \/> for any given <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>. <\/p>\n<p>\nComputing closed form formulas for specific <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/> from this <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>-th order recurrence is made substantially easier by a computer package, whether this is a symbolical algebra package such as Maxima, that gets through the tangle of algebra that arises out of what is effectively a chain of substitutions, or a programming language such as Ruby, that has flexible language structures allowing an iteration such as this to be coded up easily.<\/p>\n<p>\nAppendix A provides Maxima source code that uses <a href=\"#spnsol\">(10)<\/a> to iteratively compute the closed form expression for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N)' title='S_p(N)' class='latex' \/> for any given <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>.<\/p>\n<p>\n<b>Next Steps<\/b> Can we do better? Specifically, can we find a closed form expression for solution that can be obtained directly, i.e. without requiring iteration? What relations hold between and among the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N)' title='S_p(N)' class='latex' \/>? These matters are taken up in <a href=\"finite-summations-3\">Part 3 of this paper<\/a> <a href=\"#Ebrahim\/Sumkp3\" name=\"CITEEbrahim\/Sumkp3\">[EO10]<\/a>. In particular, <a href=\"finite-summations-3\">Part 3<\/a> uses matrix methods to obtain the closed form expressions shown in Figure <a href=\"#figSpNlist\">1<\/a> directly and without requiring iteration, by solving a linear system.<\/p>\n<p><h4> Appendix A: Maxima Source Code for Computing <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_p%28N%29+%3A%3D+%5Csum_%7Bk%3D1%7D%5EN+k%5Ep&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_p(N) := \\sum_{k=1}^N k^p' title='S_p(N) := \\sum_{k=1}^N k^p' class='latex' \/> <\/h4>\n<p> This Appendix gives Maxima source code for computing closed form expressions for the finite-summation-of-integer-powers problem <a href=\"#spn\">(1)<\/a> using the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=p&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p' title='p' class='latex' \/>-th order recurrence relation <a href=\"#spnsol\">(10)<\/a>. Appendix B shows how both Maxima and Ruby can be used for cross-checking both the derivation and the correctness of the implementation.<\/p>\n<p>The following <a href=\"..\/code\/sumkp_recurrence.mac\">Maxima code iteratively computes solutions<\/a> for given values of p, using this $p$-th order recurrence relation.<\/p>\n<p><strong>Excerpt<\/strong> (<a href=\"..\/code\/sumkp_recurrence.mac\">Full Source<\/a>):<\/p>\n<blockquote><p>\n\/*  **********************<br \/>\n    CORE COMPUTATION: p-th ORDER RECURRENCE<br \/>\n    &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n    PRIVATE Function: Computes p-th solution using p-th order recurrence relation<br \/>\n              of Equation (1-SOL), and prior solutions.<br \/>\n    Solution in: &#8220;Finite Summation of Integer Powers, Part 2&#8221;, Assad Ebrahim, Jan 2010<br \/>\n    Paper at: http:\/\/mathscitech.org\/papers\/ebrahim-sum-powers-2.pdf  *\/<br \/>\n<code><br \/>\nget_next_SpN(p) := block([a,sum1,sum2],<br \/>\n    s[0](n) := n,<\/code>                                \/* initial value *\/<br \/>\n<code>    c(p,j,n) := n*binomial(p-1,j) - binomial(p-1,j-1), <\/code> \/* definition *\/<\/p>\n<p><code>    a[p-1] : getcoeffs(s,p-1),   <\/code>        \/* get prior solution&#8217;s coefficients *\/<\/p>\n<p>    \/* compute the two summations in Equation (1-SOL) *\/<br \/>\n<code>    sum1 : ratsimp(sum(c(p,k,n)*s[k](n-1),k,1,p-1)),<br \/>\n    sum2 : ratsimp(sum(a[p-1][k+1]*s[k](n),k,1,p-1)),<br \/>\n <\/code><br \/>\n    \/* compute and assign solution (1-SOL) *\/<br \/>\n<code>    define(s[p](n),ratsimp((1\/(1+a[p-1][p+1]))*(n^2 + n^p + sum1 - sum2)))<br \/>\n)$<br \/>\n<\/code>\n<\/p><\/blockquote>\n<p>\n<a href=\"downloads#Code\">Download full Source Code here<\/a> (or <a href=\"..\/code\/sumkp_recurrence.mac\">grab this file<\/a>).<\/p>\n<p><h4> Appendix B: Using computing software to compute and check the derivation <a href=\"#spnsol\">(10)<\/a><\/h4>\n<p><b>Cross-Checking Derivation of the General Formula Using Maxima and Ruby<\/b><\/p>\n<p>\nWe can check the derivation using computing software, as follows: <\/p>\n<ul>\n<li> Use Maxima to obtain the simplified formula for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_5%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_5(N)' title='S_5(N)' class='latex' \/>.  (Figure <a href=\"#figs510maxclosedform\">2<\/a>)<br \/>\nNow, you could determine the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=C_j%28N%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='C_j(N)' title='C_j(N)' class='latex' \/> by hand, e.g.  <\/p>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+C_1+%3D+%5Cbinom%7B4%7D%7B1%7DN+-+%5Cbinom%7B4%7D%7B0%7D+%3D+4N-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle C_1 = \\binom{4}{1}N - \\binom{4}{0} = 4N-1' title='\\displaystyle C_1 = \\binom{4}{1}N - \\binom{4}{0} = 4N-1' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+C_2+%3D+%5Cbinom%7B4%7D%7B2%7DN+-+%5Cbinom%7B4%7D%7B1%7D+%3D+6N-4&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle C_2 = \\binom{4}{2}N - \\binom{4}{1} = 6N-4' title='\\displaystyle C_2 = \\binom{4}{2}N - \\binom{4}{1} = 6N-4' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+C_3+%3D+%5Cbinom%7B4%7D%7B3%7DN+-+%5Cbinom%7B4%7D%7B2%7D+%3D+4N-6&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle C_3 = \\binom{4}{3}N - \\binom{4}{2} = 4N-6' title='\\displaystyle C_3 = \\binom{4}{3}N - \\binom{4}{2} = 4N-6' class='latex' \/><br \/>\n<img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+C_4+%3D+%5Cbinom%7B4%7D%7B4%7DN+-+%5Cbinom%7B4%7D%7B3%7D+%3D+N-4%2C&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle C_4 = \\binom{4}{4}N - \\binom{4}{3} = N-4,' title='\\displaystyle C_4 = \\binom{4}{4}N - \\binom{4}{3} = N-4,' class='latex' \/><\/p>\n<p>but why bother? Maxima has the facility to evaluate binomial coefficients, so just code up the general definition:  <\/p>\n<blockquote><p>c(p,j,n):=n*binom(p-1,j) &#8211; binom(p-1,j-1);<\/p><\/blockquote>\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_5%28N%29+%3D+%5Ctfrac%7B1%7D%7B12%7D%5Cleft%5B2N%5E6+%2B+6N5+%2B+5N%5E4+-+N%5E2%5Cright%5D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_5(N) = \\tfrac{1}{12}\\left[2N^6 + 6N5 + 5N^4 - N^2\\right]' title='\\displaystyle S_5(N) = \\tfrac{1}{12}\\left[2N^6 + 6N5 + 5N^4 - N^2\\right]' class='latex' \/><\/p>\n<li> Use Maxima to evaluate this at, say, <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=N%3D10&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='N=10' title='N=10' class='latex' \/> (Figure <a href=\"#figs5n_eval10_max\">3<\/a>)\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_5%2810%29+%3D+220%2C825&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle S_5(10) = 220,825' title='\\displaystyle S_5(10) = 220,825' class='latex' \/><\/p>\n<li> Use Ruby to perform the brute force summation <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_5%2810%29+%3D+%5Csum_%7Bk%3D1%7D%5E%7B10%7D+k%5E5&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_5(10) = \\sum_{k=1}^{10} k^5' title='S_5(10) = \\sum_{k=1}^{10} k^5' class='latex' \/> (Figure <a href=\"#figs5n_eval10_ruby\">4<\/a>). This yields the same value: 220,825.\n<\/ul>\n<p> Observe that the two computations of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=S_5%2810%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_5(10)' title='S_5(10)' class='latex' \/> match. One can check at various values 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' \/> and convince oneself that the derivation is correct. Note: Being convinced of the correctness of a derivation through computing values is not the same thing as a <em>proof<\/em> of correctness. It is, however, important to catch errors, both typographical and in implementation.<\/p>\n<p>\n<a name=\"figs510maxclosedform\"><\/a><br \/>\n<strong>Figure 2.<\/strong><br \/>\n<div id=\"attachment_1004\" style=\"width: 311px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-2\/s5nsol-2\" rel=\"attachment wp-att-1004\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1004\" loading=\"lazy\" src=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/S5nSol1.png\" alt=\"Figure 2. Obtaining closed form for S_5(N) using Symbolic Simplification in Maxima\" title=\"S5nSol\" width=\"301\" height=\"206\" class=\"size-full wp-image-1004\" srcset=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/S5nSol1.png 301w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/S5nSol1-300x205.png 300w\" sizes=\"auto, (max-width: 301px) 100vw, 301px\" \/><\/a><p id=\"caption-attachment-1004\" class=\"wp-caption-text\">Figure 2. Obtaining closed form for S_5(N) using Symbolic Simplification in Maxima<\/p><\/div><\/p>\n<p><a name=\"figs5n_eval10_max\"><\/a><br \/>\n<strong>Figure 3.<\/strong><br \/>\n<div id=\"attachment_640\" style=\"width: 314px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-2\/s5_10_maxima_closedform\" rel=\"attachment wp-att-640\"><img decoding=\"async\" aria-describedby=\"caption-attachment-640\" loading=\"lazy\" src=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/s5_10_maxima_closedform.png\" alt=\"Figure 3. Evaluation of closed form S_5(10) in Maxima\" title=\"s5_10_maxima_closedform\" width=\"304\" height=\"78\" class=\"size-full wp-image-640\" srcset=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/s5_10_maxima_closedform.png 304w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/s5_10_maxima_closedform-300x76.png 300w\" sizes=\"auto, (max-width: 304px) 100vw, 304px\" \/><\/a><p id=\"caption-attachment-640\" class=\"wp-caption-text\">Figure 3. Evaluation of S_5(10) in Maxima<\/p><\/div><\/p>\n<p><a name=\"figs5n_eval10_ruby\"><\/a><br \/>\n<strong>Figure 4.<\/strong><br \/>\n<div id=\"attachment_641\" style=\"width: 398px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/mathscitech.org\/articles\/finite-summations-2\/s5_10_ruby_brute\" rel=\"attachment wp-att-641\"><img decoding=\"async\" aria-describedby=\"caption-attachment-641\" loading=\"lazy\" src=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/s5_10_ruby_brute.png\" alt=\"Figure 4. Brute force summation S_5(10) in Ruby (irb)\" title=\"s5_10_ruby_brute\" width=\"388\" height=\"50\" class=\"size-full wp-image-641\" srcset=\"https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/s5_10_ruby_brute.png 388w, https:\/\/mathscitech.org\/articles\/wp-content\/uploads\/2010\/02\/s5_10_ruby_brute-300x38.png 300w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/a><p id=\"caption-attachment-641\" class=\"wp-caption-text\">Figure 4. Brute force summation S_5(10) in Ruby (irb)<\/p><\/div><\/p>\n<p>\n<h4> Appendix C: Why <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0%5E0+%3D1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0^0 =1' title='0^0 =1' class='latex' \/> <\/h4>\n<p>\n A key step in the derivation of <a href=\"#star1b\">(7)<\/a> from <a href=\"#star1a\">(6)<\/a> relies on the fact that <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0%5E0+%3D+1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0^0 = 1' title='0^0 = 1' class='latex' \/>. Recall, we peeled off the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=K%3D0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='K=0' title='K=0' class='latex' \/> term of the inner summation to get: <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=N0%5Ej+-+0%5E%7Bj%2B1%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='N0^j - 0^{j+1}' title='N0^j - 0^{j+1}' class='latex' \/>. Peeling this out of the outer summation requires considering the expression for <em>all<\/em> <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=j&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='j' title='j' class='latex' \/>. Now, 0 raised to any <em>positive<\/em> power is 0, so we can dispel the case of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=j%3E0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='j&gt;0' title='j&gt;0' class='latex' \/>. But what is <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0%5E0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0^0' title='0^0' class='latex' \/>? A decision must be made: it is either <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0' title='0' class='latex' \/> or <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1' title='1' class='latex' \/>. Indeterminacy is not an options, since the situation is real and is required to continue the simplification. <\/p>\n<p>This question is treated here: <a href=\"zero-to-zero-power\">Why <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0%5E0+%3D1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0^0 =1' title='0^0 =1' class='latex' \/><\/a><\/p>\n<h4>Acknowledgements<\/h4>\n<p>\n I thank Carol Ouellette for reading an early draft of this paper and for many thoughtful comments and suggestions. <\/p>\n<hr>\n<p><em>>> Continue reading: <\/em><a href=\"finite-summations-3\">Finite Summations of Integer Powers <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=x%5Ep&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x^p' title='x^p' class='latex' \/>, Part 3<\/a><\/p>\n<p>This article is available for download as a PDF <a href=\"downloads#Papers\">here<\/a>.<\/p>\n<p>The Maxima source code implementing the recurrence relation solution is available for download <a href=\"downloads#Code\">here<\/a>.<\/p>\n<hr>\n<p><h3>References<\/h3>\n<dl compact=\"compact\">\n<dt><a href=\"#CITEEbrahim\/Sumkp1\" name=\"Ebrahim\/Sumkp1\">[Ebr10]<\/a><\/dt>\n<dd>\n<a href=\"finite-summations-1\">Finite summation of integer powers x<sup>p<\/sup>, part 1.<\/a><br \/>\n Assad Ebrahim.<br \/>\n February 2010.<\/p>\n<p><dt><a href=\"#CITEEbrahim\/Sumkp3\" name=\"Ebrahim\/Sumkp3\">[EO10]<\/a><\/dt>\n<dd>\n<a href=\"finite-summations-3\">Finite summation of integer powers x<sup>p<\/sup>, part 3.<\/a><br \/>\n Assad Ebrahim and Carol Ouellette.<br \/>\n April 2010.<\/p>\n<p><dt><a href=\"#CITEGKP\/Concrete\" name=\"GKP\/Concrete\">[GKP]<\/a><\/dt>\n<dd>\n<em>Concrete Mathematics: A Foundation for Computer Science<\/em>.<br \/>\n Ron Graham, Donald Knuth, and Oren Patashnik.<br \/>\n 1994, 2nd edition.<br \/>\n Addison Wesley.<\/p>\n<p><dt><a href=\"#CITEKnuth\/TAOCP\" name=\"Knuth\/TAOCP\">[Knu]<\/a><\/dt>\n<dd>\n<em>The Art of Computer Programming (3 Volumes)<\/em>.<br \/>\n Donald Knuth.<br \/>\n Addison Wesley.<br \/>\n 1968, 1969, 1973 (Latest boxed edition of 2011 includes Vol4A)\n<\/dl>\n<hr \/>\n<p><h3>Footnotes<\/h3>\n<div class='footnotes' id='footnotes-622'>\n<div class='footnotedivider'><\/div>\n<ol>\n<li id='fn-622-1'> Peel off the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=K%3D0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='K=0' title='K=0' class='latex' \/> term of the inner summation to get: <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=N0%5Ej+-+0%5E%7Bj%2B1%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='N0^j - 0^{j+1}' title='N0^j - 0^{j+1}' class='latex' \/>. Peeling this out of the outer summation requires considering the value of the expression when summed over <em>all<\/em> values of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=j&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='j' title='j' class='latex' \/>. Now, 0 raised to any <em>positive<\/em> power is 0, so we can dispel the case <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=j%3E0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='j&gt;0' title='j&gt;0' class='latex' \/>. This leaves:\n<p align=center><img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+%5Cbinom%7Bp-1%7D%7B0%7D%5Cleft%28N0%5E0+-+0%5E1%5Cright%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\displaystyle \\binom{p-1}{0}\\left(N0^0 - 0^1\\right)' title='\\displaystyle \\binom{p-1}{0}\\left(N0^0 - 0^1\\right)' class='latex' \/><\/p>\n<p> What is <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0%5E0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0^0' title='0^0' class='latex' \/>? A decision must be made: it is either <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0' title='0' class='latex' \/> or <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1' title='1' class='latex' \/>. Indeterminacy is not an option, since the situation is real and is required to continue the simplification. This step in the derivation of <a href=\"#star1b\">(7)<\/a> from <a href=\"#star1a\">(6)<\/a> relies on the empirical fact that <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0%5E0+%3D+1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0^0 = 1' title='0^0 = 1' class='latex' \/>. <\/p>\n<blockquote><p><b>Definition 1 (Empirical)<\/b> <em> <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=0%5E0+%3D+1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0^0 = 1' title='0^0 = 1' class='latex' \/> for <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=k%5Ej&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k^j' title='k^j' class='latex' \/>, where <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=k%2Cj&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k,j' title='k,j' class='latex' \/> are discrete variables.<\/em><\/p><\/blockquote>\n<p> (The empirical basis for this definition is discussed in Appendix C.) With this definition, the value of the <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=K%3D0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='K=0' title='K=0' class='latex' \/> term summed over all values of <img loading=\"lazy\" src='https:\/\/s0.wp.com\/latex.php?latex=j&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='j' title='j' class='latex' \/> is <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' \/>, and we proceed with the simplification toward <a href=\"#star1b\">(7)<\/a>. <span class='footnotereverse'><a href='#fnref-622-1'>&#8617;<\/a><\/span><\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>(Discrete Mathematics Techniques II)<\/p>\n<p>1st ed. Feb 8th, 2010<\/p>\n<p>Abstract We continue the 3-part paper exploring how one might solve for themselves the general case of the sum-of-integer-powers problem for arbitrary , the coefficients of whose solution are the famous Bernoulli numbers (1716). In this paper we show to how obtain a -th order 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,23,29,27,24],"coauthors":[112],"class_list":["post-622","post","type-post","status-publish","format-standard","hentry","category-technical","tag-discrete-mathematics","tag-finite-summation","tag-maxima","tag-problem-solving","tag-results","tag-ruby","odd"],"views":24194,"_links":{"self":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/622","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=622"}],"version-history":[{"count":59,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/622\/revisions"}],"predecessor-version":[{"id":11610,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/posts\/622\/revisions\/11610"}],"wp:attachment":[{"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/media?parent=622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/categories?post=622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/tags?post=622"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/mathscitech.org\/articles\/wp-json\/wp\/v2\/coauthors?post=622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}