Proving equivalence of two conditions

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












$a,b,c,d,p,q$ are integers such that

$$c=b-aquad,quad 0leq dquad,quad 1leq aleq bleq d+1quad,quad 1leq pquad,quad 1leq q$$



How to argue that the cumbersome condition



$$leftlfloor fracp-1arightrfloor leq leftlfloor fracq+c-1brightrfloorlandundersethspace2.16cm
llapleftlfloor tfracp+0arightrfloor large textbf = leftlfloor tfracq+c+0brightrfloor land leftlfloor tfracp+1arightrfloor large textbf = leftlfloor tfracq+c+1brightrfloor
land largeldots land ,rlapleftlfloor tfracp+d-1arightrfloor large textbf = leftlfloor tfracq+c+d-1brightrfloorundersetunderbracetextequality conditionslandleftlfloor fracp+darightrfloor geq leftlfloor fracq+c+dbrightrfloor$$



is the same as the simpler condition



$$c leftlfloor fracp-1arightrfloor leq q-pleq c leftlfloor fracd+parightrfloor -cland (a=b lor dleq 2 a-(q bmod b))$$



I wanted to do it by induction wrt. $d$, but I can't see how to do it even when $d=0$. Any ideas?










share|cite|improve this question

























    up vote
    0
    down vote

    favorite
    1












    $a,b,c,d,p,q$ are integers such that

    $$c=b-aquad,quad 0leq dquad,quad 1leq aleq bleq d+1quad,quad 1leq pquad,quad 1leq q$$



    How to argue that the cumbersome condition



    $$leftlfloor fracp-1arightrfloor leq leftlfloor fracq+c-1brightrfloorlandundersethspace2.16cm
    llapleftlfloor tfracp+0arightrfloor large textbf = leftlfloor tfracq+c+0brightrfloor land leftlfloor tfracp+1arightrfloor large textbf = leftlfloor tfracq+c+1brightrfloor
    land largeldots land ,rlapleftlfloor tfracp+d-1arightrfloor large textbf = leftlfloor tfracq+c+d-1brightrfloorundersetunderbracetextequality conditionslandleftlfloor fracp+darightrfloor geq leftlfloor fracq+c+dbrightrfloor$$



    is the same as the simpler condition



    $$c leftlfloor fracp-1arightrfloor leq q-pleq c leftlfloor fracd+parightrfloor -cland (a=b lor dleq 2 a-(q bmod b))$$



    I wanted to do it by induction wrt. $d$, but I can't see how to do it even when $d=0$. Any ideas?










    share|cite|improve this question























      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      $a,b,c,d,p,q$ are integers such that

      $$c=b-aquad,quad 0leq dquad,quad 1leq aleq bleq d+1quad,quad 1leq pquad,quad 1leq q$$



      How to argue that the cumbersome condition



      $$leftlfloor fracp-1arightrfloor leq leftlfloor fracq+c-1brightrfloorlandundersethspace2.16cm
      llapleftlfloor tfracp+0arightrfloor large textbf = leftlfloor tfracq+c+0brightrfloor land leftlfloor tfracp+1arightrfloor large textbf = leftlfloor tfracq+c+1brightrfloor
      land largeldots land ,rlapleftlfloor tfracp+d-1arightrfloor large textbf = leftlfloor tfracq+c+d-1brightrfloorundersetunderbracetextequality conditionslandleftlfloor fracp+darightrfloor geq leftlfloor fracq+c+dbrightrfloor$$



      is the same as the simpler condition



      $$c leftlfloor fracp-1arightrfloor leq q-pleq c leftlfloor fracd+parightrfloor -cland (a=b lor dleq 2 a-(q bmod b))$$



      I wanted to do it by induction wrt. $d$, but I can't see how to do it even when $d=0$. Any ideas?










      share|cite|improve this question













      $a,b,c,d,p,q$ are integers such that

      $$c=b-aquad,quad 0leq dquad,quad 1leq aleq bleq d+1quad,quad 1leq pquad,quad 1leq q$$



      How to argue that the cumbersome condition



      $$leftlfloor fracp-1arightrfloor leq leftlfloor fracq+c-1brightrfloorlandundersethspace2.16cm
      llapleftlfloor tfracp+0arightrfloor large textbf = leftlfloor tfracq+c+0brightrfloor land leftlfloor tfracp+1arightrfloor large textbf = leftlfloor tfracq+c+1brightrfloor
      land largeldots land ,rlapleftlfloor tfracp+d-1arightrfloor large textbf = leftlfloor tfracq+c+d-1brightrfloorundersetunderbracetextequality conditionslandleftlfloor fracp+darightrfloor geq leftlfloor fracq+c+dbrightrfloor$$



      is the same as the simpler condition



      $$c leftlfloor fracp-1arightrfloor leq q-pleq c leftlfloor fracd+parightrfloor -cland (a=b lor dleq 2 a-(q bmod b))$$



      I wanted to do it by induction wrt. $d$, but I can't see how to do it even when $d=0$. Any ideas?







      discrete-mathematics modular-arithmetic floor-function






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Aug 31 at 7:00









      lasen H

      690112




      690112




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I think the $d=0$ case should be fine: In this case, the equality conditions are void, and we have $c=d=0$ as well as $a=b=1$. But then the left-hand side of the equivalence is $lfloor p-1 rfloor le lfloor q-1 rfloor land lfloor p rfloor ge lfloor q rfloor$, where we may drop the floor brackets since $p$ and $q$ are integers. Hence the left-hand side just says that $p=q$. For the right-hand side one obtains $0 le q-p le 0 land big( a=b lor 0 le -(q bmod 1) big)$, whose left conjunct simplifies to $p=q$ while the right conjunct is trivial since we have $a=b=1$ and $q bmod 1 = 0$ for any positive integer $q$.






          share|cite|improve this answer




















            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f2900397%2fproving-equivalence-of-two-conditions%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I think the $d=0$ case should be fine: In this case, the equality conditions are void, and we have $c=d=0$ as well as $a=b=1$. But then the left-hand side of the equivalence is $lfloor p-1 rfloor le lfloor q-1 rfloor land lfloor p rfloor ge lfloor q rfloor$, where we may drop the floor brackets since $p$ and $q$ are integers. Hence the left-hand side just says that $p=q$. For the right-hand side one obtains $0 le q-p le 0 land big( a=b lor 0 le -(q bmod 1) big)$, whose left conjunct simplifies to $p=q$ while the right conjunct is trivial since we have $a=b=1$ and $q bmod 1 = 0$ for any positive integer $q$.






            share|cite|improve this answer
























              up vote
              0
              down vote













              I think the $d=0$ case should be fine: In this case, the equality conditions are void, and we have $c=d=0$ as well as $a=b=1$. But then the left-hand side of the equivalence is $lfloor p-1 rfloor le lfloor q-1 rfloor land lfloor p rfloor ge lfloor q rfloor$, where we may drop the floor brackets since $p$ and $q$ are integers. Hence the left-hand side just says that $p=q$. For the right-hand side one obtains $0 le q-p le 0 land big( a=b lor 0 le -(q bmod 1) big)$, whose left conjunct simplifies to $p=q$ while the right conjunct is trivial since we have $a=b=1$ and $q bmod 1 = 0$ for any positive integer $q$.






              share|cite|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                I think the $d=0$ case should be fine: In this case, the equality conditions are void, and we have $c=d=0$ as well as $a=b=1$. But then the left-hand side of the equivalence is $lfloor p-1 rfloor le lfloor q-1 rfloor land lfloor p rfloor ge lfloor q rfloor$, where we may drop the floor brackets since $p$ and $q$ are integers. Hence the left-hand side just says that $p=q$. For the right-hand side one obtains $0 le q-p le 0 land big( a=b lor 0 le -(q bmod 1) big)$, whose left conjunct simplifies to $p=q$ while the right conjunct is trivial since we have $a=b=1$ and $q bmod 1 = 0$ for any positive integer $q$.






                share|cite|improve this answer












                I think the $d=0$ case should be fine: In this case, the equality conditions are void, and we have $c=d=0$ as well as $a=b=1$. But then the left-hand side of the equivalence is $lfloor p-1 rfloor le lfloor q-1 rfloor land lfloor p rfloor ge lfloor q rfloor$, where we may drop the floor brackets since $p$ and $q$ are integers. Hence the left-hand side just says that $p=q$. For the right-hand side one obtains $0 le q-p le 0 land big( a=b lor 0 le -(q bmod 1) big)$, whose left conjunct simplifies to $p=q$ while the right conjunct is trivial since we have $a=b=1$ and $q bmod 1 = 0$ for any positive integer $q$.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Sep 6 at 16:29









                Quod erat demonstrandum

                42




                42



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2900397%2fproving-equivalence-of-two-conditions%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    這個網誌中的熱門文章

                    How to combine Bézier curves to a surface?

                    Mutual Information Always Non-negative

                    Why am i infinitely getting the same tweet with the Twitter Search API?