A dollar amount $$-67.9-$ is divisible by 72. What is this number?

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 client buys 72 turkeys. On the receipt, 2 digits are missing, the first and the last. So, the total price is $$-67.9-$. Find a way to make the price of each turkey round at the second digit without trial-and-error method.



So, the answer is obviously $$5.11$/turkey, so $$367.92$ total. I found that with with 2-3 trial-and-error.



I bypassed his problem by using python and made a script that tries every combination and assures it is divisible by 0.01.



Please help me find a mathematical way of solving this problem.










share|cite|improve this question



























    up vote
    0
    down vote

    favorite
    1












    A client buys 72 turkeys. On the receipt, 2 digits are missing, the first and the last. So, the total price is $$-67.9-$. Find a way to make the price of each turkey round at the second digit without trial-and-error method.



    So, the answer is obviously $$5.11$/turkey, so $$367.92$ total. I found that with with 2-3 trial-and-error.



    I bypassed his problem by using python and made a script that tries every combination and assures it is divisible by 0.01.



    Please help me find a mathematical way of solving this problem.










    share|cite|improve this question

























      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      A client buys 72 turkeys. On the receipt, 2 digits are missing, the first and the last. So, the total price is $$-67.9-$. Find a way to make the price of each turkey round at the second digit without trial-and-error method.



      So, the answer is obviously $$5.11$/turkey, so $$367.92$ total. I found that with with 2-3 trial-and-error.



      I bypassed his problem by using python and made a script that tries every combination and assures it is divisible by 0.01.



      Please help me find a mathematical way of solving this problem.










      share|cite|improve this question















      A client buys 72 turkeys. On the receipt, 2 digits are missing, the first and the last. So, the total price is $$-67.9-$. Find a way to make the price of each turkey round at the second digit without trial-and-error method.



      So, the answer is obviously $$5.11$/turkey, so $$367.92$ total. I found that with with 2-3 trial-and-error.



      I bypassed his problem by using python and made a script that tries every combination and assures it is divisible by 0.01.



      Please help me find a mathematical way of solving this problem.







      linear-algebra computational-mathematics rounding-error






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited yesterday









      Xander Henderson

      13.3k83250




      13.3k83250










      asked yesterday









      PyThagoras

      285




      285




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          You need the divisibility rules for $8,9$ because a number is divisible by $72$ only if it is divisible by $8$ and $9$ as well.



          According to that the rule, the sum of the digits must be divisible by $9$.



          $$x+6+7+y = 22+x+y$$



          In order to be divisible by 9, that sum must either be 27 or 36.
          The blanks must sum to $5$ or $14$.



          It must also be divisible by $8$ so the last digit must be $2$. That means the first digit has to be $3$, because it would be impossible to make a sum of $14$.



          Hence, the answer is x=3 and y=2






          share|cite|improve this answer





























            up vote
            2
            down vote













            Without loss of generality, we can multiply the prices by 100, to work with integers and avoid the commas.
            Let $n$ be the number of turkeys bought and $p$ be the price of each of them.
            Then $$72p=10000a+679*10+b$$ where $a,b$ are between $0$ and $9$.
            The trick is to notice that $72=9*8$. We can now use two divisibility tricks.
            If a number is divisible by $8$, then the last 3 digits must be divisible by it (this follows by the fact that $1000$ is divisible by $8$). Hence $79*10+b$ must be divisible by $8$.
            The only value of $b$ which satisfies this condition is $2$.
            The second trick concerns divisibility by $9$: if a number is divisible by $9$, then the sum of the digits is divisible by $9$. Hence we must have $$a+6+7+9+2=24+a$$ to be divisible by 9.
            The only value of $a$ which satisfies this condition is $3$.
            To find the price, we calculate:
            $$p=36792/72=511$$
            Dividing back by 100, we get $p=5.11$ as you said.






            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%2f2913702%2fa-dollar-amount-67-9-is-divisible-by-72-what-is-this-number%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              6
              down vote



              accepted










              You need the divisibility rules for $8,9$ because a number is divisible by $72$ only if it is divisible by $8$ and $9$ as well.



              According to that the rule, the sum of the digits must be divisible by $9$.



              $$x+6+7+y = 22+x+y$$



              In order to be divisible by 9, that sum must either be 27 or 36.
              The blanks must sum to $5$ or $14$.



              It must also be divisible by $8$ so the last digit must be $2$. That means the first digit has to be $3$, because it would be impossible to make a sum of $14$.



              Hence, the answer is x=3 and y=2






              share|cite|improve this answer


























                up vote
                6
                down vote



                accepted










                You need the divisibility rules for $8,9$ because a number is divisible by $72$ only if it is divisible by $8$ and $9$ as well.



                According to that the rule, the sum of the digits must be divisible by $9$.



                $$x+6+7+y = 22+x+y$$



                In order to be divisible by 9, that sum must either be 27 or 36.
                The blanks must sum to $5$ or $14$.



                It must also be divisible by $8$ so the last digit must be $2$. That means the first digit has to be $3$, because it would be impossible to make a sum of $14$.



                Hence, the answer is x=3 and y=2






                share|cite|improve this answer
























                  up vote
                  6
                  down vote



                  accepted







                  up vote
                  6
                  down vote



                  accepted






                  You need the divisibility rules for $8,9$ because a number is divisible by $72$ only if it is divisible by $8$ and $9$ as well.



                  According to that the rule, the sum of the digits must be divisible by $9$.



                  $$x+6+7+y = 22+x+y$$



                  In order to be divisible by 9, that sum must either be 27 or 36.
                  The blanks must sum to $5$ or $14$.



                  It must also be divisible by $8$ so the last digit must be $2$. That means the first digit has to be $3$, because it would be impossible to make a sum of $14$.



                  Hence, the answer is x=3 and y=2






                  share|cite|improve this answer














                  You need the divisibility rules for $8,9$ because a number is divisible by $72$ only if it is divisible by $8$ and $9$ as well.



                  According to that the rule, the sum of the digits must be divisible by $9$.



                  $$x+6+7+y = 22+x+y$$



                  In order to be divisible by 9, that sum must either be 27 or 36.
                  The blanks must sum to $5$ or $14$.



                  It must also be divisible by $8$ so the last digit must be $2$. That means the first digit has to be $3$, because it would be impossible to make a sum of $14$.



                  Hence, the answer is x=3 and y=2







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited yesterday









                  PyThagoras

                  285




                  285










                  answered yesterday









                  Ross Millikan

                  279k23189355




                  279k23189355




















                      up vote
                      2
                      down vote













                      Without loss of generality, we can multiply the prices by 100, to work with integers and avoid the commas.
                      Let $n$ be the number of turkeys bought and $p$ be the price of each of them.
                      Then $$72p=10000a+679*10+b$$ where $a,b$ are between $0$ and $9$.
                      The trick is to notice that $72=9*8$. We can now use two divisibility tricks.
                      If a number is divisible by $8$, then the last 3 digits must be divisible by it (this follows by the fact that $1000$ is divisible by $8$). Hence $79*10+b$ must be divisible by $8$.
                      The only value of $b$ which satisfies this condition is $2$.
                      The second trick concerns divisibility by $9$: if a number is divisible by $9$, then the sum of the digits is divisible by $9$. Hence we must have $$a+6+7+9+2=24+a$$ to be divisible by 9.
                      The only value of $a$ which satisfies this condition is $3$.
                      To find the price, we calculate:
                      $$p=36792/72=511$$
                      Dividing back by 100, we get $p=5.11$ as you said.






                      share|cite|improve this answer


























                        up vote
                        2
                        down vote













                        Without loss of generality, we can multiply the prices by 100, to work with integers and avoid the commas.
                        Let $n$ be the number of turkeys bought and $p$ be the price of each of them.
                        Then $$72p=10000a+679*10+b$$ where $a,b$ are between $0$ and $9$.
                        The trick is to notice that $72=9*8$. We can now use two divisibility tricks.
                        If a number is divisible by $8$, then the last 3 digits must be divisible by it (this follows by the fact that $1000$ is divisible by $8$). Hence $79*10+b$ must be divisible by $8$.
                        The only value of $b$ which satisfies this condition is $2$.
                        The second trick concerns divisibility by $9$: if a number is divisible by $9$, then the sum of the digits is divisible by $9$. Hence we must have $$a+6+7+9+2=24+a$$ to be divisible by 9.
                        The only value of $a$ which satisfies this condition is $3$.
                        To find the price, we calculate:
                        $$p=36792/72=511$$
                        Dividing back by 100, we get $p=5.11$ as you said.






                        share|cite|improve this answer
























                          up vote
                          2
                          down vote










                          up vote
                          2
                          down vote









                          Without loss of generality, we can multiply the prices by 100, to work with integers and avoid the commas.
                          Let $n$ be the number of turkeys bought and $p$ be the price of each of them.
                          Then $$72p=10000a+679*10+b$$ where $a,b$ are between $0$ and $9$.
                          The trick is to notice that $72=9*8$. We can now use two divisibility tricks.
                          If a number is divisible by $8$, then the last 3 digits must be divisible by it (this follows by the fact that $1000$ is divisible by $8$). Hence $79*10+b$ must be divisible by $8$.
                          The only value of $b$ which satisfies this condition is $2$.
                          The second trick concerns divisibility by $9$: if a number is divisible by $9$, then the sum of the digits is divisible by $9$. Hence we must have $$a+6+7+9+2=24+a$$ to be divisible by 9.
                          The only value of $a$ which satisfies this condition is $3$.
                          To find the price, we calculate:
                          $$p=36792/72=511$$
                          Dividing back by 100, we get $p=5.11$ as you said.






                          share|cite|improve this answer














                          Without loss of generality, we can multiply the prices by 100, to work with integers and avoid the commas.
                          Let $n$ be the number of turkeys bought and $p$ be the price of each of them.
                          Then $$72p=10000a+679*10+b$$ where $a,b$ are between $0$ and $9$.
                          The trick is to notice that $72=9*8$. We can now use two divisibility tricks.
                          If a number is divisible by $8$, then the last 3 digits must be divisible by it (this follows by the fact that $1000$ is divisible by $8$). Hence $79*10+b$ must be divisible by $8$.
                          The only value of $b$ which satisfies this condition is $2$.
                          The second trick concerns divisibility by $9$: if a number is divisible by $9$, then the sum of the digits is divisible by $9$. Hence we must have $$a+6+7+9+2=24+a$$ to be divisible by 9.
                          The only value of $a$ which satisfies this condition is $3$.
                          To find the price, we calculate:
                          $$p=36792/72=511$$
                          Dividing back by 100, we get $p=5.11$ as you said.







                          share|cite|improve this answer














                          share|cite|improve this answer



                          share|cite|improve this answer








                          edited 18 hours ago

























                          answered yesterday









                          A-B-izi

                          12718




                          12718



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2913702%2fa-dollar-amount-67-9-is-divisible-by-72-what-is-this-number%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              List of Gilmore Girls characters

                              Confectionery