Find close expression for the sum $S_{n,k}=sumlimits_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}.$












3












$begingroup$


Find close expression for the sum $$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}.$$
For small $k$ I have got following
begin{align}
&S_{n,0}=1,\
&S_{n,1}=2,\
&S_{n,2}=-n+2,\
&S_{n,3}=-2n+2,\
&S_{n,4}=frac{(n-1)(n-4)}{2},\
&S_{n,5}=(n-1)(n-2),\
&S_{n,6}=-frac{(n-1)(n-2)(n-6)}{6}
end{align}



What is the expression for $S_{n,k}$ for arbitrary $n,k$?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    I deleted my answer. What I had came from a CAS which is not Wolfram Alpha.
    $endgroup$
    – Claude Leibovici
    Dec 8 '18 at 9:50
















3












$begingroup$


Find close expression for the sum $$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}.$$
For small $k$ I have got following
begin{align}
&S_{n,0}=1,\
&S_{n,1}=2,\
&S_{n,2}=-n+2,\
&S_{n,3}=-2n+2,\
&S_{n,4}=frac{(n-1)(n-4)}{2},\
&S_{n,5}=(n-1)(n-2),\
&S_{n,6}=-frac{(n-1)(n-2)(n-6)}{6}
end{align}



What is the expression for $S_{n,k}$ for arbitrary $n,k$?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    I deleted my answer. What I had came from a CAS which is not Wolfram Alpha.
    $endgroup$
    – Claude Leibovici
    Dec 8 '18 at 9:50














3












3








3


1



$begingroup$


Find close expression for the sum $$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}.$$
For small $k$ I have got following
begin{align}
&S_{n,0}=1,\
&S_{n,1}=2,\
&S_{n,2}=-n+2,\
&S_{n,3}=-2n+2,\
&S_{n,4}=frac{(n-1)(n-4)}{2},\
&S_{n,5}=(n-1)(n-2),\
&S_{n,6}=-frac{(n-1)(n-2)(n-6)}{6}
end{align}



What is the expression for $S_{n,k}$ for arbitrary $n,k$?










share|cite|improve this question









$endgroup$




Find close expression for the sum $$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}.$$
For small $k$ I have got following
begin{align}
&S_{n,0}=1,\
&S_{n,1}=2,\
&S_{n,2}=-n+2,\
&S_{n,3}=-2n+2,\
&S_{n,4}=frac{(n-1)(n-4)}{2},\
&S_{n,5}=(n-1)(n-2),\
&S_{n,6}=-frac{(n-1)(n-2)(n-6)}{6}
end{align}



What is the expression for $S_{n,k}$ for arbitrary $n,k$?







combinatorics summation






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 8 '18 at 8:13









LeoxLeox

5,2681424




5,2681424








  • 1




    $begingroup$
    I deleted my answer. What I had came from a CAS which is not Wolfram Alpha.
    $endgroup$
    – Claude Leibovici
    Dec 8 '18 at 9:50














  • 1




    $begingroup$
    I deleted my answer. What I had came from a CAS which is not Wolfram Alpha.
    $endgroup$
    – Claude Leibovici
    Dec 8 '18 at 9:50








1




1




$begingroup$
I deleted my answer. What I had came from a CAS which is not Wolfram Alpha.
$endgroup$
– Claude Leibovici
Dec 8 '18 at 9:50




$begingroup$
I deleted my answer. What I had came from a CAS which is not Wolfram Alpha.
$endgroup$
– Claude Leibovici
Dec 8 '18 at 9:50










2 Answers
2






active

oldest

votes


















5












$begingroup$

$$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}=sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}$$
Let $[x^j] f(x)$ denote the coefficient of $x^j$ in the expansion of $f(x)$.
$$largetherefore S_{n,k}=[x^k] sum_{k=0}^{infty}sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}x^k$$$$large=[x^k] bigg(sum_{j=0}^{infty}(-1)^j binom{n-1}{j}x^jbigg)bigg(sum_{j=0}^{infty}binom{n+1}{j}x^jbigg)$$$$large=[x^k] (1-x)^{n-1}(1+x)^{n+1}=[x^k] (1-x^2)^{n-1}(x^2+2x+1)$$



$$LARGE therefore S_{n,k}=begin{cases}
(-1)^{frac{k}{2}}Bigg(binom{n-1}{frac{k}{2}} - binom{n-1}{frac{k}{2}-1}Bigg)& ktext{ is even} \
2(-1)^{frac{k-1}{2}}hugebinom{n-1}{frac{k-1}{2}} & ktext{ is odd}
end{cases}$$

$blacksquare$



Also see Cauchy product.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    The expression $[x]^k (1-x)^{n+1} (1+x)^{n+1}$ is correct but the final expression for $S_{n,k}$ has some mistakes and procude wrong values
    $endgroup$
    – Leox
    Dec 8 '18 at 12:25










  • $begingroup$
    @Leox, like what?
    $endgroup$
    – Anubhab Ghosal
    Dec 8 '18 at 12:26










  • $begingroup$
    1. for odd case instead the factor 2 must be 4.
    $endgroup$
    – Leox
    Dec 8 '18 at 12:28










  • $begingroup$
    2. and there is a problem with the sign : $S_{5,3}=-8$ but your formula gives 8
    $endgroup$
    – Leox
    Dec 8 '18 at 12:32








  • 1




    $begingroup$
    Oh, yes.. Sorry that is mistake of mine.
    $endgroup$
    – Leox
    Dec 8 '18 at 12:49



















1












$begingroup$

There is a nice combinatorial solution as well. Let $[a,b]$ denote the set of integers ${a,a+1,dots,b}$. You summation counts subsets of $[1,2n]$ of size $k$, except that subsets $S$ which have an even number of members in $[1,n-1]$ are counted positively, and those with an odd number of members in $[1,n-1]$ count negatively.



To evaluate this alternating sum, lets divide subsets of $[1,2n]$ into pairs $(S_1,S_2)$ where $|S_1cap [1,n-1]|$ and $|S_2cap [1,n-1]|$ have opposite parity. Such pairs will cancel in your summation, so can be ignored. First of all, if $1in S$ but $nnotin S$, then $S$ can be paired with the set obtained by adding $1$ and removing $n$. Otherwise, we look at $2$ and $n+1$ and try to play the same game, then $3$ and $n+2$, and so on, ending with $n-1$ and $2n-2$.



After removing all these pairs, the remaining sets have the property that $i$ and $i+n-1$ are either both in $S$ or both not in $S$, for $i=1,dots,n-1$. We must then break into cases based on the parity of $k$:




  • If $k$ is odd, then since the elements of $Scap [1,2n-2]$ break into pairs $(i,i+n-1)$, it follows that $S$ has exactly one element in ${2n-1,2n}$. There are $2$ ways to choose this last element, and $binom{n}{(k-1)/2}$ ways to choose the elements of $Scap [1,n-1]$ (which determines the elements of $Scap [n,2n-2]$). This gives $2binom{n}{(k-1)/2}$ ways, which must be multiplied by $(-1)^{(k-1)/2}$ to match the sign.


  • If $k$ is even, then $S$ must have an even number of members in ${2n-1,2n}$. You then condition on whether $S$ contains both or neither of ${2n-1,2n}$, and derive a formula similarly to the last section.







share|cite|improve this answer









$endgroup$













    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%2f3030820%2ffind-close-expression-for-the-sum-s-n-k-sum-limits-i-02n-1i-binom%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5












    $begingroup$

    $$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}=sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}$$
    Let $[x^j] f(x)$ denote the coefficient of $x^j$ in the expansion of $f(x)$.
    $$largetherefore S_{n,k}=[x^k] sum_{k=0}^{infty}sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}x^k$$$$large=[x^k] bigg(sum_{j=0}^{infty}(-1)^j binom{n-1}{j}x^jbigg)bigg(sum_{j=0}^{infty}binom{n+1}{j}x^jbigg)$$$$large=[x^k] (1-x)^{n-1}(1+x)^{n+1}=[x^k] (1-x^2)^{n-1}(x^2+2x+1)$$



    $$LARGE therefore S_{n,k}=begin{cases}
    (-1)^{frac{k}{2}}Bigg(binom{n-1}{frac{k}{2}} - binom{n-1}{frac{k}{2}-1}Bigg)& ktext{ is even} \
    2(-1)^{frac{k-1}{2}}hugebinom{n-1}{frac{k-1}{2}} & ktext{ is odd}
    end{cases}$$

    $blacksquare$



    Also see Cauchy product.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      The expression $[x]^k (1-x)^{n+1} (1+x)^{n+1}$ is correct but the final expression for $S_{n,k}$ has some mistakes and procude wrong values
      $endgroup$
      – Leox
      Dec 8 '18 at 12:25










    • $begingroup$
      @Leox, like what?
      $endgroup$
      – Anubhab Ghosal
      Dec 8 '18 at 12:26










    • $begingroup$
      1. for odd case instead the factor 2 must be 4.
      $endgroup$
      – Leox
      Dec 8 '18 at 12:28










    • $begingroup$
      2. and there is a problem with the sign : $S_{5,3}=-8$ but your formula gives 8
      $endgroup$
      – Leox
      Dec 8 '18 at 12:32








    • 1




      $begingroup$
      Oh, yes.. Sorry that is mistake of mine.
      $endgroup$
      – Leox
      Dec 8 '18 at 12:49
















    5












    $begingroup$

    $$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}=sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}$$
    Let $[x^j] f(x)$ denote the coefficient of $x^j$ in the expansion of $f(x)$.
    $$largetherefore S_{n,k}=[x^k] sum_{k=0}^{infty}sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}x^k$$$$large=[x^k] bigg(sum_{j=0}^{infty}(-1)^j binom{n-1}{j}x^jbigg)bigg(sum_{j=0}^{infty}binom{n+1}{j}x^jbigg)$$$$large=[x^k] (1-x)^{n-1}(1+x)^{n+1}=[x^k] (1-x^2)^{n-1}(x^2+2x+1)$$



    $$LARGE therefore S_{n,k}=begin{cases}
    (-1)^{frac{k}{2}}Bigg(binom{n-1}{frac{k}{2}} - binom{n-1}{frac{k}{2}-1}Bigg)& ktext{ is even} \
    2(-1)^{frac{k-1}{2}}hugebinom{n-1}{frac{k-1}{2}} & ktext{ is odd}
    end{cases}$$

    $blacksquare$



    Also see Cauchy product.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      The expression $[x]^k (1-x)^{n+1} (1+x)^{n+1}$ is correct but the final expression for $S_{n,k}$ has some mistakes and procude wrong values
      $endgroup$
      – Leox
      Dec 8 '18 at 12:25










    • $begingroup$
      @Leox, like what?
      $endgroup$
      – Anubhab Ghosal
      Dec 8 '18 at 12:26










    • $begingroup$
      1. for odd case instead the factor 2 must be 4.
      $endgroup$
      – Leox
      Dec 8 '18 at 12:28










    • $begingroup$
      2. and there is a problem with the sign : $S_{5,3}=-8$ but your formula gives 8
      $endgroup$
      – Leox
      Dec 8 '18 at 12:32








    • 1




      $begingroup$
      Oh, yes.. Sorry that is mistake of mine.
      $endgroup$
      – Leox
      Dec 8 '18 at 12:49














    5












    5








    5





    $begingroup$

    $$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}=sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}$$
    Let $[x^j] f(x)$ denote the coefficient of $x^j$ in the expansion of $f(x)$.
    $$largetherefore S_{n,k}=[x^k] sum_{k=0}^{infty}sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}x^k$$$$large=[x^k] bigg(sum_{j=0}^{infty}(-1)^j binom{n-1}{j}x^jbigg)bigg(sum_{j=0}^{infty}binom{n+1}{j}x^jbigg)$$$$large=[x^k] (1-x)^{n-1}(1+x)^{n+1}=[x^k] (1-x^2)^{n-1}(x^2+2x+1)$$



    $$LARGE therefore S_{n,k}=begin{cases}
    (-1)^{frac{k}{2}}Bigg(binom{n-1}{frac{k}{2}} - binom{n-1}{frac{k}{2}-1}Bigg)& ktext{ is even} \
    2(-1)^{frac{k-1}{2}}hugebinom{n-1}{frac{k-1}{2}} & ktext{ is odd}
    end{cases}$$

    $blacksquare$



    Also see Cauchy product.






    share|cite|improve this answer











    $endgroup$



    $$S_{n,k}=sum_{i=0}^{2n} (-1)^i binom{n-1}{i} binom{n+1}{k-i}=sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}$$
    Let $[x^j] f(x)$ denote the coefficient of $x^j$ in the expansion of $f(x)$.
    $$largetherefore S_{n,k}=[x^k] sum_{k=0}^{infty}sum_{i=0}^{k} (-1)^i binom{n-1}{i} binom{n+1}{k-i}x^k$$$$large=[x^k] bigg(sum_{j=0}^{infty}(-1)^j binom{n-1}{j}x^jbigg)bigg(sum_{j=0}^{infty}binom{n+1}{j}x^jbigg)$$$$large=[x^k] (1-x)^{n-1}(1+x)^{n+1}=[x^k] (1-x^2)^{n-1}(x^2+2x+1)$$



    $$LARGE therefore S_{n,k}=begin{cases}
    (-1)^{frac{k}{2}}Bigg(binom{n-1}{frac{k}{2}} - binom{n-1}{frac{k}{2}-1}Bigg)& ktext{ is even} \
    2(-1)^{frac{k-1}{2}}hugebinom{n-1}{frac{k-1}{2}} & ktext{ is odd}
    end{cases}$$

    $blacksquare$



    Also see Cauchy product.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Dec 31 '18 at 7:36

























    answered Dec 8 '18 at 11:11









    Anubhab GhosalAnubhab Ghosal

    1,21119




    1,21119












    • $begingroup$
      The expression $[x]^k (1-x)^{n+1} (1+x)^{n+1}$ is correct but the final expression for $S_{n,k}$ has some mistakes and procude wrong values
      $endgroup$
      – Leox
      Dec 8 '18 at 12:25










    • $begingroup$
      @Leox, like what?
      $endgroup$
      – Anubhab Ghosal
      Dec 8 '18 at 12:26










    • $begingroup$
      1. for odd case instead the factor 2 must be 4.
      $endgroup$
      – Leox
      Dec 8 '18 at 12:28










    • $begingroup$
      2. and there is a problem with the sign : $S_{5,3}=-8$ but your formula gives 8
      $endgroup$
      – Leox
      Dec 8 '18 at 12:32








    • 1




      $begingroup$
      Oh, yes.. Sorry that is mistake of mine.
      $endgroup$
      – Leox
      Dec 8 '18 at 12:49


















    • $begingroup$
      The expression $[x]^k (1-x)^{n+1} (1+x)^{n+1}$ is correct but the final expression for $S_{n,k}$ has some mistakes and procude wrong values
      $endgroup$
      – Leox
      Dec 8 '18 at 12:25










    • $begingroup$
      @Leox, like what?
      $endgroup$
      – Anubhab Ghosal
      Dec 8 '18 at 12:26










    • $begingroup$
      1. for odd case instead the factor 2 must be 4.
      $endgroup$
      – Leox
      Dec 8 '18 at 12:28










    • $begingroup$
      2. and there is a problem with the sign : $S_{5,3}=-8$ but your formula gives 8
      $endgroup$
      – Leox
      Dec 8 '18 at 12:32








    • 1




      $begingroup$
      Oh, yes.. Sorry that is mistake of mine.
      $endgroup$
      – Leox
      Dec 8 '18 at 12:49
















    $begingroup$
    The expression $[x]^k (1-x)^{n+1} (1+x)^{n+1}$ is correct but the final expression for $S_{n,k}$ has some mistakes and procude wrong values
    $endgroup$
    – Leox
    Dec 8 '18 at 12:25




    $begingroup$
    The expression $[x]^k (1-x)^{n+1} (1+x)^{n+1}$ is correct but the final expression for $S_{n,k}$ has some mistakes and procude wrong values
    $endgroup$
    – Leox
    Dec 8 '18 at 12:25












    $begingroup$
    @Leox, like what?
    $endgroup$
    – Anubhab Ghosal
    Dec 8 '18 at 12:26




    $begingroup$
    @Leox, like what?
    $endgroup$
    – Anubhab Ghosal
    Dec 8 '18 at 12:26












    $begingroup$
    1. for odd case instead the factor 2 must be 4.
    $endgroup$
    – Leox
    Dec 8 '18 at 12:28




    $begingroup$
    1. for odd case instead the factor 2 must be 4.
    $endgroup$
    – Leox
    Dec 8 '18 at 12:28












    $begingroup$
    2. and there is a problem with the sign : $S_{5,3}=-8$ but your formula gives 8
    $endgroup$
    – Leox
    Dec 8 '18 at 12:32






    $begingroup$
    2. and there is a problem with the sign : $S_{5,3}=-8$ but your formula gives 8
    $endgroup$
    – Leox
    Dec 8 '18 at 12:32






    1




    1




    $begingroup$
    Oh, yes.. Sorry that is mistake of mine.
    $endgroup$
    – Leox
    Dec 8 '18 at 12:49




    $begingroup$
    Oh, yes.. Sorry that is mistake of mine.
    $endgroup$
    – Leox
    Dec 8 '18 at 12:49











    1












    $begingroup$

    There is a nice combinatorial solution as well. Let $[a,b]$ denote the set of integers ${a,a+1,dots,b}$. You summation counts subsets of $[1,2n]$ of size $k$, except that subsets $S$ which have an even number of members in $[1,n-1]$ are counted positively, and those with an odd number of members in $[1,n-1]$ count negatively.



    To evaluate this alternating sum, lets divide subsets of $[1,2n]$ into pairs $(S_1,S_2)$ where $|S_1cap [1,n-1]|$ and $|S_2cap [1,n-1]|$ have opposite parity. Such pairs will cancel in your summation, so can be ignored. First of all, if $1in S$ but $nnotin S$, then $S$ can be paired with the set obtained by adding $1$ and removing $n$. Otherwise, we look at $2$ and $n+1$ and try to play the same game, then $3$ and $n+2$, and so on, ending with $n-1$ and $2n-2$.



    After removing all these pairs, the remaining sets have the property that $i$ and $i+n-1$ are either both in $S$ or both not in $S$, for $i=1,dots,n-1$. We must then break into cases based on the parity of $k$:




    • If $k$ is odd, then since the elements of $Scap [1,2n-2]$ break into pairs $(i,i+n-1)$, it follows that $S$ has exactly one element in ${2n-1,2n}$. There are $2$ ways to choose this last element, and $binom{n}{(k-1)/2}$ ways to choose the elements of $Scap [1,n-1]$ (which determines the elements of $Scap [n,2n-2]$). This gives $2binom{n}{(k-1)/2}$ ways, which must be multiplied by $(-1)^{(k-1)/2}$ to match the sign.


    • If $k$ is even, then $S$ must have an even number of members in ${2n-1,2n}$. You then condition on whether $S$ contains both or neither of ${2n-1,2n}$, and derive a formula similarly to the last section.







    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      There is a nice combinatorial solution as well. Let $[a,b]$ denote the set of integers ${a,a+1,dots,b}$. You summation counts subsets of $[1,2n]$ of size $k$, except that subsets $S$ which have an even number of members in $[1,n-1]$ are counted positively, and those with an odd number of members in $[1,n-1]$ count negatively.



      To evaluate this alternating sum, lets divide subsets of $[1,2n]$ into pairs $(S_1,S_2)$ where $|S_1cap [1,n-1]|$ and $|S_2cap [1,n-1]|$ have opposite parity. Such pairs will cancel in your summation, so can be ignored. First of all, if $1in S$ but $nnotin S$, then $S$ can be paired with the set obtained by adding $1$ and removing $n$. Otherwise, we look at $2$ and $n+1$ and try to play the same game, then $3$ and $n+2$, and so on, ending with $n-1$ and $2n-2$.



      After removing all these pairs, the remaining sets have the property that $i$ and $i+n-1$ are either both in $S$ or both not in $S$, for $i=1,dots,n-1$. We must then break into cases based on the parity of $k$:




      • If $k$ is odd, then since the elements of $Scap [1,2n-2]$ break into pairs $(i,i+n-1)$, it follows that $S$ has exactly one element in ${2n-1,2n}$. There are $2$ ways to choose this last element, and $binom{n}{(k-1)/2}$ ways to choose the elements of $Scap [1,n-1]$ (which determines the elements of $Scap [n,2n-2]$). This gives $2binom{n}{(k-1)/2}$ ways, which must be multiplied by $(-1)^{(k-1)/2}$ to match the sign.


      • If $k$ is even, then $S$ must have an even number of members in ${2n-1,2n}$. You then condition on whether $S$ contains both or neither of ${2n-1,2n}$, and derive a formula similarly to the last section.







      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        There is a nice combinatorial solution as well. Let $[a,b]$ denote the set of integers ${a,a+1,dots,b}$. You summation counts subsets of $[1,2n]$ of size $k$, except that subsets $S$ which have an even number of members in $[1,n-1]$ are counted positively, and those with an odd number of members in $[1,n-1]$ count negatively.



        To evaluate this alternating sum, lets divide subsets of $[1,2n]$ into pairs $(S_1,S_2)$ where $|S_1cap [1,n-1]|$ and $|S_2cap [1,n-1]|$ have opposite parity. Such pairs will cancel in your summation, so can be ignored. First of all, if $1in S$ but $nnotin S$, then $S$ can be paired with the set obtained by adding $1$ and removing $n$. Otherwise, we look at $2$ and $n+1$ and try to play the same game, then $3$ and $n+2$, and so on, ending with $n-1$ and $2n-2$.



        After removing all these pairs, the remaining sets have the property that $i$ and $i+n-1$ are either both in $S$ or both not in $S$, for $i=1,dots,n-1$. We must then break into cases based on the parity of $k$:




        • If $k$ is odd, then since the elements of $Scap [1,2n-2]$ break into pairs $(i,i+n-1)$, it follows that $S$ has exactly one element in ${2n-1,2n}$. There are $2$ ways to choose this last element, and $binom{n}{(k-1)/2}$ ways to choose the elements of $Scap [1,n-1]$ (which determines the elements of $Scap [n,2n-2]$). This gives $2binom{n}{(k-1)/2}$ ways, which must be multiplied by $(-1)^{(k-1)/2}$ to match the sign.


        • If $k$ is even, then $S$ must have an even number of members in ${2n-1,2n}$. You then condition on whether $S$ contains both or neither of ${2n-1,2n}$, and derive a formula similarly to the last section.







        share|cite|improve this answer









        $endgroup$



        There is a nice combinatorial solution as well. Let $[a,b]$ denote the set of integers ${a,a+1,dots,b}$. You summation counts subsets of $[1,2n]$ of size $k$, except that subsets $S$ which have an even number of members in $[1,n-1]$ are counted positively, and those with an odd number of members in $[1,n-1]$ count negatively.



        To evaluate this alternating sum, lets divide subsets of $[1,2n]$ into pairs $(S_1,S_2)$ where $|S_1cap [1,n-1]|$ and $|S_2cap [1,n-1]|$ have opposite parity. Such pairs will cancel in your summation, so can be ignored. First of all, if $1in S$ but $nnotin S$, then $S$ can be paired with the set obtained by adding $1$ and removing $n$. Otherwise, we look at $2$ and $n+1$ and try to play the same game, then $3$ and $n+2$, and so on, ending with $n-1$ and $2n-2$.



        After removing all these pairs, the remaining sets have the property that $i$ and $i+n-1$ are either both in $S$ or both not in $S$, for $i=1,dots,n-1$. We must then break into cases based on the parity of $k$:




        • If $k$ is odd, then since the elements of $Scap [1,2n-2]$ break into pairs $(i,i+n-1)$, it follows that $S$ has exactly one element in ${2n-1,2n}$. There are $2$ ways to choose this last element, and $binom{n}{(k-1)/2}$ ways to choose the elements of $Scap [1,n-1]$ (which determines the elements of $Scap [n,2n-2]$). This gives $2binom{n}{(k-1)/2}$ ways, which must be multiplied by $(-1)^{(k-1)/2}$ to match the sign.


        • If $k$ is even, then $S$ must have an even number of members in ${2n-1,2n}$. You then condition on whether $S$ contains both or neither of ${2n-1,2n}$, and derive a formula similarly to the last section.








        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Dec 8 '18 at 18:13









        Mike EarnestMike Earnest

        22.6k12051




        22.6k12051






























            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%2f3030820%2ffind-close-expression-for-the-sum-s-n-k-sum-limits-i-02n-1i-binom%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

            Bundesstraße 106

            Verónica Boquete

            Ida-Boy-Ed-Garten