Show that the number of possible compositions for n ∈ $mathbb{N}$ is $2^{n−1}$ [duplicate]












0












$begingroup$



This question already has an answer here:




  • number of ordered partitions of integer

    3 answers




Let n ∈ $mathbb{N}$ be a natural number, an ordered set of positive integers $(λ_{1},...,λ_{k})$ such that $λ_{1},+ , ... , + , λ_{k} = n$ is called a composition for n ∈ $mathbb{N}$. These integers are not necessarily distinct. Show that the number of possible compositions for n ∈ $mathbb{N}$ is $2^{n−1}$.



Example: the number $n = 4$ has the following 8 compositions
$(4),(3, 1),(2, 2),(2, 1, 1),(1, 3),(1, 2, 1),(1, 1, 2),(1, 1, 1, 1)$.










share|cite|improve this question









$endgroup$



marked as duplicate by lulu, Mike Earnest, Lord Shark the Unknown, José Carlos Santos, Claude Leibovici Jan 18 at 7:07


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.























    0












    $begingroup$



    This question already has an answer here:




    • number of ordered partitions of integer

      3 answers




    Let n ∈ $mathbb{N}$ be a natural number, an ordered set of positive integers $(λ_{1},...,λ_{k})$ such that $λ_{1},+ , ... , + , λ_{k} = n$ is called a composition for n ∈ $mathbb{N}$. These integers are not necessarily distinct. Show that the number of possible compositions for n ∈ $mathbb{N}$ is $2^{n−1}$.



    Example: the number $n = 4$ has the following 8 compositions
    $(4),(3, 1),(2, 2),(2, 1, 1),(1, 3),(1, 2, 1),(1, 1, 2),(1, 1, 1, 1)$.










    share|cite|improve this question









    $endgroup$



    marked as duplicate by lulu, Mike Earnest, Lord Shark the Unknown, José Carlos Santos, Claude Leibovici Jan 18 at 7:07


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.





















      0












      0








      0





      $begingroup$



      This question already has an answer here:




      • number of ordered partitions of integer

        3 answers




      Let n ∈ $mathbb{N}$ be a natural number, an ordered set of positive integers $(λ_{1},...,λ_{k})$ such that $λ_{1},+ , ... , + , λ_{k} = n$ is called a composition for n ∈ $mathbb{N}$. These integers are not necessarily distinct. Show that the number of possible compositions for n ∈ $mathbb{N}$ is $2^{n−1}$.



      Example: the number $n = 4$ has the following 8 compositions
      $(4),(3, 1),(2, 2),(2, 1, 1),(1, 3),(1, 2, 1),(1, 1, 2),(1, 1, 1, 1)$.










      share|cite|improve this question









      $endgroup$





      This question already has an answer here:




      • number of ordered partitions of integer

        3 answers




      Let n ∈ $mathbb{N}$ be a natural number, an ordered set of positive integers $(λ_{1},...,λ_{k})$ such that $λ_{1},+ , ... , + , λ_{k} = n$ is called a composition for n ∈ $mathbb{N}$. These integers are not necessarily distinct. Show that the number of possible compositions for n ∈ $mathbb{N}$ is $2^{n−1}$.



      Example: the number $n = 4$ has the following 8 compositions
      $(4),(3, 1),(2, 2),(2, 1, 1),(1, 3),(1, 2, 1),(1, 1, 2),(1, 1, 1, 1)$.





      This question already has an answer here:




      • number of ordered partitions of integer

        3 answers








      combinatorics






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jan 18 at 0:33









      Kishan PatelKishan Patel

      174




      174




      marked as duplicate by lulu, Mike Earnest, Lord Shark the Unknown, José Carlos Santos, Claude Leibovici Jan 18 at 7:07


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by lulu, Mike Earnest, Lord Shark the Unknown, José Carlos Santos, Claude Leibovici Jan 18 at 7:07


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          By using stars and bars, the number of partitions into $k$ groups is $n-1choose k-1$.



          Adding up, and using the binomial theorem, we get $sum_{k=1}^n{n-1choose k-1}=sum_{k=0}^{n-1}{n-1choose k}=2^{n-1}$.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Or more directly, in the unrestricted problem you have $n-1$ places to choose to place a bar or not.
            $endgroup$
            – Daniel Schepler
            Jan 18 at 0:48










          • $begingroup$
            @DanielSchepler very nice.
            $endgroup$
            – Chris Custer
            Jan 18 at 0:52


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1












          $begingroup$

          By using stars and bars, the number of partitions into $k$ groups is $n-1choose k-1$.



          Adding up, and using the binomial theorem, we get $sum_{k=1}^n{n-1choose k-1}=sum_{k=0}^{n-1}{n-1choose k}=2^{n-1}$.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Or more directly, in the unrestricted problem you have $n-1$ places to choose to place a bar or not.
            $endgroup$
            – Daniel Schepler
            Jan 18 at 0:48










          • $begingroup$
            @DanielSchepler very nice.
            $endgroup$
            – Chris Custer
            Jan 18 at 0:52
















          1












          $begingroup$

          By using stars and bars, the number of partitions into $k$ groups is $n-1choose k-1$.



          Adding up, and using the binomial theorem, we get $sum_{k=1}^n{n-1choose k-1}=sum_{k=0}^{n-1}{n-1choose k}=2^{n-1}$.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Or more directly, in the unrestricted problem you have $n-1$ places to choose to place a bar or not.
            $endgroup$
            – Daniel Schepler
            Jan 18 at 0:48










          • $begingroup$
            @DanielSchepler very nice.
            $endgroup$
            – Chris Custer
            Jan 18 at 0:52














          1












          1








          1





          $begingroup$

          By using stars and bars, the number of partitions into $k$ groups is $n-1choose k-1$.



          Adding up, and using the binomial theorem, we get $sum_{k=1}^n{n-1choose k-1}=sum_{k=0}^{n-1}{n-1choose k}=2^{n-1}$.






          share|cite|improve this answer











          $endgroup$



          By using stars and bars, the number of partitions into $k$ groups is $n-1choose k-1$.



          Adding up, and using the binomial theorem, we get $sum_{k=1}^n{n-1choose k-1}=sum_{k=0}^{n-1}{n-1choose k}=2^{n-1}$.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Jan 18 at 0:49

























          answered Jan 18 at 0:44









          Chris CusterChris Custer

          13.9k3827




          13.9k3827












          • $begingroup$
            Or more directly, in the unrestricted problem you have $n-1$ places to choose to place a bar or not.
            $endgroup$
            – Daniel Schepler
            Jan 18 at 0:48










          • $begingroup$
            @DanielSchepler very nice.
            $endgroup$
            – Chris Custer
            Jan 18 at 0:52


















          • $begingroup$
            Or more directly, in the unrestricted problem you have $n-1$ places to choose to place a bar or not.
            $endgroup$
            – Daniel Schepler
            Jan 18 at 0:48










          • $begingroup$
            @DanielSchepler very nice.
            $endgroup$
            – Chris Custer
            Jan 18 at 0:52
















          $begingroup$
          Or more directly, in the unrestricted problem you have $n-1$ places to choose to place a bar or not.
          $endgroup$
          – Daniel Schepler
          Jan 18 at 0:48




          $begingroup$
          Or more directly, in the unrestricted problem you have $n-1$ places to choose to place a bar or not.
          $endgroup$
          – Daniel Schepler
          Jan 18 at 0:48












          $begingroup$
          @DanielSchepler very nice.
          $endgroup$
          – Chris Custer
          Jan 18 at 0:52




          $begingroup$
          @DanielSchepler very nice.
          $endgroup$
          – Chris Custer
          Jan 18 at 0:52



          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

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

          How to fix TextFormField cause rebuild widget in Flutter