Positive solutions to a system of linear diophantine equations












1












$begingroup$


A system of equations is



$$x_1+x_2+x_3+x_4=b_1$$
$$x_1+x_5+x_6+x_7=b_2$$
$$x_2+x_5+x_7+x_8=b_3$$
$$x_3+x_6+x_8+x_{10}=b_4$$
$$x_4+x_7+x_9+x_{10}=b_5$$
$b_1,...,b_5$ and $x_1,...,x_{10}$ are positive integers or zero. How can I determine all possible solutions from this additional information. There are necessarily finite solutions as there are only finite positive integers for each x that are smaller than b. It is impossible to solve it by trying every possibility as the original system is way bigger (around 40 equations and 900 variables). I would appreciate every hint in the right direction.










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    A system of equations is



    $$x_1+x_2+x_3+x_4=b_1$$
    $$x_1+x_5+x_6+x_7=b_2$$
    $$x_2+x_5+x_7+x_8=b_3$$
    $$x_3+x_6+x_8+x_{10}=b_4$$
    $$x_4+x_7+x_9+x_{10}=b_5$$
    $b_1,...,b_5$ and $x_1,...,x_{10}$ are positive integers or zero. How can I determine all possible solutions from this additional information. There are necessarily finite solutions as there are only finite positive integers for each x that are smaller than b. It is impossible to solve it by trying every possibility as the original system is way bigger (around 40 equations and 900 variables). I would appreciate every hint in the right direction.










    share|cite|improve this question









    $endgroup$















      1












      1








      1





      $begingroup$


      A system of equations is



      $$x_1+x_2+x_3+x_4=b_1$$
      $$x_1+x_5+x_6+x_7=b_2$$
      $$x_2+x_5+x_7+x_8=b_3$$
      $$x_3+x_6+x_8+x_{10}=b_4$$
      $$x_4+x_7+x_9+x_{10}=b_5$$
      $b_1,...,b_5$ and $x_1,...,x_{10}$ are positive integers or zero. How can I determine all possible solutions from this additional information. There are necessarily finite solutions as there are only finite positive integers for each x that are smaller than b. It is impossible to solve it by trying every possibility as the original system is way bigger (around 40 equations and 900 variables). I would appreciate every hint in the right direction.










      share|cite|improve this question









      $endgroup$




      A system of equations is



      $$x_1+x_2+x_3+x_4=b_1$$
      $$x_1+x_5+x_6+x_7=b_2$$
      $$x_2+x_5+x_7+x_8=b_3$$
      $$x_3+x_6+x_8+x_{10}=b_4$$
      $$x_4+x_7+x_9+x_{10}=b_5$$
      $b_1,...,b_5$ and $x_1,...,x_{10}$ are positive integers or zero. How can I determine all possible solutions from this additional information. There are necessarily finite solutions as there are only finite positive integers for each x that are smaller than b. It is impossible to solve it by trying every possibility as the original system is way bigger (around 40 equations and 900 variables). I would appreciate every hint in the right direction.







      diophantine-equations systems-of-equations






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jun 15 '15 at 7:38









      Nicolai SchlageNicolai Schlage

      132




      132






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.



          In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
          begin{align*}
          x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
          x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
          x_3 & = b_4 - x_{10} - x_6 - x_8, \
          x_4 & = b_5 - x_{10} - x_7 - x_9, \
          x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
          end{align*}
          where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.



          Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
          There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.






          share|cite|improve this answer









          $endgroup$














            Your Answer








            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%2f1325855%2fpositive-solutions-to-a-system-of-linear-diophantine-equations%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












            $begingroup$

            There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.



            In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
            begin{align*}
            x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
            x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
            x_3 & = b_4 - x_{10} - x_6 - x_8, \
            x_4 & = b_5 - x_{10} - x_7 - x_9, \
            x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
            end{align*}
            where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.



            Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
            There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.






            share|cite|improve this answer









            $endgroup$


















              0












              $begingroup$

              There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.



              In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
              begin{align*}
              x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
              x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
              x_3 & = b_4 - x_{10} - x_6 - x_8, \
              x_4 & = b_5 - x_{10} - x_7 - x_9, \
              x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
              end{align*}
              where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.



              Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
              There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.






              share|cite|improve this answer









              $endgroup$
















                0












                0








                0





                $begingroup$

                There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.



                In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
                begin{align*}
                x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
                x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
                x_3 & = b_4 - x_{10} - x_6 - x_8, \
                x_4 & = b_5 - x_{10} - x_7 - x_9, \
                x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
                end{align*}
                where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.



                Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
                There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.






                share|cite|improve this answer









                $endgroup$



                There is a theory to solve systems of linear Diophantine equations over $mathbb{Z}$, e.g., see here. Then one could select the nonneggative solutions.



                In this particualr case, I find it helpful to first solve the system over the field of rational numbers. Then, by linear algebra, the system is equivalent to
                begin{align*}
                x_1 & =frac{b_1 + b_2 - b_3 - b_4 - b_5 + 2x_{10} + x_7 + 2x_8 + x_9}{2}, \
                x_2 & = frac{b_1 - b_2 + b_3 - b_4 - b_5 + 2x_{10} + 2x_6 + x_7 + x_9}{2},\
                x_3 & = b_4 - x_{10} - x_6 - x_8, \
                x_4 & = b_5 - x_{10} - x_7 - x_9, \
                x_5 & = frac{- b_1 + b_2 + b_3 + b_4 + b_5 - 2x_{10} - 2x_6 - 3x_7 - 2x_8 - x_9}{2},
                end{align*}
                where we can choose the variables on the LHS (namely $x_6,x_7,x_8,x_9,x_{10}$) as arbitrary rational numbers.



                Now we can restrict the domain to nonnegative integers, and obtain the additional conditions on $x_6,ldots ,x_{10}$: the expressions in the nominator for $x_1,x_2,x_5$ need to be even, and all expressions need to be nonnegative.
                There is still some work to do, however, but it seems easier to me than before. For example, if $b_4=b_5=0$, then necessarily $x_6=ldots =x_{10}=0$.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Jun 15 '15 at 8:24









                Dietrich BurdeDietrich Burde

                82.1k649107




                82.1k649107






























                    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%2f1325855%2fpositive-solutions-to-a-system-of-linear-diophantine-equations%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