1
$\begingroup$

I have not much of a clue about math.

Is there any way that I can paste equations like this:

48 ? 27 * x * 16 = 82944

or this

85 ? 82 * x + 2 = 8

and get a value for x plus the correct operator (+ - or *).

These equations do not treat multiplication and division prior to adding and substracting. They are all treated equally.

$\endgroup$
  • $\begingroup$ What do you mean by paste? Also, since you have a variable there, both operations can be used, you will just get different values for $x$. $\endgroup$ – SK19 Feb 19 '18 at 13:36
  • $\begingroup$ Welcome to MSE. Please read this text about how to ask a good question. $\endgroup$ – José Carlos Santos Feb 19 '18 at 13:38
  • $\begingroup$ You can probably use any operator you'd like and then fill in the $x$ that makes it work. $\endgroup$ – Arthur Feb 19 '18 at 13:58
2
$\begingroup$

Not really. The solution is not unique.

$$(48\color{red}+27)\cdot \color{red}{\frac{1728}{25}}\cdot 16=82944.$$

$$(48\color{red}-27)\cdot \color{red}{\frac{1728}{7}}\cdot 16=82944.$$

$$(48\color{red}\cdot27)\cdot \color{red}{4}\cdot 16=82944.$$

The simplest solution (and probably the intended one) might be the one with the multiplication. I guess you have to try all of them and look which one gives a nice result.

$\endgroup$
  • $\begingroup$ Do you know of any way where I could copy paste that and get the result for each of the operators. It is solvable with each one, but they have to be "complete numbers" (no clue what the math term is) and cannot be negative. Or do you know how to write a function in javascript for that . :D $\endgroup$ – Coffeehouse Feb 19 '18 at 13:44
  • $\begingroup$ @user2164882 The term is natural number ;). I am afraid you will have to do it by hand. I mean there are ways to automate solving such equations, but in my opinion its not worth it since writing some code like this will take you hours and a lot of experience with expression trees. And there are only three cases for each equation. $\endgroup$ – M. Winter Feb 19 '18 at 13:47
  • $\begingroup$ well It would probably be worth it for me, because the one who solves those the fastest gets some kind of cryptoreward. $\endgroup$ – Coffeehouse Feb 19 '18 at 13:49
  • 1
    $\begingroup$ @user2164882 Then for the general approach consider starting here. ;) You can use it to automate solving for $x$ and trying all operators. $\endgroup$ – M. Winter Feb 19 '18 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.