Number ways of arranging dots and lines with restriction












0












$begingroup$


I have this problem where I need to calculate the following:



For x dots and y lines, how many arrangements are possible such that no more than n dots are together?



Can anyone help me out?










share|cite|improve this question











$endgroup$

















    0












    $begingroup$


    I have this problem where I need to calculate the following:



    For x dots and y lines, how many arrangements are possible such that no more than n dots are together?



    Can anyone help me out?










    share|cite|improve this question











    $endgroup$















      0












      0








      0





      $begingroup$


      I have this problem where I need to calculate the following:



      For x dots and y lines, how many arrangements are possible such that no more than n dots are together?



      Can anyone help me out?










      share|cite|improve this question











      $endgroup$




      I have this problem where I need to calculate the following:



      For x dots and y lines, how many arrangements are possible such that no more than n dots are together?



      Can anyone help me out?







      combinatorics discrete-mathematics permutations






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 13 '18 at 4:46







      Harry

















      asked Dec 13 '18 at 4:03









      HarryHarry

      12




      12






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          First put all the lines, like this | | | | |



          Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
          Now, let the number of dots in $i$th gap is $x_i$.
          Required number of ways is the number of non-negative solutions of the equation
          $$x_1+x_2+...+x_{y+1}=x$$
          Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.



          Hope it is helpful:)






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
            $endgroup$
            – Harry
            Dec 13 '18 at 4:34












          • $begingroup$
            This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
            $endgroup$
            – platty
            Dec 13 '18 at 4:49










          • $begingroup$
            Ok, I have edited it to correct.
            $endgroup$
            – Martund
            Dec 13 '18 at 5:29











          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%2f3037582%2fnumber-ways-of-arranging-dots-and-lines-with-restriction%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









          1












          $begingroup$

          First put all the lines, like this | | | | |



          Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
          Now, let the number of dots in $i$th gap is $x_i$.
          Required number of ways is the number of non-negative solutions of the equation
          $$x_1+x_2+...+x_{y+1}=x$$
          Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.



          Hope it is helpful:)






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
            $endgroup$
            – Harry
            Dec 13 '18 at 4:34












          • $begingroup$
            This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
            $endgroup$
            – platty
            Dec 13 '18 at 4:49










          • $begingroup$
            Ok, I have edited it to correct.
            $endgroup$
            – Martund
            Dec 13 '18 at 5:29
















          1












          $begingroup$

          First put all the lines, like this | | | | |



          Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
          Now, let the number of dots in $i$th gap is $x_i$.
          Required number of ways is the number of non-negative solutions of the equation
          $$x_1+x_2+...+x_{y+1}=x$$
          Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.



          Hope it is helpful:)






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
            $endgroup$
            – Harry
            Dec 13 '18 at 4:34












          • $begingroup$
            This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
            $endgroup$
            – platty
            Dec 13 '18 at 4:49










          • $begingroup$
            Ok, I have edited it to correct.
            $endgroup$
            – Martund
            Dec 13 '18 at 5:29














          1












          1








          1





          $begingroup$

          First put all the lines, like this | | | | |



          Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
          Now, let the number of dots in $i$th gap is $x_i$.
          Required number of ways is the number of non-negative solutions of the equation
          $$x_1+x_2+...+x_{y+1}=x$$
          Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.



          Hope it is helpful:)






          share|cite|improve this answer











          $endgroup$



          First put all the lines, like this | | | | |



          Then, out of y lines,$y+1$ gaps will be created (including end spaces). Maximum number of dots in each gap is $n$.
          Now, let the number of dots in $i$th gap is $x_i$.
          Required number of ways is the number of non-negative solutions of the equation
          $$x_1+x_2+...+x_{y+1}=x$$
          Where $x_ileq n forall i$, now you can easily do it by finding the coefficient of $m^x$ in the expansion of $(1+m+m^2+...+m^n)^{y+1}$.



          Hope it is helpful:)







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 13 '18 at 5:42

























          answered Dec 13 '18 at 4:13









          MartundMartund

          1,633213




          1,633213












          • $begingroup$
            In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
            $endgroup$
            – Harry
            Dec 13 '18 at 4:34












          • $begingroup$
            This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
            $endgroup$
            – platty
            Dec 13 '18 at 4:49










          • $begingroup$
            Ok, I have edited it to correct.
            $endgroup$
            – Martund
            Dec 13 '18 at 5:29


















          • $begingroup$
            In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
            $endgroup$
            – Harry
            Dec 13 '18 at 4:34












          • $begingroup$
            This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
            $endgroup$
            – platty
            Dec 13 '18 at 4:49










          • $begingroup$
            Ok, I have edited it to correct.
            $endgroup$
            – Martund
            Dec 13 '18 at 5:29
















          $begingroup$
          In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
          $endgroup$
          – Harry
          Dec 13 '18 at 4:34






          $begingroup$
          In the case where x = 4, n = 5 and y = 1, the restriction of n basically doesn't come into effect, so we can just calculate the possibilities the normal way: Arrangements = 6C1 = 6. Using your method, I would get 10C4 = 210, which is not the same. Is there something more which we need to consider with your method?
          $endgroup$
          – Harry
          Dec 13 '18 at 4:34














          $begingroup$
          This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
          $endgroup$
          – platty
          Dec 13 '18 at 4:49




          $begingroup$
          This method treats different “spots” in the same gap as distinct. But they should not be; you’re significantly overcounting.
          $endgroup$
          – platty
          Dec 13 '18 at 4:49












          $begingroup$
          Ok, I have edited it to correct.
          $endgroup$
          – Martund
          Dec 13 '18 at 5:29




          $begingroup$
          Ok, I have edited it to correct.
          $endgroup$
          – Martund
          Dec 13 '18 at 5:29


















          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%2f3037582%2fnumber-ways-of-arranging-dots-and-lines-with-restriction%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

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix