-3

Given the sequence 123456789

You can insert three operations (+,-,X,/) into this sequence to make the equation = 100.

Is there a way to solve this without brute force?

Adam
  • 2,907
  • 1
  • 13
  • 36
CR241
  • 574
  • 4
  • 13

1 Answers1

2

If I’m allowed to use the same operation multiple times, I would do:

123−45−67+89 = 100

  • you also need to re-order the digits to do that, so it's not a soltion – Jasen Dec 27 '19 at 23:48
  • Thanks I found out using the correct order :) –  Dec 27 '19 at 23:52
  • @Jdrupal your answer With brute force, but I am looking for other possible solutions.. As I mentioned in question answer should be without Brute force. – CR241 Dec 27 '19 at 23:55
  • Sorry what do you mean by brute force? –  Dec 28 '19 at 00:01
  • @CR241 There’s absolutely no evidence of a brute force method being used here. – Thomas Markov Dec 28 '19 at 00:03
  • @ThomasMarkov it seems you don't know the meaning of Brute force? – CR241 Dec 28 '19 at 00:07
  • https://en.m.wikipedia.org/wiki/Brute-force_search – Thomas Markov Dec 28 '19 at 00:09
  • @CR241 The definition of brute force is "relying on or achieved through the application of force, effort, or power in usually large amounts instead of more efficient, carefully planned, or precisely directed methods" according to the Merriam-Webster dictionary. Therefore, it is hard to tell whether a brute force method was used here. Plus, this is an answer that can be found all over the internet. – Duck Dec 28 '19 at 01:19