Optimizing Video Game Crafting with Two Variables











up vote
2
down vote

favorite












In a certain video game, it is desirable to maximize the occurrence of crafting an item $B$, which depends on possessing the proper quantities of material. To construct 1 $B$ one needs 1 of ingredient $L$ and 2 of ingredient $S$. In addition, one can convert 1 $L$ to 4 $S$. Given this information, my goal is to determine a number $T$ of $L$ to convert to $S$. For example, if I had 3 $L$, the optimal $T$ would be 1, since then the ratio between $S$ and $L$ would be exactly 2, as desired. If I started with $l$ initial $L$ and $s$ initial $S$ (with all integer variables), then the relationship should be as follows:
$$2L = S implies\ 2(l-T)=s+4T \ 2l-2T=s+4T \ 2l-s=6T \ T=frac{2l-s}{6}
$$

I ran into some trouble refining this, because it returns non-integers for some values which are useless in-game. I've tested
$$begin{equation}T=left|frac{2l-s}{6}right|end{equation}$$
with an iterative process and determined through trial that this formula returns the correct result for $l,s in {1,2,3,4}$. This doesn't seem to be a rigorous or complete solution. In addition, this formula fails when $l=1$ and $s=6$, and possibly elsewhere.


I've supposed that this fails when a negative result is generated, because one cannot convert backwards (although the sentiment is nice.) Given the rounding (unless I improperly evaluate $|x|$), this occurs when
$$frac{2l-s}{6} leq frac{-1}{2} \ 2l-s leq -3 \ 2l leq s-3 \ 2l+3 leq s$$
This formula could then be represented as
$$T(l,s)= begin{cases}
0 & 2l+3leq s \
left|frac{2l-s}{6}right| & 2l+3>s
end{cases}
$$

This feels inelegant and non-rigorous. Is there a more general formula for this problem? Also, how could I make the conclusions about the rounding more rigorous? I have the same question for my definition of the cases in which the main formula fails, i.e. when $T=0neq |(2l-s)/6|$.




Edit: I'm considering testing the final equation for all feasible values of $l$ and $s$, i.e. the in-game inventory limits.








share|cite|improve this question




























    up vote
    2
    down vote

    favorite












    In a certain video game, it is desirable to maximize the occurrence of crafting an item $B$, which depends on possessing the proper quantities of material. To construct 1 $B$ one needs 1 of ingredient $L$ and 2 of ingredient $S$. In addition, one can convert 1 $L$ to 4 $S$. Given this information, my goal is to determine a number $T$ of $L$ to convert to $S$. For example, if I had 3 $L$, the optimal $T$ would be 1, since then the ratio between $S$ and $L$ would be exactly 2, as desired. If I started with $l$ initial $L$ and $s$ initial $S$ (with all integer variables), then the relationship should be as follows:
    $$2L = S implies\ 2(l-T)=s+4T \ 2l-2T=s+4T \ 2l-s=6T \ T=frac{2l-s}{6}
    $$

    I ran into some trouble refining this, because it returns non-integers for some values which are useless in-game. I've tested
    $$begin{equation}T=left|frac{2l-s}{6}right|end{equation}$$
    with an iterative process and determined through trial that this formula returns the correct result for $l,s in {1,2,3,4}$. This doesn't seem to be a rigorous or complete solution. In addition, this formula fails when $l=1$ and $s=6$, and possibly elsewhere.


    I've supposed that this fails when a negative result is generated, because one cannot convert backwards (although the sentiment is nice.) Given the rounding (unless I improperly evaluate $|x|$), this occurs when
    $$frac{2l-s}{6} leq frac{-1}{2} \ 2l-s leq -3 \ 2l leq s-3 \ 2l+3 leq s$$
    This formula could then be represented as
    $$T(l,s)= begin{cases}
    0 & 2l+3leq s \
    left|frac{2l-s}{6}right| & 2l+3>s
    end{cases}
    $$

    This feels inelegant and non-rigorous. Is there a more general formula for this problem? Also, how could I make the conclusions about the rounding more rigorous? I have the same question for my definition of the cases in which the main formula fails, i.e. when $T=0neq |(2l-s)/6|$.




    Edit: I'm considering testing the final equation for all feasible values of $l$ and $s$, i.e. the in-game inventory limits.








    share|cite|improve this question


























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      In a certain video game, it is desirable to maximize the occurrence of crafting an item $B$, which depends on possessing the proper quantities of material. To construct 1 $B$ one needs 1 of ingredient $L$ and 2 of ingredient $S$. In addition, one can convert 1 $L$ to 4 $S$. Given this information, my goal is to determine a number $T$ of $L$ to convert to $S$. For example, if I had 3 $L$, the optimal $T$ would be 1, since then the ratio between $S$ and $L$ would be exactly 2, as desired. If I started with $l$ initial $L$ and $s$ initial $S$ (with all integer variables), then the relationship should be as follows:
      $$2L = S implies\ 2(l-T)=s+4T \ 2l-2T=s+4T \ 2l-s=6T \ T=frac{2l-s}{6}
      $$

      I ran into some trouble refining this, because it returns non-integers for some values which are useless in-game. I've tested
      $$begin{equation}T=left|frac{2l-s}{6}right|end{equation}$$
      with an iterative process and determined through trial that this formula returns the correct result for $l,s in {1,2,3,4}$. This doesn't seem to be a rigorous or complete solution. In addition, this formula fails when $l=1$ and $s=6$, and possibly elsewhere.


      I've supposed that this fails when a negative result is generated, because one cannot convert backwards (although the sentiment is nice.) Given the rounding (unless I improperly evaluate $|x|$), this occurs when
      $$frac{2l-s}{6} leq frac{-1}{2} \ 2l-s leq -3 \ 2l leq s-3 \ 2l+3 leq s$$
      This formula could then be represented as
      $$T(l,s)= begin{cases}
      0 & 2l+3leq s \
      left|frac{2l-s}{6}right| & 2l+3>s
      end{cases}
      $$

      This feels inelegant and non-rigorous. Is there a more general formula for this problem? Also, how could I make the conclusions about the rounding more rigorous? I have the same question for my definition of the cases in which the main formula fails, i.e. when $T=0neq |(2l-s)/6|$.




      Edit: I'm considering testing the final equation for all feasible values of $l$ and $s$, i.e. the in-game inventory limits.








      share|cite|improve this question















      In a certain video game, it is desirable to maximize the occurrence of crafting an item $B$, which depends on possessing the proper quantities of material. To construct 1 $B$ one needs 1 of ingredient $L$ and 2 of ingredient $S$. In addition, one can convert 1 $L$ to 4 $S$. Given this information, my goal is to determine a number $T$ of $L$ to convert to $S$. For example, if I had 3 $L$, the optimal $T$ would be 1, since then the ratio between $S$ and $L$ would be exactly 2, as desired. If I started with $l$ initial $L$ and $s$ initial $S$ (with all integer variables), then the relationship should be as follows:
      $$2L = S implies\ 2(l-T)=s+4T \ 2l-2T=s+4T \ 2l-s=6T \ T=frac{2l-s}{6}
      $$

      I ran into some trouble refining this, because it returns non-integers for some values which are useless in-game. I've tested
      $$begin{equation}T=left|frac{2l-s}{6}right|end{equation}$$
      with an iterative process and determined through trial that this formula returns the correct result for $l,s in {1,2,3,4}$. This doesn't seem to be a rigorous or complete solution. In addition, this formula fails when $l=1$ and $s=6$, and possibly elsewhere.


      I've supposed that this fails when a negative result is generated, because one cannot convert backwards (although the sentiment is nice.) Given the rounding (unless I improperly evaluate $|x|$), this occurs when
      $$frac{2l-s}{6} leq frac{-1}{2} \ 2l-s leq -3 \ 2l leq s-3 \ 2l+3 leq s$$
      This formula could then be represented as
      $$T(l,s)= begin{cases}
      0 & 2l+3leq s \
      left|frac{2l-s}{6}right| & 2l+3>s
      end{cases}
      $$

      This feels inelegant and non-rigorous. Is there a more general formula for this problem? Also, how could I make the conclusions about the rounding more rigorous? I have the same question for my definition of the cases in which the main formula fails, i.e. when $T=0neq |(2l-s)/6|$.




      Edit: I'm considering testing the final equation for all feasible values of $l$ and $s$, i.e. the in-game inventory limits.





      algebra-precalculus inequality applications






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 27 at 17:38

























      asked Nov 27 at 5:59









      Mushroom Man

      1135




      1135






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          We start the game having $l$ units of material $L$ and $s$ units of $S$. After converting $T$ items of $L$ we have $l-T$ items of $L$ left and $s+4T$ items of $S$. With all this material we can obtain $minleft(l-T,frac{s+4T}2right)$ of $B$. Since crafting $B$ is the only goal we want every item of $L$ to be used. Thus we have the equality:
          $$l-T=minleft(l-T,frac{s+4T}2right)$$ It is known than $min(x,y)=frac{x+y-|x-y|}2$. So we have $$l-T=frac{l+frac{s}2+T-left|l-frac{s}2-3Tright|}2$$ which simplifies to $$left|l-frac{s}2-3Tright|=3T+frac{s}2-l$$ This means that $$l-frac{s}2-3Tleq0$$ or $$Tgeqfrac{2l-s}6$$ And since $Tinmathbb{N}_0$ we get $$T=maxleft(0;leftlfloorfrac{2l-s}6rightrfloor+1right)$$ where $lfloorcdotrfloor$ is floor function.






          share|cite|improve this answer























          • I think you're right about the inequality, but the equation at the bottom doesn't work at $l=2$ and $s=0$, since I could convert one $l$ and make 1 $B$, against the equation's advice. Do I need to redefine the question? I think I might be leaving out something...
            – Mushroom Man
            Nov 27 at 17:08










          • I've made a logical mistake. I'll correct my answer in a minute
            – Mikalai Parshutsich
            Nov 27 at 17:38










          • This is excellent, thanks! I realize I forgot to define part of the problem: that I don't want to convert $l$ unless it means I can create another $B$. Your final equation gives $T=1$ for $l=1, s=0$, when in this case I wouldn't want to convert an $l$ since I wouldn't have any $l$ left to make $B$. Also, I'm unfamiliar with how you transition from inequalities and such to uses of min/max. Is there a particular field I should study for this or do I just need to think harder about it?
            – Mushroom Man
            Nov 27 at 20:04










          • The last step is just a combination of conditions $Tgeq0$, $Tgeqfrac{2l-s}6$ and that $T$ is integer. I used $max$ just to consider the case $l=0, s>0$. I will think how to take into account cases $l=1, s=0$ and $l=1, s=1$
            – Mikalai Parshutsich
            Nov 27 at 20:13










          • Well, I think that the cases $l=1,s=0$ and $l=s=1$ should be treated separately. These are special cases.
            – Mikalai Parshutsich
            Nov 27 at 20:26











          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: 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%2f3015393%2foptimizing-video-game-crafting-with-two-variables%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          We start the game having $l$ units of material $L$ and $s$ units of $S$. After converting $T$ items of $L$ we have $l-T$ items of $L$ left and $s+4T$ items of $S$. With all this material we can obtain $minleft(l-T,frac{s+4T}2right)$ of $B$. Since crafting $B$ is the only goal we want every item of $L$ to be used. Thus we have the equality:
          $$l-T=minleft(l-T,frac{s+4T}2right)$$ It is known than $min(x,y)=frac{x+y-|x-y|}2$. So we have $$l-T=frac{l+frac{s}2+T-left|l-frac{s}2-3Tright|}2$$ which simplifies to $$left|l-frac{s}2-3Tright|=3T+frac{s}2-l$$ This means that $$l-frac{s}2-3Tleq0$$ or $$Tgeqfrac{2l-s}6$$ And since $Tinmathbb{N}_0$ we get $$T=maxleft(0;leftlfloorfrac{2l-s}6rightrfloor+1right)$$ where $lfloorcdotrfloor$ is floor function.






          share|cite|improve this answer























          • I think you're right about the inequality, but the equation at the bottom doesn't work at $l=2$ and $s=0$, since I could convert one $l$ and make 1 $B$, against the equation's advice. Do I need to redefine the question? I think I might be leaving out something...
            – Mushroom Man
            Nov 27 at 17:08










          • I've made a logical mistake. I'll correct my answer in a minute
            – Mikalai Parshutsich
            Nov 27 at 17:38










          • This is excellent, thanks! I realize I forgot to define part of the problem: that I don't want to convert $l$ unless it means I can create another $B$. Your final equation gives $T=1$ for $l=1, s=0$, when in this case I wouldn't want to convert an $l$ since I wouldn't have any $l$ left to make $B$. Also, I'm unfamiliar with how you transition from inequalities and such to uses of min/max. Is there a particular field I should study for this or do I just need to think harder about it?
            – Mushroom Man
            Nov 27 at 20:04










          • The last step is just a combination of conditions $Tgeq0$, $Tgeqfrac{2l-s}6$ and that $T$ is integer. I used $max$ just to consider the case $l=0, s>0$. I will think how to take into account cases $l=1, s=0$ and $l=1, s=1$
            – Mikalai Parshutsich
            Nov 27 at 20:13










          • Well, I think that the cases $l=1,s=0$ and $l=s=1$ should be treated separately. These are special cases.
            – Mikalai Parshutsich
            Nov 27 at 20:26















          up vote
          1
          down vote



          accepted










          We start the game having $l$ units of material $L$ and $s$ units of $S$. After converting $T$ items of $L$ we have $l-T$ items of $L$ left and $s+4T$ items of $S$. With all this material we can obtain $minleft(l-T,frac{s+4T}2right)$ of $B$. Since crafting $B$ is the only goal we want every item of $L$ to be used. Thus we have the equality:
          $$l-T=minleft(l-T,frac{s+4T}2right)$$ It is known than $min(x,y)=frac{x+y-|x-y|}2$. So we have $$l-T=frac{l+frac{s}2+T-left|l-frac{s}2-3Tright|}2$$ which simplifies to $$left|l-frac{s}2-3Tright|=3T+frac{s}2-l$$ This means that $$l-frac{s}2-3Tleq0$$ or $$Tgeqfrac{2l-s}6$$ And since $Tinmathbb{N}_0$ we get $$T=maxleft(0;leftlfloorfrac{2l-s}6rightrfloor+1right)$$ where $lfloorcdotrfloor$ is floor function.






          share|cite|improve this answer























          • I think you're right about the inequality, but the equation at the bottom doesn't work at $l=2$ and $s=0$, since I could convert one $l$ and make 1 $B$, against the equation's advice. Do I need to redefine the question? I think I might be leaving out something...
            – Mushroom Man
            Nov 27 at 17:08










          • I've made a logical mistake. I'll correct my answer in a minute
            – Mikalai Parshutsich
            Nov 27 at 17:38










          • This is excellent, thanks! I realize I forgot to define part of the problem: that I don't want to convert $l$ unless it means I can create another $B$. Your final equation gives $T=1$ for $l=1, s=0$, when in this case I wouldn't want to convert an $l$ since I wouldn't have any $l$ left to make $B$. Also, I'm unfamiliar with how you transition from inequalities and such to uses of min/max. Is there a particular field I should study for this or do I just need to think harder about it?
            – Mushroom Man
            Nov 27 at 20:04










          • The last step is just a combination of conditions $Tgeq0$, $Tgeqfrac{2l-s}6$ and that $T$ is integer. I used $max$ just to consider the case $l=0, s>0$. I will think how to take into account cases $l=1, s=0$ and $l=1, s=1$
            – Mikalai Parshutsich
            Nov 27 at 20:13










          • Well, I think that the cases $l=1,s=0$ and $l=s=1$ should be treated separately. These are special cases.
            – Mikalai Parshutsich
            Nov 27 at 20:26













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          We start the game having $l$ units of material $L$ and $s$ units of $S$. After converting $T$ items of $L$ we have $l-T$ items of $L$ left and $s+4T$ items of $S$. With all this material we can obtain $minleft(l-T,frac{s+4T}2right)$ of $B$. Since crafting $B$ is the only goal we want every item of $L$ to be used. Thus we have the equality:
          $$l-T=minleft(l-T,frac{s+4T}2right)$$ It is known than $min(x,y)=frac{x+y-|x-y|}2$. So we have $$l-T=frac{l+frac{s}2+T-left|l-frac{s}2-3Tright|}2$$ which simplifies to $$left|l-frac{s}2-3Tright|=3T+frac{s}2-l$$ This means that $$l-frac{s}2-3Tleq0$$ or $$Tgeqfrac{2l-s}6$$ And since $Tinmathbb{N}_0$ we get $$T=maxleft(0;leftlfloorfrac{2l-s}6rightrfloor+1right)$$ where $lfloorcdotrfloor$ is floor function.






          share|cite|improve this answer














          We start the game having $l$ units of material $L$ and $s$ units of $S$. After converting $T$ items of $L$ we have $l-T$ items of $L$ left and $s+4T$ items of $S$. With all this material we can obtain $minleft(l-T,frac{s+4T}2right)$ of $B$. Since crafting $B$ is the only goal we want every item of $L$ to be used. Thus we have the equality:
          $$l-T=minleft(l-T,frac{s+4T}2right)$$ It is known than $min(x,y)=frac{x+y-|x-y|}2$. So we have $$l-T=frac{l+frac{s}2+T-left|l-frac{s}2-3Tright|}2$$ which simplifies to $$left|l-frac{s}2-3Tright|=3T+frac{s}2-l$$ This means that $$l-frac{s}2-3Tleq0$$ or $$Tgeqfrac{2l-s}6$$ And since $Tinmathbb{N}_0$ we get $$T=maxleft(0;leftlfloorfrac{2l-s}6rightrfloor+1right)$$ where $lfloorcdotrfloor$ is floor function.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Nov 27 at 17:51

























          answered Nov 27 at 11:10









          Mikalai Parshutsich

          453315




          453315












          • I think you're right about the inequality, but the equation at the bottom doesn't work at $l=2$ and $s=0$, since I could convert one $l$ and make 1 $B$, against the equation's advice. Do I need to redefine the question? I think I might be leaving out something...
            – Mushroom Man
            Nov 27 at 17:08










          • I've made a logical mistake. I'll correct my answer in a minute
            – Mikalai Parshutsich
            Nov 27 at 17:38










          • This is excellent, thanks! I realize I forgot to define part of the problem: that I don't want to convert $l$ unless it means I can create another $B$. Your final equation gives $T=1$ for $l=1, s=0$, when in this case I wouldn't want to convert an $l$ since I wouldn't have any $l$ left to make $B$. Also, I'm unfamiliar with how you transition from inequalities and such to uses of min/max. Is there a particular field I should study for this or do I just need to think harder about it?
            – Mushroom Man
            Nov 27 at 20:04










          • The last step is just a combination of conditions $Tgeq0$, $Tgeqfrac{2l-s}6$ and that $T$ is integer. I used $max$ just to consider the case $l=0, s>0$. I will think how to take into account cases $l=1, s=0$ and $l=1, s=1$
            – Mikalai Parshutsich
            Nov 27 at 20:13










          • Well, I think that the cases $l=1,s=0$ and $l=s=1$ should be treated separately. These are special cases.
            – Mikalai Parshutsich
            Nov 27 at 20:26


















          • I think you're right about the inequality, but the equation at the bottom doesn't work at $l=2$ and $s=0$, since I could convert one $l$ and make 1 $B$, against the equation's advice. Do I need to redefine the question? I think I might be leaving out something...
            – Mushroom Man
            Nov 27 at 17:08










          • I've made a logical mistake. I'll correct my answer in a minute
            – Mikalai Parshutsich
            Nov 27 at 17:38










          • This is excellent, thanks! I realize I forgot to define part of the problem: that I don't want to convert $l$ unless it means I can create another $B$. Your final equation gives $T=1$ for $l=1, s=0$, when in this case I wouldn't want to convert an $l$ since I wouldn't have any $l$ left to make $B$. Also, I'm unfamiliar with how you transition from inequalities and such to uses of min/max. Is there a particular field I should study for this or do I just need to think harder about it?
            – Mushroom Man
            Nov 27 at 20:04










          • The last step is just a combination of conditions $Tgeq0$, $Tgeqfrac{2l-s}6$ and that $T$ is integer. I used $max$ just to consider the case $l=0, s>0$. I will think how to take into account cases $l=1, s=0$ and $l=1, s=1$
            – Mikalai Parshutsich
            Nov 27 at 20:13










          • Well, I think that the cases $l=1,s=0$ and $l=s=1$ should be treated separately. These are special cases.
            – Mikalai Parshutsich
            Nov 27 at 20:26
















          I think you're right about the inequality, but the equation at the bottom doesn't work at $l=2$ and $s=0$, since I could convert one $l$ and make 1 $B$, against the equation's advice. Do I need to redefine the question? I think I might be leaving out something...
          – Mushroom Man
          Nov 27 at 17:08




          I think you're right about the inequality, but the equation at the bottom doesn't work at $l=2$ and $s=0$, since I could convert one $l$ and make 1 $B$, against the equation's advice. Do I need to redefine the question? I think I might be leaving out something...
          – Mushroom Man
          Nov 27 at 17:08












          I've made a logical mistake. I'll correct my answer in a minute
          – Mikalai Parshutsich
          Nov 27 at 17:38




          I've made a logical mistake. I'll correct my answer in a minute
          – Mikalai Parshutsich
          Nov 27 at 17:38












          This is excellent, thanks! I realize I forgot to define part of the problem: that I don't want to convert $l$ unless it means I can create another $B$. Your final equation gives $T=1$ for $l=1, s=0$, when in this case I wouldn't want to convert an $l$ since I wouldn't have any $l$ left to make $B$. Also, I'm unfamiliar with how you transition from inequalities and such to uses of min/max. Is there a particular field I should study for this or do I just need to think harder about it?
          – Mushroom Man
          Nov 27 at 20:04




          This is excellent, thanks! I realize I forgot to define part of the problem: that I don't want to convert $l$ unless it means I can create another $B$. Your final equation gives $T=1$ for $l=1, s=0$, when in this case I wouldn't want to convert an $l$ since I wouldn't have any $l$ left to make $B$. Also, I'm unfamiliar with how you transition from inequalities and such to uses of min/max. Is there a particular field I should study for this or do I just need to think harder about it?
          – Mushroom Man
          Nov 27 at 20:04












          The last step is just a combination of conditions $Tgeq0$, $Tgeqfrac{2l-s}6$ and that $T$ is integer. I used $max$ just to consider the case $l=0, s>0$. I will think how to take into account cases $l=1, s=0$ and $l=1, s=1$
          – Mikalai Parshutsich
          Nov 27 at 20:13




          The last step is just a combination of conditions $Tgeq0$, $Tgeqfrac{2l-s}6$ and that $T$ is integer. I used $max$ just to consider the case $l=0, s>0$. I will think how to take into account cases $l=1, s=0$ and $l=1, s=1$
          – Mikalai Parshutsich
          Nov 27 at 20:13












          Well, I think that the cases $l=1,s=0$ and $l=s=1$ should be treated separately. These are special cases.
          – Mikalai Parshutsich
          Nov 27 at 20:26




          Well, I think that the cases $l=1,s=0$ and $l=s=1$ should be treated separately. These are special cases.
          – Mikalai Parshutsich
          Nov 27 at 20:26


















          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%2f3015393%2foptimizing-video-game-crafting-with-two-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

          Berounka

          Different font size/position of beamer's navigation symbols template's content depending on regular/plain...

          Sphinx de Gizeh