How can you use combinations to find a general formula for the power series summation












1














I do not understand the fundamental theorem of calculus so I have been trying to find a proof that the antiderivative of a function evaluated at $x=b text{ and } x=a$ gives the area under the curve between $a text{ and } b$, if the calculation $F(b)-F(a)$ is evaluated, where $b>a$.



I attempted to do this using Riemann sums. I started by considering the graph of $y=x^n$.



While doing this I came across the need to find the general formula for the sum of powers. While trying to find this I found this question What is the general formula for power series summation?



The answer was very helpful. However I was unable to understand this part "We have $i^2=2{ichoose2}+{ichoose1}$" and how a similar identity could be formed for $i^3$ and as such $i^n$.



*This is the part of the answer I cannot seem to get my head around










share|cite|improve this question
























  • If you do out the math for the binomial coefficients, you should arrive at $i^2$, though I don't know how they arrived at that formula. You could look at some other approaches to obtaining a closed form of the summation. polysum.tripod.com (I like the alternative derivation given in the PDF on this page).
    – Tyberius
    Apr 9 '17 at 21:33
















1














I do not understand the fundamental theorem of calculus so I have been trying to find a proof that the antiderivative of a function evaluated at $x=b text{ and } x=a$ gives the area under the curve between $a text{ and } b$, if the calculation $F(b)-F(a)$ is evaluated, where $b>a$.



I attempted to do this using Riemann sums. I started by considering the graph of $y=x^n$.



While doing this I came across the need to find the general formula for the sum of powers. While trying to find this I found this question What is the general formula for power series summation?



The answer was very helpful. However I was unable to understand this part "We have $i^2=2{ichoose2}+{ichoose1}$" and how a similar identity could be formed for $i^3$ and as such $i^n$.



*This is the part of the answer I cannot seem to get my head around










share|cite|improve this question
























  • If you do out the math for the binomial coefficients, you should arrive at $i^2$, though I don't know how they arrived at that formula. You could look at some other approaches to obtaining a closed form of the summation. polysum.tripod.com (I like the alternative derivation given in the PDF on this page).
    – Tyberius
    Apr 9 '17 at 21:33














1












1








1







I do not understand the fundamental theorem of calculus so I have been trying to find a proof that the antiderivative of a function evaluated at $x=b text{ and } x=a$ gives the area under the curve between $a text{ and } b$, if the calculation $F(b)-F(a)$ is evaluated, where $b>a$.



I attempted to do this using Riemann sums. I started by considering the graph of $y=x^n$.



While doing this I came across the need to find the general formula for the sum of powers. While trying to find this I found this question What is the general formula for power series summation?



The answer was very helpful. However I was unable to understand this part "We have $i^2=2{ichoose2}+{ichoose1}$" and how a similar identity could be formed for $i^3$ and as such $i^n$.



*This is the part of the answer I cannot seem to get my head around










share|cite|improve this question















I do not understand the fundamental theorem of calculus so I have been trying to find a proof that the antiderivative of a function evaluated at $x=b text{ and } x=a$ gives the area under the curve between $a text{ and } b$, if the calculation $F(b)-F(a)$ is evaluated, where $b>a$.



I attempted to do this using Riemann sums. I started by considering the graph of $y=x^n$.



While doing this I came across the need to find the general formula for the sum of powers. While trying to find this I found this question What is the general formula for power series summation?



The answer was very helpful. However I was unable to understand this part "We have $i^2=2{ichoose2}+{ichoose1}$" and how a similar identity could be formed for $i^3$ and as such $i^n$.



*This is the part of the answer I cannot seem to get my head around







calculus combinatorics summation power-series riemann-sum






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 13 '17 at 12:21









Community

1




1










asked Apr 9 '17 at 20:22









Nav HariNav Hari

5117




5117












  • If you do out the math for the binomial coefficients, you should arrive at $i^2$, though I don't know how they arrived at that formula. You could look at some other approaches to obtaining a closed form of the summation. polysum.tripod.com (I like the alternative derivation given in the PDF on this page).
    – Tyberius
    Apr 9 '17 at 21:33


















  • If you do out the math for the binomial coefficients, you should arrive at $i^2$, though I don't know how they arrived at that formula. You could look at some other approaches to obtaining a closed form of the summation. polysum.tripod.com (I like the alternative derivation given in the PDF on this page).
    – Tyberius
    Apr 9 '17 at 21:33
















If you do out the math for the binomial coefficients, you should arrive at $i^2$, though I don't know how they arrived at that formula. You could look at some other approaches to obtaining a closed form of the summation. polysum.tripod.com (I like the alternative derivation given in the PDF on this page).
– Tyberius
Apr 9 '17 at 21:33




If you do out the math for the binomial coefficients, you should arrive at $i^2$, though I don't know how they arrived at that formula. You could look at some other approaches to obtaining a closed form of the summation. polysum.tripod.com (I like the alternative derivation given in the PDF on this page).
– Tyberius
Apr 9 '17 at 21:33










1 Answer
1






active

oldest

votes


















0














Firstly let's state in all that follows we will define binomial coefficients for $a,binmathbb{N}cup{0}$ as



$$binom{a}{b}=begin{cases} 0 & alt b\ frac{a!}{b!(a-b)!} & text{else}end{cases}$$



and define the finite difference operator $Delta$ such that for some function of $i$ $f(i)$ we have



$$Delta(f(i))=f(i+1)-f(i)$$



and



$$Delta^k(f(i)) = underbrace{Delta(Delta(Deltacdots (Delta}_{text{$k$ times}}(f(i)))cdots ))$$



Seems pretty straightforward right? It's a kind of finite differentiation and will come in handy. Anyway, on with the question...



Okay, let's take your example of $i^2$, we will list some values and finite differences in a table



$$begin{array}{c|c|c|c|c|c|c|c}
i & 0 & 1 & 2 & 3 & 4 & 5 & cdots\hline
i^2 & 0 & 1 & 4 & 9 & 16 & 25 & cdots\hline
Delta(i^2) & 1 & 3 & 5 & 7 & 9 & & cdots\hline
Delta^2(i^2) & 2 & 2 & 2 & 2 & & & cdots\hline
Delta^3(i^2) & 0 & 0 & 0 & & & & cdots\hline
end{array}$$



Now, we see that the finite differences eventually become $0$ as we go down the table just as repeated differentiation of powers of $i$ eventually becomes constant and then $0$. This always happens for finite differences of powers of $i$ because when we take



$$Delta i^n= (i+1)^n - i^n = left(i^n + sum_{k=0}^{n-1}binom{n}{k}i^kright) - i^n = sum_{k=0}^{n-1}binom{n}{k}i^k$$



thus reducing the highest power of $i$ by $1$, repeating this $n$ times will leave us with $0$.



Now I'm going to write these coefficients in a polynomial in $x$ and $y$ and this will seem unmotivated except that it is something that crops up frequently in combinatorics, here goes



$$begin{split}
y^0(2&+&1x&+&0x^2)\
y^1(2&+&3x&+&1x^2)\
y^2(2&+&5x&+&4x^2)\
y^3(2&+&7x&+&9x^2)\
y^4(0&+&9x&+&16x^2)+cdots\end{split}$$



Now, due to the nature of finite differences every successive row in this polynomial can be achieved from last by multiplying by $y(1+x)$, we see this has the effect of adding the term above and above and left one term together, it is the same reasoning that relates Pascal's identity in the famous triangle to the polynomial $smash{sum_{k=0}^{infty}y^k(1+x)^k}$. The main difference in this case is the $y^0$ polynomial in the top row (row $0$). In Pascal's triangle row $0$ is $y^0(1)$ in this case it is $y^0(2+1x+0x^2)$ or just $y^0(2+1x)$.



So to obtain row $1$ we multiply



$$y^0(2+1x)(y(1+x))=y^1(2+3x+1x^2)$$



to obtain row $2$ we multiply



$$y^0(2+1x)(y(1+x))^2=y^2(2+5x+4x^2+1x^3)$$



row $3$



$$y^0(2+1x)(y(1+x))^3=y^3(2+7x+9x^2+5x^3+1x^4)$$



and so forth, if we add these we get



$$g(x,y)=(2+1x)sum_{k=0}^{infty}y^k(1+x)^k$$



Notice that we will gain extra (redundant) terms in $g(x,y)$ that are not in our table, e.g. the first of these redundant terms will be $1y^2x^3$ in row $2$. These terms are not needed here as we shall see.



Anyway, we note that the general term $i^2$ is the coefficient of $y^ix^2$ in $g(x,y)$ and we can state this succinctly with $[y^ix^2]g(x,y)$.



Okay, let's express this by expanding the binomial as follows



$$begin{align}[y^ix^2]g(x,y) &= [y^ix^2](2+1x)sum_{k=0}^{infty}y^k(1+x)^k\
&=[y^ix^2](2+1x)sum_{k=0}^{infty}y^ksum_{j=0}^{k}binom{k}{j}x^j\
&=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}x^j+1binom{k}{j}x^{j+1}right)\
&=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}+1binom{k}{j-1}right)x^{j}\
&=2binom{i}{2}+1binom{i}{1}end{align}$$



as given in the question.





In general



Notice that in general the row $0$ polynomial of $i^n$ for $ninmathbb{N}$ will be of the form



$$y^0(Delta^n(0^n)+Delta^{n-1}(0^n)x+Delta^{n-2}(0^n)x^2+cdots+Delta(0^n)x^n)$$



and we will therefore be able to express



$$i^n= Delta^n(0^n)binom{i}{n}+Delta^{n-1}(0^n)binom{i}{n-1}+Delta^{n-2}(0^n)binom{i}{n-2}+cdots +Delta(0^n)binom{i}{1}$$



So all you need to do is find the top row (row $0$) polynomial for which you can use finite differences as we did in the example.



Another way is to notice that after repeated operations of $Delta$ on some $f(0)$ we have



$$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}f(j)$$



for the case of $f(i)=i^n$ we have



$$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}j^n$$



which are recognisable as being related to Stirling numbers of the second kind



$$S(n,k)= frac{1}{k!}sum_{j=0}^{k}(-1)^jbinom{k}{j}j^n$$



therefore



$$Delta^k(0^n)=k!S(n,k)$$



and our formula for $i^n$ is




$$i^n=n!S(n,n)binom{i}{n}+(n-1)!S(n,n-1)binom{i}{n-1}+(n-2)!S(n,n-2)binom{i}{n-2}+cdots +1!S(n,1)binom{i}{1}$$




This is easily summed using Pascals hockey stick rule on each term of the right hand side



$$sum_{r=m}^{i}binom{i}{m}=binom{i+1}{m+1}$$



giving




$$sum_{i=0}^{N}i^n=n!S(n,n)binom{N+1}{n+1}+(n-1)!S(n,n-1)binom{N+1}{n}+(n-2)!S(n,n-2)binom{N}{n-1}+cdots +1!S(n,1)binom{N}{2}$$




in our example case



$$begin{align}sum_{i=0}^{N}i^2=2!S(2,2)binom{N+1}{3}+1!S(2,1)binom{N+1}{2}&=2frac{(N+1)N(N-1)}{6}+frac{(N+1)N}{2}\&=frac{(2N+1)(N+1)N}{6}end{align}$$



Which is a well recognised result.



The power in this method should be self-evident.



In fact, although I said earlier that higher terms produced were redundant, if you look at the coefficients $[y^ix^3]g(x,y)$ for our example this is the desired summation itself. In general this also applies so that the desired summation is the coefficient of $y^ix^{n+1}$ in our 2 variable polynomial.






share|cite|improve this answer























    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2226693%2fhow-can-you-use-combinations-to-find-a-general-formula-for-the-power-series-summ%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Firstly let's state in all that follows we will define binomial coefficients for $a,binmathbb{N}cup{0}$ as



    $$binom{a}{b}=begin{cases} 0 & alt b\ frac{a!}{b!(a-b)!} & text{else}end{cases}$$



    and define the finite difference operator $Delta$ such that for some function of $i$ $f(i)$ we have



    $$Delta(f(i))=f(i+1)-f(i)$$



    and



    $$Delta^k(f(i)) = underbrace{Delta(Delta(Deltacdots (Delta}_{text{$k$ times}}(f(i)))cdots ))$$



    Seems pretty straightforward right? It's a kind of finite differentiation and will come in handy. Anyway, on with the question...



    Okay, let's take your example of $i^2$, we will list some values and finite differences in a table



    $$begin{array}{c|c|c|c|c|c|c|c}
    i & 0 & 1 & 2 & 3 & 4 & 5 & cdots\hline
    i^2 & 0 & 1 & 4 & 9 & 16 & 25 & cdots\hline
    Delta(i^2) & 1 & 3 & 5 & 7 & 9 & & cdots\hline
    Delta^2(i^2) & 2 & 2 & 2 & 2 & & & cdots\hline
    Delta^3(i^2) & 0 & 0 & 0 & & & & cdots\hline
    end{array}$$



    Now, we see that the finite differences eventually become $0$ as we go down the table just as repeated differentiation of powers of $i$ eventually becomes constant and then $0$. This always happens for finite differences of powers of $i$ because when we take



    $$Delta i^n= (i+1)^n - i^n = left(i^n + sum_{k=0}^{n-1}binom{n}{k}i^kright) - i^n = sum_{k=0}^{n-1}binom{n}{k}i^k$$



    thus reducing the highest power of $i$ by $1$, repeating this $n$ times will leave us with $0$.



    Now I'm going to write these coefficients in a polynomial in $x$ and $y$ and this will seem unmotivated except that it is something that crops up frequently in combinatorics, here goes



    $$begin{split}
    y^0(2&+&1x&+&0x^2)\
    y^1(2&+&3x&+&1x^2)\
    y^2(2&+&5x&+&4x^2)\
    y^3(2&+&7x&+&9x^2)\
    y^4(0&+&9x&+&16x^2)+cdots\end{split}$$



    Now, due to the nature of finite differences every successive row in this polynomial can be achieved from last by multiplying by $y(1+x)$, we see this has the effect of adding the term above and above and left one term together, it is the same reasoning that relates Pascal's identity in the famous triangle to the polynomial $smash{sum_{k=0}^{infty}y^k(1+x)^k}$. The main difference in this case is the $y^0$ polynomial in the top row (row $0$). In Pascal's triangle row $0$ is $y^0(1)$ in this case it is $y^0(2+1x+0x^2)$ or just $y^0(2+1x)$.



    So to obtain row $1$ we multiply



    $$y^0(2+1x)(y(1+x))=y^1(2+3x+1x^2)$$



    to obtain row $2$ we multiply



    $$y^0(2+1x)(y(1+x))^2=y^2(2+5x+4x^2+1x^3)$$



    row $3$



    $$y^0(2+1x)(y(1+x))^3=y^3(2+7x+9x^2+5x^3+1x^4)$$



    and so forth, if we add these we get



    $$g(x,y)=(2+1x)sum_{k=0}^{infty}y^k(1+x)^k$$



    Notice that we will gain extra (redundant) terms in $g(x,y)$ that are not in our table, e.g. the first of these redundant terms will be $1y^2x^3$ in row $2$. These terms are not needed here as we shall see.



    Anyway, we note that the general term $i^2$ is the coefficient of $y^ix^2$ in $g(x,y)$ and we can state this succinctly with $[y^ix^2]g(x,y)$.



    Okay, let's express this by expanding the binomial as follows



    $$begin{align}[y^ix^2]g(x,y) &= [y^ix^2](2+1x)sum_{k=0}^{infty}y^k(1+x)^k\
    &=[y^ix^2](2+1x)sum_{k=0}^{infty}y^ksum_{j=0}^{k}binom{k}{j}x^j\
    &=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}x^j+1binom{k}{j}x^{j+1}right)\
    &=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}+1binom{k}{j-1}right)x^{j}\
    &=2binom{i}{2}+1binom{i}{1}end{align}$$



    as given in the question.





    In general



    Notice that in general the row $0$ polynomial of $i^n$ for $ninmathbb{N}$ will be of the form



    $$y^0(Delta^n(0^n)+Delta^{n-1}(0^n)x+Delta^{n-2}(0^n)x^2+cdots+Delta(0^n)x^n)$$



    and we will therefore be able to express



    $$i^n= Delta^n(0^n)binom{i}{n}+Delta^{n-1}(0^n)binom{i}{n-1}+Delta^{n-2}(0^n)binom{i}{n-2}+cdots +Delta(0^n)binom{i}{1}$$



    So all you need to do is find the top row (row $0$) polynomial for which you can use finite differences as we did in the example.



    Another way is to notice that after repeated operations of $Delta$ on some $f(0)$ we have



    $$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}f(j)$$



    for the case of $f(i)=i^n$ we have



    $$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}j^n$$



    which are recognisable as being related to Stirling numbers of the second kind



    $$S(n,k)= frac{1}{k!}sum_{j=0}^{k}(-1)^jbinom{k}{j}j^n$$



    therefore



    $$Delta^k(0^n)=k!S(n,k)$$



    and our formula for $i^n$ is




    $$i^n=n!S(n,n)binom{i}{n}+(n-1)!S(n,n-1)binom{i}{n-1}+(n-2)!S(n,n-2)binom{i}{n-2}+cdots +1!S(n,1)binom{i}{1}$$




    This is easily summed using Pascals hockey stick rule on each term of the right hand side



    $$sum_{r=m}^{i}binom{i}{m}=binom{i+1}{m+1}$$



    giving




    $$sum_{i=0}^{N}i^n=n!S(n,n)binom{N+1}{n+1}+(n-1)!S(n,n-1)binom{N+1}{n}+(n-2)!S(n,n-2)binom{N}{n-1}+cdots +1!S(n,1)binom{N}{2}$$




    in our example case



    $$begin{align}sum_{i=0}^{N}i^2=2!S(2,2)binom{N+1}{3}+1!S(2,1)binom{N+1}{2}&=2frac{(N+1)N(N-1)}{6}+frac{(N+1)N}{2}\&=frac{(2N+1)(N+1)N}{6}end{align}$$



    Which is a well recognised result.



    The power in this method should be self-evident.



    In fact, although I said earlier that higher terms produced were redundant, if you look at the coefficients $[y^ix^3]g(x,y)$ for our example this is the desired summation itself. In general this also applies so that the desired summation is the coefficient of $y^ix^{n+1}$ in our 2 variable polynomial.






    share|cite|improve this answer




























      0














      Firstly let's state in all that follows we will define binomial coefficients for $a,binmathbb{N}cup{0}$ as



      $$binom{a}{b}=begin{cases} 0 & alt b\ frac{a!}{b!(a-b)!} & text{else}end{cases}$$



      and define the finite difference operator $Delta$ such that for some function of $i$ $f(i)$ we have



      $$Delta(f(i))=f(i+1)-f(i)$$



      and



      $$Delta^k(f(i)) = underbrace{Delta(Delta(Deltacdots (Delta}_{text{$k$ times}}(f(i)))cdots ))$$



      Seems pretty straightforward right? It's a kind of finite differentiation and will come in handy. Anyway, on with the question...



      Okay, let's take your example of $i^2$, we will list some values and finite differences in a table



      $$begin{array}{c|c|c|c|c|c|c|c}
      i & 0 & 1 & 2 & 3 & 4 & 5 & cdots\hline
      i^2 & 0 & 1 & 4 & 9 & 16 & 25 & cdots\hline
      Delta(i^2) & 1 & 3 & 5 & 7 & 9 & & cdots\hline
      Delta^2(i^2) & 2 & 2 & 2 & 2 & & & cdots\hline
      Delta^3(i^2) & 0 & 0 & 0 & & & & cdots\hline
      end{array}$$



      Now, we see that the finite differences eventually become $0$ as we go down the table just as repeated differentiation of powers of $i$ eventually becomes constant and then $0$. This always happens for finite differences of powers of $i$ because when we take



      $$Delta i^n= (i+1)^n - i^n = left(i^n + sum_{k=0}^{n-1}binom{n}{k}i^kright) - i^n = sum_{k=0}^{n-1}binom{n}{k}i^k$$



      thus reducing the highest power of $i$ by $1$, repeating this $n$ times will leave us with $0$.



      Now I'm going to write these coefficients in a polynomial in $x$ and $y$ and this will seem unmotivated except that it is something that crops up frequently in combinatorics, here goes



      $$begin{split}
      y^0(2&+&1x&+&0x^2)\
      y^1(2&+&3x&+&1x^2)\
      y^2(2&+&5x&+&4x^2)\
      y^3(2&+&7x&+&9x^2)\
      y^4(0&+&9x&+&16x^2)+cdots\end{split}$$



      Now, due to the nature of finite differences every successive row in this polynomial can be achieved from last by multiplying by $y(1+x)$, we see this has the effect of adding the term above and above and left one term together, it is the same reasoning that relates Pascal's identity in the famous triangle to the polynomial $smash{sum_{k=0}^{infty}y^k(1+x)^k}$. The main difference in this case is the $y^0$ polynomial in the top row (row $0$). In Pascal's triangle row $0$ is $y^0(1)$ in this case it is $y^0(2+1x+0x^2)$ or just $y^0(2+1x)$.



      So to obtain row $1$ we multiply



      $$y^0(2+1x)(y(1+x))=y^1(2+3x+1x^2)$$



      to obtain row $2$ we multiply



      $$y^0(2+1x)(y(1+x))^2=y^2(2+5x+4x^2+1x^3)$$



      row $3$



      $$y^0(2+1x)(y(1+x))^3=y^3(2+7x+9x^2+5x^3+1x^4)$$



      and so forth, if we add these we get



      $$g(x,y)=(2+1x)sum_{k=0}^{infty}y^k(1+x)^k$$



      Notice that we will gain extra (redundant) terms in $g(x,y)$ that are not in our table, e.g. the first of these redundant terms will be $1y^2x^3$ in row $2$. These terms are not needed here as we shall see.



      Anyway, we note that the general term $i^2$ is the coefficient of $y^ix^2$ in $g(x,y)$ and we can state this succinctly with $[y^ix^2]g(x,y)$.



      Okay, let's express this by expanding the binomial as follows



      $$begin{align}[y^ix^2]g(x,y) &= [y^ix^2](2+1x)sum_{k=0}^{infty}y^k(1+x)^k\
      &=[y^ix^2](2+1x)sum_{k=0}^{infty}y^ksum_{j=0}^{k}binom{k}{j}x^j\
      &=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}x^j+1binom{k}{j}x^{j+1}right)\
      &=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}+1binom{k}{j-1}right)x^{j}\
      &=2binom{i}{2}+1binom{i}{1}end{align}$$



      as given in the question.





      In general



      Notice that in general the row $0$ polynomial of $i^n$ for $ninmathbb{N}$ will be of the form



      $$y^0(Delta^n(0^n)+Delta^{n-1}(0^n)x+Delta^{n-2}(0^n)x^2+cdots+Delta(0^n)x^n)$$



      and we will therefore be able to express



      $$i^n= Delta^n(0^n)binom{i}{n}+Delta^{n-1}(0^n)binom{i}{n-1}+Delta^{n-2}(0^n)binom{i}{n-2}+cdots +Delta(0^n)binom{i}{1}$$



      So all you need to do is find the top row (row $0$) polynomial for which you can use finite differences as we did in the example.



      Another way is to notice that after repeated operations of $Delta$ on some $f(0)$ we have



      $$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}f(j)$$



      for the case of $f(i)=i^n$ we have



      $$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}j^n$$



      which are recognisable as being related to Stirling numbers of the second kind



      $$S(n,k)= frac{1}{k!}sum_{j=0}^{k}(-1)^jbinom{k}{j}j^n$$



      therefore



      $$Delta^k(0^n)=k!S(n,k)$$



      and our formula for $i^n$ is




      $$i^n=n!S(n,n)binom{i}{n}+(n-1)!S(n,n-1)binom{i}{n-1}+(n-2)!S(n,n-2)binom{i}{n-2}+cdots +1!S(n,1)binom{i}{1}$$




      This is easily summed using Pascals hockey stick rule on each term of the right hand side



      $$sum_{r=m}^{i}binom{i}{m}=binom{i+1}{m+1}$$



      giving




      $$sum_{i=0}^{N}i^n=n!S(n,n)binom{N+1}{n+1}+(n-1)!S(n,n-1)binom{N+1}{n}+(n-2)!S(n,n-2)binom{N}{n-1}+cdots +1!S(n,1)binom{N}{2}$$




      in our example case



      $$begin{align}sum_{i=0}^{N}i^2=2!S(2,2)binom{N+1}{3}+1!S(2,1)binom{N+1}{2}&=2frac{(N+1)N(N-1)}{6}+frac{(N+1)N}{2}\&=frac{(2N+1)(N+1)N}{6}end{align}$$



      Which is a well recognised result.



      The power in this method should be self-evident.



      In fact, although I said earlier that higher terms produced were redundant, if you look at the coefficients $[y^ix^3]g(x,y)$ for our example this is the desired summation itself. In general this also applies so that the desired summation is the coefficient of $y^ix^{n+1}$ in our 2 variable polynomial.






      share|cite|improve this answer


























        0












        0








        0






        Firstly let's state in all that follows we will define binomial coefficients for $a,binmathbb{N}cup{0}$ as



        $$binom{a}{b}=begin{cases} 0 & alt b\ frac{a!}{b!(a-b)!} & text{else}end{cases}$$



        and define the finite difference operator $Delta$ such that for some function of $i$ $f(i)$ we have



        $$Delta(f(i))=f(i+1)-f(i)$$



        and



        $$Delta^k(f(i)) = underbrace{Delta(Delta(Deltacdots (Delta}_{text{$k$ times}}(f(i)))cdots ))$$



        Seems pretty straightforward right? It's a kind of finite differentiation and will come in handy. Anyway, on with the question...



        Okay, let's take your example of $i^2$, we will list some values and finite differences in a table



        $$begin{array}{c|c|c|c|c|c|c|c}
        i & 0 & 1 & 2 & 3 & 4 & 5 & cdots\hline
        i^2 & 0 & 1 & 4 & 9 & 16 & 25 & cdots\hline
        Delta(i^2) & 1 & 3 & 5 & 7 & 9 & & cdots\hline
        Delta^2(i^2) & 2 & 2 & 2 & 2 & & & cdots\hline
        Delta^3(i^2) & 0 & 0 & 0 & & & & cdots\hline
        end{array}$$



        Now, we see that the finite differences eventually become $0$ as we go down the table just as repeated differentiation of powers of $i$ eventually becomes constant and then $0$. This always happens for finite differences of powers of $i$ because when we take



        $$Delta i^n= (i+1)^n - i^n = left(i^n + sum_{k=0}^{n-1}binom{n}{k}i^kright) - i^n = sum_{k=0}^{n-1}binom{n}{k}i^k$$



        thus reducing the highest power of $i$ by $1$, repeating this $n$ times will leave us with $0$.



        Now I'm going to write these coefficients in a polynomial in $x$ and $y$ and this will seem unmotivated except that it is something that crops up frequently in combinatorics, here goes



        $$begin{split}
        y^0(2&+&1x&+&0x^2)\
        y^1(2&+&3x&+&1x^2)\
        y^2(2&+&5x&+&4x^2)\
        y^3(2&+&7x&+&9x^2)\
        y^4(0&+&9x&+&16x^2)+cdots\end{split}$$



        Now, due to the nature of finite differences every successive row in this polynomial can be achieved from last by multiplying by $y(1+x)$, we see this has the effect of adding the term above and above and left one term together, it is the same reasoning that relates Pascal's identity in the famous triangle to the polynomial $smash{sum_{k=0}^{infty}y^k(1+x)^k}$. The main difference in this case is the $y^0$ polynomial in the top row (row $0$). In Pascal's triangle row $0$ is $y^0(1)$ in this case it is $y^0(2+1x+0x^2)$ or just $y^0(2+1x)$.



        So to obtain row $1$ we multiply



        $$y^0(2+1x)(y(1+x))=y^1(2+3x+1x^2)$$



        to obtain row $2$ we multiply



        $$y^0(2+1x)(y(1+x))^2=y^2(2+5x+4x^2+1x^3)$$



        row $3$



        $$y^0(2+1x)(y(1+x))^3=y^3(2+7x+9x^2+5x^3+1x^4)$$



        and so forth, if we add these we get



        $$g(x,y)=(2+1x)sum_{k=0}^{infty}y^k(1+x)^k$$



        Notice that we will gain extra (redundant) terms in $g(x,y)$ that are not in our table, e.g. the first of these redundant terms will be $1y^2x^3$ in row $2$. These terms are not needed here as we shall see.



        Anyway, we note that the general term $i^2$ is the coefficient of $y^ix^2$ in $g(x,y)$ and we can state this succinctly with $[y^ix^2]g(x,y)$.



        Okay, let's express this by expanding the binomial as follows



        $$begin{align}[y^ix^2]g(x,y) &= [y^ix^2](2+1x)sum_{k=0}^{infty}y^k(1+x)^k\
        &=[y^ix^2](2+1x)sum_{k=0}^{infty}y^ksum_{j=0}^{k}binom{k}{j}x^j\
        &=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}x^j+1binom{k}{j}x^{j+1}right)\
        &=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}+1binom{k}{j-1}right)x^{j}\
        &=2binom{i}{2}+1binom{i}{1}end{align}$$



        as given in the question.





        In general



        Notice that in general the row $0$ polynomial of $i^n$ for $ninmathbb{N}$ will be of the form



        $$y^0(Delta^n(0^n)+Delta^{n-1}(0^n)x+Delta^{n-2}(0^n)x^2+cdots+Delta(0^n)x^n)$$



        and we will therefore be able to express



        $$i^n= Delta^n(0^n)binom{i}{n}+Delta^{n-1}(0^n)binom{i}{n-1}+Delta^{n-2}(0^n)binom{i}{n-2}+cdots +Delta(0^n)binom{i}{1}$$



        So all you need to do is find the top row (row $0$) polynomial for which you can use finite differences as we did in the example.



        Another way is to notice that after repeated operations of $Delta$ on some $f(0)$ we have



        $$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}f(j)$$



        for the case of $f(i)=i^n$ we have



        $$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}j^n$$



        which are recognisable as being related to Stirling numbers of the second kind



        $$S(n,k)= frac{1}{k!}sum_{j=0}^{k}(-1)^jbinom{k}{j}j^n$$



        therefore



        $$Delta^k(0^n)=k!S(n,k)$$



        and our formula for $i^n$ is




        $$i^n=n!S(n,n)binom{i}{n}+(n-1)!S(n,n-1)binom{i}{n-1}+(n-2)!S(n,n-2)binom{i}{n-2}+cdots +1!S(n,1)binom{i}{1}$$




        This is easily summed using Pascals hockey stick rule on each term of the right hand side



        $$sum_{r=m}^{i}binom{i}{m}=binom{i+1}{m+1}$$



        giving




        $$sum_{i=0}^{N}i^n=n!S(n,n)binom{N+1}{n+1}+(n-1)!S(n,n-1)binom{N+1}{n}+(n-2)!S(n,n-2)binom{N}{n-1}+cdots +1!S(n,1)binom{N}{2}$$




        in our example case



        $$begin{align}sum_{i=0}^{N}i^2=2!S(2,2)binom{N+1}{3}+1!S(2,1)binom{N+1}{2}&=2frac{(N+1)N(N-1)}{6}+frac{(N+1)N}{2}\&=frac{(2N+1)(N+1)N}{6}end{align}$$



        Which is a well recognised result.



        The power in this method should be self-evident.



        In fact, although I said earlier that higher terms produced were redundant, if you look at the coefficients $[y^ix^3]g(x,y)$ for our example this is the desired summation itself. In general this also applies so that the desired summation is the coefficient of $y^ix^{n+1}$ in our 2 variable polynomial.






        share|cite|improve this answer














        Firstly let's state in all that follows we will define binomial coefficients for $a,binmathbb{N}cup{0}$ as



        $$binom{a}{b}=begin{cases} 0 & alt b\ frac{a!}{b!(a-b)!} & text{else}end{cases}$$



        and define the finite difference operator $Delta$ such that for some function of $i$ $f(i)$ we have



        $$Delta(f(i))=f(i+1)-f(i)$$



        and



        $$Delta^k(f(i)) = underbrace{Delta(Delta(Deltacdots (Delta}_{text{$k$ times}}(f(i)))cdots ))$$



        Seems pretty straightforward right? It's a kind of finite differentiation and will come in handy. Anyway, on with the question...



        Okay, let's take your example of $i^2$, we will list some values and finite differences in a table



        $$begin{array}{c|c|c|c|c|c|c|c}
        i & 0 & 1 & 2 & 3 & 4 & 5 & cdots\hline
        i^2 & 0 & 1 & 4 & 9 & 16 & 25 & cdots\hline
        Delta(i^2) & 1 & 3 & 5 & 7 & 9 & & cdots\hline
        Delta^2(i^2) & 2 & 2 & 2 & 2 & & & cdots\hline
        Delta^3(i^2) & 0 & 0 & 0 & & & & cdots\hline
        end{array}$$



        Now, we see that the finite differences eventually become $0$ as we go down the table just as repeated differentiation of powers of $i$ eventually becomes constant and then $0$. This always happens for finite differences of powers of $i$ because when we take



        $$Delta i^n= (i+1)^n - i^n = left(i^n + sum_{k=0}^{n-1}binom{n}{k}i^kright) - i^n = sum_{k=0}^{n-1}binom{n}{k}i^k$$



        thus reducing the highest power of $i$ by $1$, repeating this $n$ times will leave us with $0$.



        Now I'm going to write these coefficients in a polynomial in $x$ and $y$ and this will seem unmotivated except that it is something that crops up frequently in combinatorics, here goes



        $$begin{split}
        y^0(2&+&1x&+&0x^2)\
        y^1(2&+&3x&+&1x^2)\
        y^2(2&+&5x&+&4x^2)\
        y^3(2&+&7x&+&9x^2)\
        y^4(0&+&9x&+&16x^2)+cdots\end{split}$$



        Now, due to the nature of finite differences every successive row in this polynomial can be achieved from last by multiplying by $y(1+x)$, we see this has the effect of adding the term above and above and left one term together, it is the same reasoning that relates Pascal's identity in the famous triangle to the polynomial $smash{sum_{k=0}^{infty}y^k(1+x)^k}$. The main difference in this case is the $y^0$ polynomial in the top row (row $0$). In Pascal's triangle row $0$ is $y^0(1)$ in this case it is $y^0(2+1x+0x^2)$ or just $y^0(2+1x)$.



        So to obtain row $1$ we multiply



        $$y^0(2+1x)(y(1+x))=y^1(2+3x+1x^2)$$



        to obtain row $2$ we multiply



        $$y^0(2+1x)(y(1+x))^2=y^2(2+5x+4x^2+1x^3)$$



        row $3$



        $$y^0(2+1x)(y(1+x))^3=y^3(2+7x+9x^2+5x^3+1x^4)$$



        and so forth, if we add these we get



        $$g(x,y)=(2+1x)sum_{k=0}^{infty}y^k(1+x)^k$$



        Notice that we will gain extra (redundant) terms in $g(x,y)$ that are not in our table, e.g. the first of these redundant terms will be $1y^2x^3$ in row $2$. These terms are not needed here as we shall see.



        Anyway, we note that the general term $i^2$ is the coefficient of $y^ix^2$ in $g(x,y)$ and we can state this succinctly with $[y^ix^2]g(x,y)$.



        Okay, let's express this by expanding the binomial as follows



        $$begin{align}[y^ix^2]g(x,y) &= [y^ix^2](2+1x)sum_{k=0}^{infty}y^k(1+x)^k\
        &=[y^ix^2](2+1x)sum_{k=0}^{infty}y^ksum_{j=0}^{k}binom{k}{j}x^j\
        &=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}x^j+1binom{k}{j}x^{j+1}right)\
        &=[y^ix^2]sum_{k=0}^{infty}y^ksum_{j=0}^{k}left(2binom{k}{j}+1binom{k}{j-1}right)x^{j}\
        &=2binom{i}{2}+1binom{i}{1}end{align}$$



        as given in the question.





        In general



        Notice that in general the row $0$ polynomial of $i^n$ for $ninmathbb{N}$ will be of the form



        $$y^0(Delta^n(0^n)+Delta^{n-1}(0^n)x+Delta^{n-2}(0^n)x^2+cdots+Delta(0^n)x^n)$$



        and we will therefore be able to express



        $$i^n= Delta^n(0^n)binom{i}{n}+Delta^{n-1}(0^n)binom{i}{n-1}+Delta^{n-2}(0^n)binom{i}{n-2}+cdots +Delta(0^n)binom{i}{1}$$



        So all you need to do is find the top row (row $0$) polynomial for which you can use finite differences as we did in the example.



        Another way is to notice that after repeated operations of $Delta$ on some $f(0)$ we have



        $$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}f(j)$$



        for the case of $f(i)=i^n$ we have



        $$Delta^k(f(0))=sum_{j=0}^{k}(-1)^{k-j}binom{k}{j}j^n$$



        which are recognisable as being related to Stirling numbers of the second kind



        $$S(n,k)= frac{1}{k!}sum_{j=0}^{k}(-1)^jbinom{k}{j}j^n$$



        therefore



        $$Delta^k(0^n)=k!S(n,k)$$



        and our formula for $i^n$ is




        $$i^n=n!S(n,n)binom{i}{n}+(n-1)!S(n,n-1)binom{i}{n-1}+(n-2)!S(n,n-2)binom{i}{n-2}+cdots +1!S(n,1)binom{i}{1}$$




        This is easily summed using Pascals hockey stick rule on each term of the right hand side



        $$sum_{r=m}^{i}binom{i}{m}=binom{i+1}{m+1}$$



        giving




        $$sum_{i=0}^{N}i^n=n!S(n,n)binom{N+1}{n+1}+(n-1)!S(n,n-1)binom{N+1}{n}+(n-2)!S(n,n-2)binom{N}{n-1}+cdots +1!S(n,1)binom{N}{2}$$




        in our example case



        $$begin{align}sum_{i=0}^{N}i^2=2!S(2,2)binom{N+1}{3}+1!S(2,1)binom{N+1}{2}&=2frac{(N+1)N(N-1)}{6}+frac{(N+1)N}{2}\&=frac{(2N+1)(N+1)N}{6}end{align}$$



        Which is a well recognised result.



        The power in this method should be self-evident.



        In fact, although I said earlier that higher terms produced were redundant, if you look at the coefficients $[y^ix^3]g(x,y)$ for our example this is the desired summation itself. In general this also applies so that the desired summation is the coefficient of $y^ix^{n+1}$ in our 2 variable polynomial.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Dec 29 '18 at 23:46

























        answered Apr 10 '17 at 1:46









        N. ShalesN. Shales

        3,2431816




        3,2431816






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2226693%2fhow-can-you-use-combinations-to-find-a-general-formula-for-the-power-series-summ%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅