Finding largest number with GCD.

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











up vote
1
down vote

favorite












The question is:



Find the largest number which when divided by 20,25,35 and 40 leaves a remainder of 14,19,29 and 34 respectively.



The solution is to find the difference which in this case is 20-14=6,25-19=6 and similarly for others.



Then finding GCD of all the numbers 20,25,35 and 40 and subtracting 6 from the obtained GCD.



I really did not understand why this solution works, if anyone could explain me the logic behind this in plain english. I am sorry I am weak in mathematics.







share|cite|improve this question



















  • You want the LCM, not the GCD here
    – Ross Millikan
    2 days ago














up vote
1
down vote

favorite












The question is:



Find the largest number which when divided by 20,25,35 and 40 leaves a remainder of 14,19,29 and 34 respectively.



The solution is to find the difference which in this case is 20-14=6,25-19=6 and similarly for others.



Then finding GCD of all the numbers 20,25,35 and 40 and subtracting 6 from the obtained GCD.



I really did not understand why this solution works, if anyone could explain me the logic behind this in plain english. I am sorry I am weak in mathematics.







share|cite|improve this question



















  • You want the LCM, not the GCD here
    – Ross Millikan
    2 days ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











The question is:



Find the largest number which when divided by 20,25,35 and 40 leaves a remainder of 14,19,29 and 34 respectively.



The solution is to find the difference which in this case is 20-14=6,25-19=6 and similarly for others.



Then finding GCD of all the numbers 20,25,35 and 40 and subtracting 6 from the obtained GCD.



I really did not understand why this solution works, if anyone could explain me the logic behind this in plain english. I am sorry I am weak in mathematics.







share|cite|improve this question











The question is:



Find the largest number which when divided by 20,25,35 and 40 leaves a remainder of 14,19,29 and 34 respectively.



The solution is to find the difference which in this case is 20-14=6,25-19=6 and similarly for others.



Then finding GCD of all the numbers 20,25,35 and 40 and subtracting 6 from the obtained GCD.



I really did not understand why this solution works, if anyone could explain me the logic behind this in plain english. I am sorry I am weak in mathematics.









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked 2 days ago









Bravo Jades

61




61











  • You want the LCM, not the GCD here
    – Ross Millikan
    2 days ago
















  • You want the LCM, not the GCD here
    – Ross Millikan
    2 days ago















You want the LCM, not the GCD here
– Ross Millikan
2 days ago




You want the LCM, not the GCD here
– Ross Millikan
2 days ago










3 Answers
3






active

oldest

votes

















up vote
1
down vote













If $x$ is the required number, $x+6$ will be divisible by lcm$(20,25,35,40)$






share|cite|improve this answer





















  • Why with x+6? What is the logic?
    – Bravo Jades
    2 days ago










  • @BravoJades, Observe that all remainders are $-6$
    – lab bhattacharjee
    2 days ago

















up vote
1
down vote













First take the LCM of $20,25,35,40$ which is $1400$



Now, Since the $$20-6=14\25-6=19\35-6=29\40-6=34$$So, $1400-6=1394$ will have the remainder of $14,19,29,34$ when divided by $20,25,35,40$



Edit:



Note that if a number is divided by $20$ then it leaves a remainder of $14$ and can be expressed as $20a-6$ or $20a+14$.



Similarly if the number gives remainders of $19,29,34$ when divided by $25,35,40$ respectively it can be expressed as $25b-6$ or $25b+19$ , $35c-6$ or $35c+29$ , $40d-6$ or $40d+34$.



We took $-6$ form because it is common among all the given $4$ divisors.






share|cite|improve this answer























  • I do understand the procedure, but I am not quite getting the logic behind this, yes I a dumb, could you please please explain it elaborately?
    – Bravo Jades
    2 days ago










  • @BravoJades See the edit.
    – Key Flex
    2 days ago

















up vote
0
down vote













The question is flawed. There is no largest number like that, as you can add $operatornameLCM(20,25,35,40)=1400$ to any solution and get a larger one.



The idea only works because you are asked for remainders that are the same amount below the moduli. If we asked for the smallest number greater than $0$ that was a multiple of $20,25,35,40$ you would answer with $operatornameLCM(20,25,35,40)=1400$. Now we are asking for a number $6$ less than a multiple of each, so we subtract $6$. Another way to say the same thing is that $-6$ has the required remainders. As we said above, you can add $1400$ to any solution and get another, so we add $1400$ to $-6$ and get $1394$.



This is all based on the Chinese Remainder Theorem.






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%2f2871987%2ffinding-largest-number-with-gcd%23new-answer', 'question_page');

    );

    Post as a guest






























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    If $x$ is the required number, $x+6$ will be divisible by lcm$(20,25,35,40)$






    share|cite|improve this answer





















    • Why with x+6? What is the logic?
      – Bravo Jades
      2 days ago










    • @BravoJades, Observe that all remainders are $-6$
      – lab bhattacharjee
      2 days ago














    up vote
    1
    down vote













    If $x$ is the required number, $x+6$ will be divisible by lcm$(20,25,35,40)$






    share|cite|improve this answer





















    • Why with x+6? What is the logic?
      – Bravo Jades
      2 days ago










    • @BravoJades, Observe that all remainders are $-6$
      – lab bhattacharjee
      2 days ago












    up vote
    1
    down vote










    up vote
    1
    down vote









    If $x$ is the required number, $x+6$ will be divisible by lcm$(20,25,35,40)$






    share|cite|improve this answer













    If $x$ is the required number, $x+6$ will be divisible by lcm$(20,25,35,40)$







    share|cite|improve this answer













    share|cite|improve this answer



    share|cite|improve this answer











    answered 2 days ago









    lab bhattacharjee

    214k14152263




    214k14152263











    • Why with x+6? What is the logic?
      – Bravo Jades
      2 days ago










    • @BravoJades, Observe that all remainders are $-6$
      – lab bhattacharjee
      2 days ago
















    • Why with x+6? What is the logic?
      – Bravo Jades
      2 days ago










    • @BravoJades, Observe that all remainders are $-6$
      – lab bhattacharjee
      2 days ago















    Why with x+6? What is the logic?
    – Bravo Jades
    2 days ago




    Why with x+6? What is the logic?
    – Bravo Jades
    2 days ago












    @BravoJades, Observe that all remainders are $-6$
    – lab bhattacharjee
    2 days ago




    @BravoJades, Observe that all remainders are $-6$
    – lab bhattacharjee
    2 days ago










    up vote
    1
    down vote













    First take the LCM of $20,25,35,40$ which is $1400$



    Now, Since the $$20-6=14\25-6=19\35-6=29\40-6=34$$So, $1400-6=1394$ will have the remainder of $14,19,29,34$ when divided by $20,25,35,40$



    Edit:



    Note that if a number is divided by $20$ then it leaves a remainder of $14$ and can be expressed as $20a-6$ or $20a+14$.



    Similarly if the number gives remainders of $19,29,34$ when divided by $25,35,40$ respectively it can be expressed as $25b-6$ or $25b+19$ , $35c-6$ or $35c+29$ , $40d-6$ or $40d+34$.



    We took $-6$ form because it is common among all the given $4$ divisors.






    share|cite|improve this answer























    • I do understand the procedure, but I am not quite getting the logic behind this, yes I a dumb, could you please please explain it elaborately?
      – Bravo Jades
      2 days ago










    • @BravoJades See the edit.
      – Key Flex
      2 days ago














    up vote
    1
    down vote













    First take the LCM of $20,25,35,40$ which is $1400$



    Now, Since the $$20-6=14\25-6=19\35-6=29\40-6=34$$So, $1400-6=1394$ will have the remainder of $14,19,29,34$ when divided by $20,25,35,40$



    Edit:



    Note that if a number is divided by $20$ then it leaves a remainder of $14$ and can be expressed as $20a-6$ or $20a+14$.



    Similarly if the number gives remainders of $19,29,34$ when divided by $25,35,40$ respectively it can be expressed as $25b-6$ or $25b+19$ , $35c-6$ or $35c+29$ , $40d-6$ or $40d+34$.



    We took $-6$ form because it is common among all the given $4$ divisors.






    share|cite|improve this answer























    • I do understand the procedure, but I am not quite getting the logic behind this, yes I a dumb, could you please please explain it elaborately?
      – Bravo Jades
      2 days ago










    • @BravoJades See the edit.
      – Key Flex
      2 days ago












    up vote
    1
    down vote










    up vote
    1
    down vote









    First take the LCM of $20,25,35,40$ which is $1400$



    Now, Since the $$20-6=14\25-6=19\35-6=29\40-6=34$$So, $1400-6=1394$ will have the remainder of $14,19,29,34$ when divided by $20,25,35,40$



    Edit:



    Note that if a number is divided by $20$ then it leaves a remainder of $14$ and can be expressed as $20a-6$ or $20a+14$.



    Similarly if the number gives remainders of $19,29,34$ when divided by $25,35,40$ respectively it can be expressed as $25b-6$ or $25b+19$ , $35c-6$ or $35c+29$ , $40d-6$ or $40d+34$.



    We took $-6$ form because it is common among all the given $4$ divisors.






    share|cite|improve this answer















    First take the LCM of $20,25,35,40$ which is $1400$



    Now, Since the $$20-6=14\25-6=19\35-6=29\40-6=34$$So, $1400-6=1394$ will have the remainder of $14,19,29,34$ when divided by $20,25,35,40$



    Edit:



    Note that if a number is divided by $20$ then it leaves a remainder of $14$ and can be expressed as $20a-6$ or $20a+14$.



    Similarly if the number gives remainders of $19,29,34$ when divided by $25,35,40$ respectively it can be expressed as $25b-6$ or $25b+19$ , $35c-6$ or $35c+29$ , $40d-6$ or $40d+34$.



    We took $-6$ form because it is common among all the given $4$ divisors.







    share|cite|improve this answer















    share|cite|improve this answer



    share|cite|improve this answer








    edited 2 days ago


























    answered 2 days ago









    Key Flex

    3,633422




    3,633422











    • I do understand the procedure, but I am not quite getting the logic behind this, yes I a dumb, could you please please explain it elaborately?
      – Bravo Jades
      2 days ago










    • @BravoJades See the edit.
      – Key Flex
      2 days ago
















    • I do understand the procedure, but I am not quite getting the logic behind this, yes I a dumb, could you please please explain it elaborately?
      – Bravo Jades
      2 days ago










    • @BravoJades See the edit.
      – Key Flex
      2 days ago















    I do understand the procedure, but I am not quite getting the logic behind this, yes I a dumb, could you please please explain it elaborately?
    – Bravo Jades
    2 days ago




    I do understand the procedure, but I am not quite getting the logic behind this, yes I a dumb, could you please please explain it elaborately?
    – Bravo Jades
    2 days ago












    @BravoJades See the edit.
    – Key Flex
    2 days ago




    @BravoJades See the edit.
    – Key Flex
    2 days ago










    up vote
    0
    down vote













    The question is flawed. There is no largest number like that, as you can add $operatornameLCM(20,25,35,40)=1400$ to any solution and get a larger one.



    The idea only works because you are asked for remainders that are the same amount below the moduli. If we asked for the smallest number greater than $0$ that was a multiple of $20,25,35,40$ you would answer with $operatornameLCM(20,25,35,40)=1400$. Now we are asking for a number $6$ less than a multiple of each, so we subtract $6$. Another way to say the same thing is that $-6$ has the required remainders. As we said above, you can add $1400$ to any solution and get another, so we add $1400$ to $-6$ and get $1394$.



    This is all based on the Chinese Remainder Theorem.






    share|cite|improve this answer

























      up vote
      0
      down vote













      The question is flawed. There is no largest number like that, as you can add $operatornameLCM(20,25,35,40)=1400$ to any solution and get a larger one.



      The idea only works because you are asked for remainders that are the same amount below the moduli. If we asked for the smallest number greater than $0$ that was a multiple of $20,25,35,40$ you would answer with $operatornameLCM(20,25,35,40)=1400$. Now we are asking for a number $6$ less than a multiple of each, so we subtract $6$. Another way to say the same thing is that $-6$ has the required remainders. As we said above, you can add $1400$ to any solution and get another, so we add $1400$ to $-6$ and get $1394$.



      This is all based on the Chinese Remainder Theorem.






      share|cite|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        The question is flawed. There is no largest number like that, as you can add $operatornameLCM(20,25,35,40)=1400$ to any solution and get a larger one.



        The idea only works because you are asked for remainders that are the same amount below the moduli. If we asked for the smallest number greater than $0$ that was a multiple of $20,25,35,40$ you would answer with $operatornameLCM(20,25,35,40)=1400$. Now we are asking for a number $6$ less than a multiple of each, so we subtract $6$. Another way to say the same thing is that $-6$ has the required remainders. As we said above, you can add $1400$ to any solution and get another, so we add $1400$ to $-6$ and get $1394$.



        This is all based on the Chinese Remainder Theorem.






        share|cite|improve this answer













        The question is flawed. There is no largest number like that, as you can add $operatornameLCM(20,25,35,40)=1400$ to any solution and get a larger one.



        The idea only works because you are asked for remainders that are the same amount below the moduli. If we asked for the smallest number greater than $0$ that was a multiple of $20,25,35,40$ you would answer with $operatornameLCM(20,25,35,40)=1400$. Now we are asking for a number $6$ less than a multiple of each, so we subtract $6$. Another way to say the same thing is that $-6$ has the required remainders. As we said above, you can add $1400$ to any solution and get another, so we add $1400$ to $-6$ and get $1394$.



        This is all based on the Chinese Remainder Theorem.







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered 2 days ago









        Ross Millikan

        275k21184350




        275k21184350






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2871987%2ffinding-largest-number-with-gcd%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

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

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?