A simple modulo arithmetic problem

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











up vote
2
down vote

favorite












I slur `$zmod L$' here to mean the only element of $z+nL: nin mathbbZcap [0,L).$



We are given quantities:



  • $a,b, L,$

  • $D_1 = (ax mod L) + aw$,

  • $D_2 = bx+bw.$

We are also given the fact:



  • $D_3 =(ax + bx)in [0,L).$, i.e. $D_3=(D_3mod L)$

From these facts, is it possible to compute the following in terms of the given quantities?
$$D_4 = ax+bx+aw+bw= D_3+aw + bw$$




Here's my try:



beginalign
(D_1+D_2) &= ((ax mod L) + aw + bx+bw) \
&= ((ax mod L)-ax+ax+bx+aw+bw) \
&= ((ax mod L)-ax)+D_4.
endalign



So it is enough to find $(ax mod L)-ax,$ which I am not sure is possible.







share|cite|improve this question





















  • Ok. Comments deleted then. Now I still don't really understand how you want to derive something non-trivial from the three given equalities: the first two define $D_1$ and $D_2$, they don't really carry information. The third one does carry the information that $0leq (a+b)x <L$. That's basically all you have. Finally, what do you mean by " is it possible to compute..."? Do you mean compute "the" representative of that modulo $L$? And how is that question related to $D_1$ and $D_2$?
    – Arnaud Mortier
    Jul 29 at 22:59











  • No, I mean the quantity outright. That is, if $D_3=(a+b)cdot x in [0,L)$ then I want $D_3+(a+b)w in mathbbR$
    – enthdegree
    Jul 29 at 23:02










  • So to be clear, you want an answer in terms of $D_1$ and $D_2$?
    – é«˜ç”°èˆª
    Jul 29 at 23:12










  • Yes. $$
    – enthdegree
    Jul 29 at 23:14










  • You don't know $x$ and $w$ but you know $a$ and $b$ is that right?
    – Arnaud Mortier
    Jul 31 at 22:02















up vote
2
down vote

favorite












I slur `$zmod L$' here to mean the only element of $z+nL: nin mathbbZcap [0,L).$



We are given quantities:



  • $a,b, L,$

  • $D_1 = (ax mod L) + aw$,

  • $D_2 = bx+bw.$

We are also given the fact:



  • $D_3 =(ax + bx)in [0,L).$, i.e. $D_3=(D_3mod L)$

From these facts, is it possible to compute the following in terms of the given quantities?
$$D_4 = ax+bx+aw+bw= D_3+aw + bw$$




Here's my try:



beginalign
(D_1+D_2) &= ((ax mod L) + aw + bx+bw) \
&= ((ax mod L)-ax+ax+bx+aw+bw) \
&= ((ax mod L)-ax)+D_4.
endalign



So it is enough to find $(ax mod L)-ax,$ which I am not sure is possible.







share|cite|improve this question





















  • Ok. Comments deleted then. Now I still don't really understand how you want to derive something non-trivial from the three given equalities: the first two define $D_1$ and $D_2$, they don't really carry information. The third one does carry the information that $0leq (a+b)x <L$. That's basically all you have. Finally, what do you mean by " is it possible to compute..."? Do you mean compute "the" representative of that modulo $L$? And how is that question related to $D_1$ and $D_2$?
    – Arnaud Mortier
    Jul 29 at 22:59











  • No, I mean the quantity outright. That is, if $D_3=(a+b)cdot x in [0,L)$ then I want $D_3+(a+b)w in mathbbR$
    – enthdegree
    Jul 29 at 23:02










  • So to be clear, you want an answer in terms of $D_1$ and $D_2$?
    – é«˜ç”°èˆª
    Jul 29 at 23:12










  • Yes. $$
    – enthdegree
    Jul 29 at 23:14










  • You don't know $x$ and $w$ but you know $a$ and $b$ is that right?
    – Arnaud Mortier
    Jul 31 at 22:02













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I slur `$zmod L$' here to mean the only element of $z+nL: nin mathbbZcap [0,L).$



We are given quantities:



  • $a,b, L,$

  • $D_1 = (ax mod L) + aw$,

  • $D_2 = bx+bw.$

We are also given the fact:



  • $D_3 =(ax + bx)in [0,L).$, i.e. $D_3=(D_3mod L)$

From these facts, is it possible to compute the following in terms of the given quantities?
$$D_4 = ax+bx+aw+bw= D_3+aw + bw$$




Here's my try:



beginalign
(D_1+D_2) &= ((ax mod L) + aw + bx+bw) \
&= ((ax mod L)-ax+ax+bx+aw+bw) \
&= ((ax mod L)-ax)+D_4.
endalign



So it is enough to find $(ax mod L)-ax,$ which I am not sure is possible.







share|cite|improve this question













I slur `$zmod L$' here to mean the only element of $z+nL: nin mathbbZcap [0,L).$



We are given quantities:



  • $a,b, L,$

  • $D_1 = (ax mod L) + aw$,

  • $D_2 = bx+bw.$

We are also given the fact:



  • $D_3 =(ax + bx)in [0,L).$, i.e. $D_3=(D_3mod L)$

From these facts, is it possible to compute the following in terms of the given quantities?
$$D_4 = ax+bx+aw+bw= D_3+aw + bw$$




Here's my try:



beginalign
(D_1+D_2) &= ((ax mod L) + aw + bx+bw) \
&= ((ax mod L)-ax+ax+bx+aw+bw) \
&= ((ax mod L)-ax)+D_4.
endalign



So it is enough to find $(ax mod L)-ax,$ which I am not sure is possible.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 29 at 23:22
























asked Jul 29 at 22:33









enthdegree

2,46321235




2,46321235











  • Ok. Comments deleted then. Now I still don't really understand how you want to derive something non-trivial from the three given equalities: the first two define $D_1$ and $D_2$, they don't really carry information. The third one does carry the information that $0leq (a+b)x <L$. That's basically all you have. Finally, what do you mean by " is it possible to compute..."? Do you mean compute "the" representative of that modulo $L$? And how is that question related to $D_1$ and $D_2$?
    – Arnaud Mortier
    Jul 29 at 22:59











  • No, I mean the quantity outright. That is, if $D_3=(a+b)cdot x in [0,L)$ then I want $D_3+(a+b)w in mathbbR$
    – enthdegree
    Jul 29 at 23:02










  • So to be clear, you want an answer in terms of $D_1$ and $D_2$?
    – é«˜ç”°èˆª
    Jul 29 at 23:12










  • Yes. $$
    – enthdegree
    Jul 29 at 23:14










  • You don't know $x$ and $w$ but you know $a$ and $b$ is that right?
    – Arnaud Mortier
    Jul 31 at 22:02

















  • Ok. Comments deleted then. Now I still don't really understand how you want to derive something non-trivial from the three given equalities: the first two define $D_1$ and $D_2$, they don't really carry information. The third one does carry the information that $0leq (a+b)x <L$. That's basically all you have. Finally, what do you mean by " is it possible to compute..."? Do you mean compute "the" representative of that modulo $L$? And how is that question related to $D_1$ and $D_2$?
    – Arnaud Mortier
    Jul 29 at 22:59











  • No, I mean the quantity outright. That is, if $D_3=(a+b)cdot x in [0,L)$ then I want $D_3+(a+b)w in mathbbR$
    – enthdegree
    Jul 29 at 23:02










  • So to be clear, you want an answer in terms of $D_1$ and $D_2$?
    – é«˜ç”°èˆª
    Jul 29 at 23:12










  • Yes. $$
    – enthdegree
    Jul 29 at 23:14










  • You don't know $x$ and $w$ but you know $a$ and $b$ is that right?
    – Arnaud Mortier
    Jul 31 at 22:02
















Ok. Comments deleted then. Now I still don't really understand how you want to derive something non-trivial from the three given equalities: the first two define $D_1$ and $D_2$, they don't really carry information. The third one does carry the information that $0leq (a+b)x <L$. That's basically all you have. Finally, what do you mean by " is it possible to compute..."? Do you mean compute "the" representative of that modulo $L$? And how is that question related to $D_1$ and $D_2$?
– Arnaud Mortier
Jul 29 at 22:59





Ok. Comments deleted then. Now I still don't really understand how you want to derive something non-trivial from the three given equalities: the first two define $D_1$ and $D_2$, they don't really carry information. The third one does carry the information that $0leq (a+b)x <L$. That's basically all you have. Finally, what do you mean by " is it possible to compute..."? Do you mean compute "the" representative of that modulo $L$? And how is that question related to $D_1$ and $D_2$?
– Arnaud Mortier
Jul 29 at 22:59













No, I mean the quantity outright. That is, if $D_3=(a+b)cdot x in [0,L)$ then I want $D_3+(a+b)w in mathbbR$
– enthdegree
Jul 29 at 23:02




No, I mean the quantity outright. That is, if $D_3=(a+b)cdot x in [0,L)$ then I want $D_3+(a+b)w in mathbbR$
– enthdegree
Jul 29 at 23:02












So to be clear, you want an answer in terms of $D_1$ and $D_2$?
– é«˜ç”°èˆª
Jul 29 at 23:12




So to be clear, you want an answer in terms of $D_1$ and $D_2$?
– é«˜ç”°èˆª
Jul 29 at 23:12












Yes. $$
– enthdegree
Jul 29 at 23:14




Yes. $$
– enthdegree
Jul 29 at 23:14












You don't know $x$ and $w$ but you know $a$ and $b$ is that right?
– Arnaud Mortier
Jul 31 at 22:02





You don't know $x$ and $w$ but you know $a$ and $b$ is that right?
– Arnaud Mortier
Jul 31 at 22:02











1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










The difficulty of that problem is that there is a lot of useless data. All you need is that you know $a$, $b$, and $D_2=bx+bw$.



$$D_4=D_2left(1+frac abright)$$






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%2f2866506%2fa-simple-modulo-arithmetic-problem%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



    accepted










    The difficulty of that problem is that there is a lot of useless data. All you need is that you know $a$, $b$, and $D_2=bx+bw$.



    $$D_4=D_2left(1+frac abright)$$






    share|cite|improve this answer

























      up vote
      0
      down vote



      accepted










      The difficulty of that problem is that there is a lot of useless data. All you need is that you know $a$, $b$, and $D_2=bx+bw$.



      $$D_4=D_2left(1+frac abright)$$






      share|cite|improve this answer























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        The difficulty of that problem is that there is a lot of useless data. All you need is that you know $a$, $b$, and $D_2=bx+bw$.



        $$D_4=D_2left(1+frac abright)$$






        share|cite|improve this answer













        The difficulty of that problem is that there is a lot of useless data. All you need is that you know $a$, $b$, and $D_2=bx+bw$.



        $$D_4=D_2left(1+frac abright)$$







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Jul 31 at 22:05









        Arnaud Mortier

        18.2k21958




        18.2k21958






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2866506%2fa-simple-modulo-arithmetic-problem%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?

            What is the equation of a 3D cone with generalised tilt?