How to get 5 from the numbers {6, 7, 8, 9} using only addition, subtraction, division, and multiplication.

594 Views Asked by At

Is there a way you can get the number 5 from the numbers 6, 7, 8, and 9 using only addition, subtraction, multiplacation, and division, without combining two numbers e.g. using the 6 and 7 to create 67. Exponents, factorials, and trig functions are not allowed. If there is no way to do this, is there a way to prove that it is impossible? Thanks if you answer.

4

There are 4 best solutions below

0
On BEST ANSWER

$$\frac{8\times9}{6}-7$$

That seems about right!

0
On

$===================(7+8)/(9-6)$.

3
On

here is one other way to do it:

$$ (8-6)\cdot 7 - 9 = 5 $$

4
On

The code in my answer to your other question gives one more solution (after curating the output by hand)

7*(8-6)-9=5 (Bruno's solution)
(7+8)/(9-6)=5.0 (Oscar's solution)
8-6/(9-7)=5.0
8/6*9-7=5.0 (Zach's solution)