Closed form using Binomial Expansion












1












$begingroup$


I would like to obtain a closed form for the following:



$${n choose 0}{n choose k} + {n choose 1}{n-1 choose k-1} + {n choose 2}{n-2 choose k-2} + ... + {n choose k}{n-k choose 0}$$



To me, this looked like it closely resembles the Binomial Theorem, which I know to be: $(a+b)^k=sum_{k=0}^nbinom nk a^k b^{n-k},$ but I couldn't get it to work.



The $sum{n choose k}$ bit falls nicely in the Binomial expansion, but I don't know how to manipulate $a$ and $b$ to represent $sum_{i=0}{n-i choose k-i}$. How should I go about this?










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    I would like to obtain a closed form for the following:



    $${n choose 0}{n choose k} + {n choose 1}{n-1 choose k-1} + {n choose 2}{n-2 choose k-2} + ... + {n choose k}{n-k choose 0}$$



    To me, this looked like it closely resembles the Binomial Theorem, which I know to be: $(a+b)^k=sum_{k=0}^nbinom nk a^k b^{n-k},$ but I couldn't get it to work.



    The $sum{n choose k}$ bit falls nicely in the Binomial expansion, but I don't know how to manipulate $a$ and $b$ to represent $sum_{i=0}{n-i choose k-i}$. How should I go about this?










    share|cite|improve this question









    $endgroup$















      1












      1








      1


      1



      $begingroup$


      I would like to obtain a closed form for the following:



      $${n choose 0}{n choose k} + {n choose 1}{n-1 choose k-1} + {n choose 2}{n-2 choose k-2} + ... + {n choose k}{n-k choose 0}$$



      To me, this looked like it closely resembles the Binomial Theorem, which I know to be: $(a+b)^k=sum_{k=0}^nbinom nk a^k b^{n-k},$ but I couldn't get it to work.



      The $sum{n choose k}$ bit falls nicely in the Binomial expansion, but I don't know how to manipulate $a$ and $b$ to represent $sum_{i=0}{n-i choose k-i}$. How should I go about this?










      share|cite|improve this question









      $endgroup$




      I would like to obtain a closed form for the following:



      $${n choose 0}{n choose k} + {n choose 1}{n-1 choose k-1} + {n choose 2}{n-2 choose k-2} + ... + {n choose k}{n-k choose 0}$$



      To me, this looked like it closely resembles the Binomial Theorem, which I know to be: $(a+b)^k=sum_{k=0}^nbinom nk a^k b^{n-k},$ but I couldn't get it to work.



      The $sum{n choose k}$ bit falls nicely in the Binomial expansion, but I don't know how to manipulate $a$ and $b$ to represent $sum_{i=0}{n-i choose k-i}$. How should I go about this?







      combinatorics binomial-theorem






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jan 23 at 23:42









      Corp. and Ltd.Corp. and Ltd.

      16914




      16914






















          2 Answers
          2






          active

          oldest

          votes


















          6












          $begingroup$

          Your sum can be rewritten in sigma notation as
          $$ sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j}.$$
          We observe that for $j = 0, dots, k$, we have
          $$ binom{n}{j} binom{n-j}{k-j} = frac{n!}{j!(n-j)!} frac{(n-j)!}{(n-k)!(k-j)!} =
          frac{n!}{k! (n-k)!} frac{k!}{j!(k-j)!} = binom{n}{k} binom{k}{j}.$$
          Summing over $j$ gives
          $$
          sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j} = sum_{j = 0}^k binom{n}{k} binom{k}{j} = 2^k binom{n}{k}.$$






          share|cite|improve this answer











          $endgroup$





















            4












            $begingroup$

            Think about what each term counts. $binom{n}{i}$ counts the number of ways to choose $i$ things from $n$ things, and $binom{n-i}{k-i}$ counts the number of ways to choose $k-i$ things from $n-i$ things. So we could interpret this as the following: start with a group of $n$ objects, then pick $i$ of them to be assigned to "group A" and pick $k-i$ of the remaining $n-i$ objects to be assigned to "group B". The number of ways to do this is $binom{n}{i}binom{n-i}{k-i}$.



            If we sum these from $i=0$ to $i=k$, then we are counting all the ways that we can choose some number of objects and assign them to "group A" and some number of objects and assign them to "group B" such that the total size of "group A" and "group B" is always $k$. If we want a closed form for this quantity, we should calculate it in another way. So we could first pick the $k$ objects that will be assigned to "group A" or "group B" (there are $binom{n}{k}$ ways to do this), then for each object, assign it to "group A" or "group B". There are $2^k$ ways to make these assignments. So,
            $$sum_{i=0}^k binom{n}{i}binom{n-i}{k-i}=binom{n}{k}2^k$$






            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%2f3085235%2fclosed-form-using-binomial-expansion%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









              6












              $begingroup$

              Your sum can be rewritten in sigma notation as
              $$ sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j}.$$
              We observe that for $j = 0, dots, k$, we have
              $$ binom{n}{j} binom{n-j}{k-j} = frac{n!}{j!(n-j)!} frac{(n-j)!}{(n-k)!(k-j)!} =
              frac{n!}{k! (n-k)!} frac{k!}{j!(k-j)!} = binom{n}{k} binom{k}{j}.$$
              Summing over $j$ gives
              $$
              sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j} = sum_{j = 0}^k binom{n}{k} binom{k}{j} = 2^k binom{n}{k}.$$






              share|cite|improve this answer











              $endgroup$


















                6












                $begingroup$

                Your sum can be rewritten in sigma notation as
                $$ sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j}.$$
                We observe that for $j = 0, dots, k$, we have
                $$ binom{n}{j} binom{n-j}{k-j} = frac{n!}{j!(n-j)!} frac{(n-j)!}{(n-k)!(k-j)!} =
                frac{n!}{k! (n-k)!} frac{k!}{j!(k-j)!} = binom{n}{k} binom{k}{j}.$$
                Summing over $j$ gives
                $$
                sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j} = sum_{j = 0}^k binom{n}{k} binom{k}{j} = 2^k binom{n}{k}.$$






                share|cite|improve this answer











                $endgroup$
















                  6












                  6








                  6





                  $begingroup$

                  Your sum can be rewritten in sigma notation as
                  $$ sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j}.$$
                  We observe that for $j = 0, dots, k$, we have
                  $$ binom{n}{j} binom{n-j}{k-j} = frac{n!}{j!(n-j)!} frac{(n-j)!}{(n-k)!(k-j)!} =
                  frac{n!}{k! (n-k)!} frac{k!}{j!(k-j)!} = binom{n}{k} binom{k}{j}.$$
                  Summing over $j$ gives
                  $$
                  sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j} = sum_{j = 0}^k binom{n}{k} binom{k}{j} = 2^k binom{n}{k}.$$






                  share|cite|improve this answer











                  $endgroup$



                  Your sum can be rewritten in sigma notation as
                  $$ sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j}.$$
                  We observe that for $j = 0, dots, k$, we have
                  $$ binom{n}{j} binom{n-j}{k-j} = frac{n!}{j!(n-j)!} frac{(n-j)!}{(n-k)!(k-j)!} =
                  frac{n!}{k! (n-k)!} frac{k!}{j!(k-j)!} = binom{n}{k} binom{k}{j}.$$
                  Summing over $j$ gives
                  $$
                  sum_{j = 0}^k binom{n}{j} binom{n-j}{k-j} = sum_{j = 0}^k binom{n}{k} binom{k}{j} = 2^k binom{n}{k}.$$







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Feb 6 at 4:34

























                  answered Jan 23 at 23:58









                  Jordan GreenJordan Green

                  1,133410




                  1,133410























                      4












                      $begingroup$

                      Think about what each term counts. $binom{n}{i}$ counts the number of ways to choose $i$ things from $n$ things, and $binom{n-i}{k-i}$ counts the number of ways to choose $k-i$ things from $n-i$ things. So we could interpret this as the following: start with a group of $n$ objects, then pick $i$ of them to be assigned to "group A" and pick $k-i$ of the remaining $n-i$ objects to be assigned to "group B". The number of ways to do this is $binom{n}{i}binom{n-i}{k-i}$.



                      If we sum these from $i=0$ to $i=k$, then we are counting all the ways that we can choose some number of objects and assign them to "group A" and some number of objects and assign them to "group B" such that the total size of "group A" and "group B" is always $k$. If we want a closed form for this quantity, we should calculate it in another way. So we could first pick the $k$ objects that will be assigned to "group A" or "group B" (there are $binom{n}{k}$ ways to do this), then for each object, assign it to "group A" or "group B". There are $2^k$ ways to make these assignments. So,
                      $$sum_{i=0}^k binom{n}{i}binom{n-i}{k-i}=binom{n}{k}2^k$$






                      share|cite|improve this answer









                      $endgroup$


















                        4












                        $begingroup$

                        Think about what each term counts. $binom{n}{i}$ counts the number of ways to choose $i$ things from $n$ things, and $binom{n-i}{k-i}$ counts the number of ways to choose $k-i$ things from $n-i$ things. So we could interpret this as the following: start with a group of $n$ objects, then pick $i$ of them to be assigned to "group A" and pick $k-i$ of the remaining $n-i$ objects to be assigned to "group B". The number of ways to do this is $binom{n}{i}binom{n-i}{k-i}$.



                        If we sum these from $i=0$ to $i=k$, then we are counting all the ways that we can choose some number of objects and assign them to "group A" and some number of objects and assign them to "group B" such that the total size of "group A" and "group B" is always $k$. If we want a closed form for this quantity, we should calculate it in another way. So we could first pick the $k$ objects that will be assigned to "group A" or "group B" (there are $binom{n}{k}$ ways to do this), then for each object, assign it to "group A" or "group B". There are $2^k$ ways to make these assignments. So,
                        $$sum_{i=0}^k binom{n}{i}binom{n-i}{k-i}=binom{n}{k}2^k$$






                        share|cite|improve this answer









                        $endgroup$
















                          4












                          4








                          4





                          $begingroup$

                          Think about what each term counts. $binom{n}{i}$ counts the number of ways to choose $i$ things from $n$ things, and $binom{n-i}{k-i}$ counts the number of ways to choose $k-i$ things from $n-i$ things. So we could interpret this as the following: start with a group of $n$ objects, then pick $i$ of them to be assigned to "group A" and pick $k-i$ of the remaining $n-i$ objects to be assigned to "group B". The number of ways to do this is $binom{n}{i}binom{n-i}{k-i}$.



                          If we sum these from $i=0$ to $i=k$, then we are counting all the ways that we can choose some number of objects and assign them to "group A" and some number of objects and assign them to "group B" such that the total size of "group A" and "group B" is always $k$. If we want a closed form for this quantity, we should calculate it in another way. So we could first pick the $k$ objects that will be assigned to "group A" or "group B" (there are $binom{n}{k}$ ways to do this), then for each object, assign it to "group A" or "group B". There are $2^k$ ways to make these assignments. So,
                          $$sum_{i=0}^k binom{n}{i}binom{n-i}{k-i}=binom{n}{k}2^k$$






                          share|cite|improve this answer









                          $endgroup$



                          Think about what each term counts. $binom{n}{i}$ counts the number of ways to choose $i$ things from $n$ things, and $binom{n-i}{k-i}$ counts the number of ways to choose $k-i$ things from $n-i$ things. So we could interpret this as the following: start with a group of $n$ objects, then pick $i$ of them to be assigned to "group A" and pick $k-i$ of the remaining $n-i$ objects to be assigned to "group B". The number of ways to do this is $binom{n}{i}binom{n-i}{k-i}$.



                          If we sum these from $i=0$ to $i=k$, then we are counting all the ways that we can choose some number of objects and assign them to "group A" and some number of objects and assign them to "group B" such that the total size of "group A" and "group B" is always $k$. If we want a closed form for this quantity, we should calculate it in another way. So we could first pick the $k$ objects that will be assigned to "group A" or "group B" (there are $binom{n}{k}$ ways to do this), then for each object, assign it to "group A" or "group B". There are $2^k$ ways to make these assignments. So,
                          $$sum_{i=0}^k binom{n}{i}binom{n-i}{k-i}=binom{n}{k}2^k$$







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered Jan 24 at 0:00









                          kccukccu

                          10.6k11229




                          10.6k11229






























                              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%2f3085235%2fclosed-form-using-binomial-expansion%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

                              MongoDB - Not Authorized To Execute Command

                              How to fix TextFormField cause rebuild widget in Flutter

                              in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith