Unknown Operator and x

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.

• 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$. – SK19 Feb 19 '18 at 13:36
• Welcome to MSE. Please read this text about how to ask a good question. – José Carlos Santos Feb 19 '18 at 13:38
• You can probably use any operator you'd like and then fill in the $x$ that makes it work. – Arthur Feb 19 '18 at 13:58

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.

• 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 – Coffeehouse Feb 19 '18 at 13:44
• @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. – M. Winter Feb 19 '18 at 13:47
• well It would probably be worth it for me, because the one who solves those the fastest gets some kind of cryptoreward. – Coffeehouse Feb 19 '18 at 13:49
• @user2164882 Then for the general approach consider starting here. ;) You can use it to automate solving for $x$ and trying all operators. – M. Winter Feb 19 '18 at 13:51