Use of diophantine equation (money problems, 3 variables)












1














My friend has in his wallet some notes of $displaystyle{ 20 }$ , $displaystyle{ 50 }$ and $displaystyle{ 100 }$ euros.
He has $displaystyle{ 15 }$ notes and the total value of them is $displaystyle{ 690 }$ euros. Tell me the amount of $displaystyle{ 20 }$ , $displaystyle{ 50 }$ and $displaystyle{ 100 }$ euros he has in his wallet.



My solution:



$displaystyle{ 20x+50y+100z=690 Leftrightarrow 2x+5y+10z=69 (1) }$



$displaystyle{ x+y+z=15 (2) }$



$displaystyle{ x,y,z> 0 }$



$displaystyle{ yequiv 1 mod 2 }$ and $displaystyle{ 5cdot14=70 > 69 }$
so $displaystyle{ y< 14 }$.



Then, $displaystyle{ y=1,3,5,7,9,11,13 }$.



Also $displaystyle{ xequiv 2 mod 5 }$.
Then, $displaystyle{ x=2,7,12 }$.



We also have that $displaystyle{ 10cdot7=70 >69 }$, so $displaystyle{ z<7 }$.



From the equation $displaystyle{ (2) }$ we get that $displaystyle{ (x,y) = (7,9) , (7,11) , (7,13) , (12,5) , (12,7), (12,9), (12,11), (12,13) }$ are rejected.
We know that $displaystyle{ z<7 }$, so $displaystyle{(x,y) = (2,1), (2,3), (2,5), (7,1) }$ are rejected, too.



So I check every $displaystyle{ (x,y) = (2,7) , (2,9), (2,11), (2,13)}$ (rejected because $displaystyle{z=0}$ ) ,$displaystyle{(7,3), (7,5), (7,7), (12,1), (12,3)}$ (rejected because $displaystyle{z=0}$ ) to find out which ones are ok with equations $displaystyle{ (1) , (2) }$.
The final answer is : $displaystyle{ x=7, y=5, z=3 }$.



My question:



How can I find the solution using parameters? Thanks!










share|cite|improve this question






















  • I found a much easier way to get the x,y,z values but still not by using parameters.
    – Dr.Mathematics
    Nov 29 '18 at 15:50










  • What do you mean by "by using parameters"?
    – Servaes
    Nov 29 '18 at 16:37










  • Solving 2x+5y=W and finding x,y with a parameter and then solving W+10z=69 and finding w,z with parameters.. And then taking into account that x+y+z=15 and x,y,z>0 we can find the right parameters. Something like that..
    – Dr.Mathematics
    Nov 29 '18 at 17:14










  • That raises the very similar question of what you mean by "...finding $x$, $y$ (or $w$, $z$) with parameters"?
    – Servaes
    Nov 30 '18 at 0:09
















1














My friend has in his wallet some notes of $displaystyle{ 20 }$ , $displaystyle{ 50 }$ and $displaystyle{ 100 }$ euros.
He has $displaystyle{ 15 }$ notes and the total value of them is $displaystyle{ 690 }$ euros. Tell me the amount of $displaystyle{ 20 }$ , $displaystyle{ 50 }$ and $displaystyle{ 100 }$ euros he has in his wallet.



My solution:



$displaystyle{ 20x+50y+100z=690 Leftrightarrow 2x+5y+10z=69 (1) }$



$displaystyle{ x+y+z=15 (2) }$



$displaystyle{ x,y,z> 0 }$



$displaystyle{ yequiv 1 mod 2 }$ and $displaystyle{ 5cdot14=70 > 69 }$
so $displaystyle{ y< 14 }$.



Then, $displaystyle{ y=1,3,5,7,9,11,13 }$.



Also $displaystyle{ xequiv 2 mod 5 }$.
Then, $displaystyle{ x=2,7,12 }$.



We also have that $displaystyle{ 10cdot7=70 >69 }$, so $displaystyle{ z<7 }$.



From the equation $displaystyle{ (2) }$ we get that $displaystyle{ (x,y) = (7,9) , (7,11) , (7,13) , (12,5) , (12,7), (12,9), (12,11), (12,13) }$ are rejected.
We know that $displaystyle{ z<7 }$, so $displaystyle{(x,y) = (2,1), (2,3), (2,5), (7,1) }$ are rejected, too.



So I check every $displaystyle{ (x,y) = (2,7) , (2,9), (2,11), (2,13)}$ (rejected because $displaystyle{z=0}$ ) ,$displaystyle{(7,3), (7,5), (7,7), (12,1), (12,3)}$ (rejected because $displaystyle{z=0}$ ) to find out which ones are ok with equations $displaystyle{ (1) , (2) }$.
The final answer is : $displaystyle{ x=7, y=5, z=3 }$.



My question:



How can I find the solution using parameters? Thanks!










share|cite|improve this question






















  • I found a much easier way to get the x,y,z values but still not by using parameters.
    – Dr.Mathematics
    Nov 29 '18 at 15:50










  • What do you mean by "by using parameters"?
    – Servaes
    Nov 29 '18 at 16:37










  • Solving 2x+5y=W and finding x,y with a parameter and then solving W+10z=69 and finding w,z with parameters.. And then taking into account that x+y+z=15 and x,y,z>0 we can find the right parameters. Something like that..
    – Dr.Mathematics
    Nov 29 '18 at 17:14










  • That raises the very similar question of what you mean by "...finding $x$, $y$ (or $w$, $z$) with parameters"?
    – Servaes
    Nov 30 '18 at 0:09














1












1








1







My friend has in his wallet some notes of $displaystyle{ 20 }$ , $displaystyle{ 50 }$ and $displaystyle{ 100 }$ euros.
He has $displaystyle{ 15 }$ notes and the total value of them is $displaystyle{ 690 }$ euros. Tell me the amount of $displaystyle{ 20 }$ , $displaystyle{ 50 }$ and $displaystyle{ 100 }$ euros he has in his wallet.



My solution:



$displaystyle{ 20x+50y+100z=690 Leftrightarrow 2x+5y+10z=69 (1) }$



$displaystyle{ x+y+z=15 (2) }$



$displaystyle{ x,y,z> 0 }$



$displaystyle{ yequiv 1 mod 2 }$ and $displaystyle{ 5cdot14=70 > 69 }$
so $displaystyle{ y< 14 }$.



Then, $displaystyle{ y=1,3,5,7,9,11,13 }$.



Also $displaystyle{ xequiv 2 mod 5 }$.
Then, $displaystyle{ x=2,7,12 }$.



We also have that $displaystyle{ 10cdot7=70 >69 }$, so $displaystyle{ z<7 }$.



From the equation $displaystyle{ (2) }$ we get that $displaystyle{ (x,y) = (7,9) , (7,11) , (7,13) , (12,5) , (12,7), (12,9), (12,11), (12,13) }$ are rejected.
We know that $displaystyle{ z<7 }$, so $displaystyle{(x,y) = (2,1), (2,3), (2,5), (7,1) }$ are rejected, too.



So I check every $displaystyle{ (x,y) = (2,7) , (2,9), (2,11), (2,13)}$ (rejected because $displaystyle{z=0}$ ) ,$displaystyle{(7,3), (7,5), (7,7), (12,1), (12,3)}$ (rejected because $displaystyle{z=0}$ ) to find out which ones are ok with equations $displaystyle{ (1) , (2) }$.
The final answer is : $displaystyle{ x=7, y=5, z=3 }$.



My question:



How can I find the solution using parameters? Thanks!










share|cite|improve this question













My friend has in his wallet some notes of $displaystyle{ 20 }$ , $displaystyle{ 50 }$ and $displaystyle{ 100 }$ euros.
He has $displaystyle{ 15 }$ notes and the total value of them is $displaystyle{ 690 }$ euros. Tell me the amount of $displaystyle{ 20 }$ , $displaystyle{ 50 }$ and $displaystyle{ 100 }$ euros he has in his wallet.



My solution:



$displaystyle{ 20x+50y+100z=690 Leftrightarrow 2x+5y+10z=69 (1) }$



$displaystyle{ x+y+z=15 (2) }$



$displaystyle{ x,y,z> 0 }$



$displaystyle{ yequiv 1 mod 2 }$ and $displaystyle{ 5cdot14=70 > 69 }$
so $displaystyle{ y< 14 }$.



Then, $displaystyle{ y=1,3,5,7,9,11,13 }$.



Also $displaystyle{ xequiv 2 mod 5 }$.
Then, $displaystyle{ x=2,7,12 }$.



We also have that $displaystyle{ 10cdot7=70 >69 }$, so $displaystyle{ z<7 }$.



From the equation $displaystyle{ (2) }$ we get that $displaystyle{ (x,y) = (7,9) , (7,11) , (7,13) , (12,5) , (12,7), (12,9), (12,11), (12,13) }$ are rejected.
We know that $displaystyle{ z<7 }$, so $displaystyle{(x,y) = (2,1), (2,3), (2,5), (7,1) }$ are rejected, too.



So I check every $displaystyle{ (x,y) = (2,7) , (2,9), (2,11), (2,13)}$ (rejected because $displaystyle{z=0}$ ) ,$displaystyle{(7,3), (7,5), (7,7), (12,1), (12,3)}$ (rejected because $displaystyle{z=0}$ ) to find out which ones are ok with equations $displaystyle{ (1) , (2) }$.
The final answer is : $displaystyle{ x=7, y=5, z=3 }$.



My question:



How can I find the solution using parameters? Thanks!







number-theory diophantine-equations linear-diophantine-equations






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 29 '18 at 15:27









Dr.MathematicsDr.Mathematics

61




61












  • I found a much easier way to get the x,y,z values but still not by using parameters.
    – Dr.Mathematics
    Nov 29 '18 at 15:50










  • What do you mean by "by using parameters"?
    – Servaes
    Nov 29 '18 at 16:37










  • Solving 2x+5y=W and finding x,y with a parameter and then solving W+10z=69 and finding w,z with parameters.. And then taking into account that x+y+z=15 and x,y,z>0 we can find the right parameters. Something like that..
    – Dr.Mathematics
    Nov 29 '18 at 17:14










  • That raises the very similar question of what you mean by "...finding $x$, $y$ (or $w$, $z$) with parameters"?
    – Servaes
    Nov 30 '18 at 0:09


















  • I found a much easier way to get the x,y,z values but still not by using parameters.
    – Dr.Mathematics
    Nov 29 '18 at 15:50










  • What do you mean by "by using parameters"?
    – Servaes
    Nov 29 '18 at 16:37










  • Solving 2x+5y=W and finding x,y with a parameter and then solving W+10z=69 and finding w,z with parameters.. And then taking into account that x+y+z=15 and x,y,z>0 we can find the right parameters. Something like that..
    – Dr.Mathematics
    Nov 29 '18 at 17:14










  • That raises the very similar question of what you mean by "...finding $x$, $y$ (or $w$, $z$) with parameters"?
    – Servaes
    Nov 30 '18 at 0:09
















I found a much easier way to get the x,y,z values but still not by using parameters.
– Dr.Mathematics
Nov 29 '18 at 15:50




I found a much easier way to get the x,y,z values but still not by using parameters.
– Dr.Mathematics
Nov 29 '18 at 15:50












What do you mean by "by using parameters"?
– Servaes
Nov 29 '18 at 16:37




What do you mean by "by using parameters"?
– Servaes
Nov 29 '18 at 16:37












Solving 2x+5y=W and finding x,y with a parameter and then solving W+10z=69 and finding w,z with parameters.. And then taking into account that x+y+z=15 and x,y,z>0 we can find the right parameters. Something like that..
– Dr.Mathematics
Nov 29 '18 at 17:14




Solving 2x+5y=W and finding x,y with a parameter and then solving W+10z=69 and finding w,z with parameters.. And then taking into account that x+y+z=15 and x,y,z>0 we can find the right parameters. Something like that..
– Dr.Mathematics
Nov 29 '18 at 17:14












That raises the very similar question of what you mean by "...finding $x$, $y$ (or $w$, $z$) with parameters"?
– Servaes
Nov 30 '18 at 0:09




That raises the very similar question of what you mean by "...finding $x$, $y$ (or $w$, $z$) with parameters"?
– Servaes
Nov 30 '18 at 0:09










2 Answers
2






active

oldest

votes


















0














Subtracting equation (2) from equation (1) twice yields
$$3y+7z=39.$$
Since $y$ and $z$ are positive integers, there is precisely one solution which is quickly found.






share|cite|improve this answer





























    0














    "OP" has asked for Parametric solution to below mentioned simultaneous equations:



    $displaystyle{ 2x+5y+10z=69 }$



    $displaystyle{ x+y+z=15 }$



    The solution is given below:



    $(x,y,z)=[(5k+2),(k+4),(k+2) ]$



    From the above mentioned solution, it can be seen that $(x,y,z)= (7,5,3)$, for $k=1$,



    is the only solution that satisfies both the two simultaneous equations.






    share|cite|improve this answer





















    • Parametric solution will ordinarily mean that any choice of a parameter will generate a solution, i.e. a family of solutions is expressed through choices of the parameter. But it isn't obvious how substitution of $x=5k+2,y=k+4,z=k+2$ would satisfy either equation. It would improve your Answer to clarify what you mean by a parametric solution.
      – hardmath
      Dec 1 '18 at 18:02











    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%2f3018773%2fuse-of-diophantine-equation-money-problems-3-variables%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Subtracting equation (2) from equation (1) twice yields
    $$3y+7z=39.$$
    Since $y$ and $z$ are positive integers, there is precisely one solution which is quickly found.






    share|cite|improve this answer


























      0














      Subtracting equation (2) from equation (1) twice yields
      $$3y+7z=39.$$
      Since $y$ and $z$ are positive integers, there is precisely one solution which is quickly found.






      share|cite|improve this answer
























        0












        0








        0






        Subtracting equation (2) from equation (1) twice yields
        $$3y+7z=39.$$
        Since $y$ and $z$ are positive integers, there is precisely one solution which is quickly found.






        share|cite|improve this answer












        Subtracting equation (2) from equation (1) twice yields
        $$3y+7z=39.$$
        Since $y$ and $z$ are positive integers, there is precisely one solution which is quickly found.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 29 '18 at 16:34









        ServaesServaes

        22.4k33793




        22.4k33793























            0














            "OP" has asked for Parametric solution to below mentioned simultaneous equations:



            $displaystyle{ 2x+5y+10z=69 }$



            $displaystyle{ x+y+z=15 }$



            The solution is given below:



            $(x,y,z)=[(5k+2),(k+4),(k+2) ]$



            From the above mentioned solution, it can be seen that $(x,y,z)= (7,5,3)$, for $k=1$,



            is the only solution that satisfies both the two simultaneous equations.






            share|cite|improve this answer





















            • Parametric solution will ordinarily mean that any choice of a parameter will generate a solution, i.e. a family of solutions is expressed through choices of the parameter. But it isn't obvious how substitution of $x=5k+2,y=k+4,z=k+2$ would satisfy either equation. It would improve your Answer to clarify what you mean by a parametric solution.
              – hardmath
              Dec 1 '18 at 18:02
















            0














            "OP" has asked for Parametric solution to below mentioned simultaneous equations:



            $displaystyle{ 2x+5y+10z=69 }$



            $displaystyle{ x+y+z=15 }$



            The solution is given below:



            $(x,y,z)=[(5k+2),(k+4),(k+2) ]$



            From the above mentioned solution, it can be seen that $(x,y,z)= (7,5,3)$, for $k=1$,



            is the only solution that satisfies both the two simultaneous equations.






            share|cite|improve this answer





















            • Parametric solution will ordinarily mean that any choice of a parameter will generate a solution, i.e. a family of solutions is expressed through choices of the parameter. But it isn't obvious how substitution of $x=5k+2,y=k+4,z=k+2$ would satisfy either equation. It would improve your Answer to clarify what you mean by a parametric solution.
              – hardmath
              Dec 1 '18 at 18:02














            0












            0








            0






            "OP" has asked for Parametric solution to below mentioned simultaneous equations:



            $displaystyle{ 2x+5y+10z=69 }$



            $displaystyle{ x+y+z=15 }$



            The solution is given below:



            $(x,y,z)=[(5k+2),(k+4),(k+2) ]$



            From the above mentioned solution, it can be seen that $(x,y,z)= (7,5,3)$, for $k=1$,



            is the only solution that satisfies both the two simultaneous equations.






            share|cite|improve this answer












            "OP" has asked for Parametric solution to below mentioned simultaneous equations:



            $displaystyle{ 2x+5y+10z=69 }$



            $displaystyle{ x+y+z=15 }$



            The solution is given below:



            $(x,y,z)=[(5k+2),(k+4),(k+2) ]$



            From the above mentioned solution, it can be seen that $(x,y,z)= (7,5,3)$, for $k=1$,



            is the only solution that satisfies both the two simultaneous equations.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Dec 1 '18 at 17:38









            SamSam

            1




            1












            • Parametric solution will ordinarily mean that any choice of a parameter will generate a solution, i.e. a family of solutions is expressed through choices of the parameter. But it isn't obvious how substitution of $x=5k+2,y=k+4,z=k+2$ would satisfy either equation. It would improve your Answer to clarify what you mean by a parametric solution.
              – hardmath
              Dec 1 '18 at 18:02


















            • Parametric solution will ordinarily mean that any choice of a parameter will generate a solution, i.e. a family of solutions is expressed through choices of the parameter. But it isn't obvious how substitution of $x=5k+2,y=k+4,z=k+2$ would satisfy either equation. It would improve your Answer to clarify what you mean by a parametric solution.
              – hardmath
              Dec 1 '18 at 18:02
















            Parametric solution will ordinarily mean that any choice of a parameter will generate a solution, i.e. a family of solutions is expressed through choices of the parameter. But it isn't obvious how substitution of $x=5k+2,y=k+4,z=k+2$ would satisfy either equation. It would improve your Answer to clarify what you mean by a parametric solution.
            – hardmath
            Dec 1 '18 at 18:02




            Parametric solution will ordinarily mean that any choice of a parameter will generate a solution, i.e. a family of solutions is expressed through choices of the parameter. But it isn't obvious how substitution of $x=5k+2,y=k+4,z=k+2$ would satisfy either equation. It would improve your Answer to clarify what you mean by a parametric solution.
            – hardmath
            Dec 1 '18 at 18:02


















            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2f3018773%2fuse-of-diophantine-equation-money-problems-3-variables%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

            Le Mesnil-Réaume

            Ida-Boy-Ed-Garten

            web3.py web3.isConnected() returns false always