Puzzling Stack Exchange is a question and answer site for those who create, solve, and study puzzles. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Add the four basic operators $\times\div+\,\;-$ and optionally brackets to:

$10 \quad 9 \quad 8 \quad 7 \quad 6 \quad 5 \quad 4 \quad 3 \quad 2 \quad 1$

To get the total $2016$.

Rules:

  • We are looking for the simplest solution - i.e. the least amount of characters (ignoring spaces). Please include your character count in your answer.
  • Keep the order; do not add or combine numbers.
  • Use all four operators at least once.

Credit for initial concept: Alex Bellos

share|improve this question
4  
Is it one of each operator? And can you combine numbers (eg. 2 and 1 makes 21)? – JonTheMon Jan 4 at 17:34
2  
If there are multiple ways of doing this, do you want the most complex, the most simple, or some other criteria? – Aggie Kidd Jan 4 at 17:38
3  
Do the numbers need to be in that order in the equation? – JonTheMon Jan 4 at 17:58
1  
Fun fact, if Carat was allowed: 10 x 9 + 8 + 7 * 6 + 5 ^ 4 x 3 + 2 -1 (credit: @TheDanWoods Twitter) – rybo111 Jan 5 at 0:20
1  
@rybo111 there are actually 2 ways with a single carat: 10 x 9 + 8 + 7 x 6 + 5 ^ 4 x 3 + 2 - 1 10 x 9 + 8 x 7 - 6 + 5 ^ 4 x 3 + 2 - 1 edit: oops 2 not 5 - foiled by integer division! – ejrb Jan 5 at 15:40

13 Answers 13

22 characters

$10 \times 9 \times 8 \times 7 \times 6 \div 5 \div (4 - 3 + 2) \times 1$

I looked at @Will's answer and found a way to improve on it.

share|improve this answer
2  
@rybo111 - Brute force turns up no solutions without groupings using only +, -, *, and /. Closest two are: 10*9*8*7/6/5*4*3-2+1 = 2015.0 and 10*9*8*7/6/5*4*3+2-1 = 2017.0. This should be accepted. :) – Will Jan 4 at 19:31
11  
@Will keep that second one saved for next year! – Joel Rondeau Jan 4 at 19:32
1  
Couldn't this save one character? Seems to me the final operator is unnecessary. – Jordan Jan 4 at 19:43
1  
@rybo111 brackets are an implicit multiplication. The answer is exactly the same if the final * is removed, but with one less character. – Jordan Jan 4 at 19:54
3  
@rybo111 There is plenty of different mathematical notation that is accepted by mathematical professionals that doesn't work on Google, for various reasons (ranging from the fact that it can't be written as plain text, to that Google simply doesn't implement it). – hexafraction Jan 5 at 0:39

22 characters

I don't think you can beat Joel's answer at 22 characters, but there are some nice ways to tie it (including a variation of Joel's for completeness):

$(10 - 9 + 8 \times 7 \times 6 - 5 + 4) \times 3 \times 2 \times 1$
$10 - 9 + 8 \times 7 \times (6 \times 5 + 4 \times 3 \div 2) - 1$
$10 - 9 + 8 \times 7 \times (6 + 5 \times 4 \times 3 \div 2) - 1$
$10 - 9 + 8 \times 7 \times 6 \div (5 - 4) \times 3 \times 2 - 1$
$10 - 9 + 8 \times 7 \times 6 \times (5 + 4) \div 3 \times 2 - 1$
$10 - 9 + 8 \times 7 \times 6 \times (5 + 4 + 3) \div 2 - 1$
$10 + (9 \times 8 \times 7 - 6 + 5) \times 4 - 3 \times 2 \div 1$
$10 \times 9 \times 8 \times 7 \div (6 - 5 + 4 - 3 \div 2 - 1)$
$10 \times 9 \times 8 \times 7 \div (6 \times 5 \div 4 - 3 \times 2 + 1)$
$10 \times 9 \times 8 \times 7 \times 6 \div (5 \times 4 - 3 \times 2 + 1)$
$10 \times 9 \times 8 \times 7 \times 6 \div (5 + 4 \times 3 - 2 \times 1)$
$10 \times 9 \times 8 \times 7 \times 6 \div 5 \div (4 - 3 + 2) \times 1$

There are other ways but many of them are trivial (change $\div 1$ to $\times 1$ or vice-versa, or $\div 1)$ to $)\div 1$

If we didn't have the restriction that we need to use all the different operators there is also a very nice solution:

$ 10 \times 9 \times 8 \times 7 \times 6 \div (5 + 4 + 3 + 2 + 1)$

share|improve this answer
2  
The non-restriction version is so clean! – rybo111 Jan 5 at 0:09
1  
@rybo111 Yeah, I like how the / is right in the middle. – Paulpro Jan 5 at 1:04
3  
You found so many ways. Is there any generalized method to come with these? or just random guesses? – Mahesha999 Jan 5 at 13:42
    
22 characters is indeed the best possible solution as it cannot be done without parentheses (verified by exhaustive search) – ejrb Jan 5 at 16:22
    
I don't understand why nobody is taking the hints in multiple comments. You can take many of these to 21 characters by simply removing any multiplication operators next to a parentheses. – Jordan Jan 6 at 16:11

I came up with:

$(10 - 9) \times 8 \times 7 \times 6 \times (5 - 4 + 3 + 2 \div 1)$

This is 9 operators and 2 required groupings, for a total of 24 characters.

share|improve this answer
    
Updated question – rybo111 Jan 4 at 18:17
    
All right, editing in division real quick – Will Jan 4 at 18:18
    
Great stuff! Can anyone beat 24 characters? – rybo111 Jan 4 at 18:23
    
I was just writing an answer with your edit. – tfitzger Jan 4 at 18:45
1  
You could also remove the two asterisks right next to the parentheses i.e. 6(5-4) = 6*(5-4) – Marco Bonelli Jan 4 at 19:27

$10 + 9 \times 8 - 7 + 654 \times 3 - 21$

17 Characters... Is mushing numbers together allowed? Also, yay Mathematica.

share|improve this answer
    
Oh, wait, it isn't allowed. – Shane Di Dona Jan 5 at 0:32
3  
Still another cool solution though! – rybo111 Jan 5 at 0:36
    
Also missing $ ÷ $ – Jamie Barker Jan 6 at 8:06
    
I like your solution and your use of the word mushing! How do you find something like this using Mathematica? Is there a special command you used? – CJD Jan 6 at 13:11

If we allow for implicit multiplication of parenthesized expressions then the following solutions, all of length 20, become possible

$10\times 9\times 8\times 7(6\div 5-4+3) 2\times 1$
$10\times 9\times 8\times 7 (6\div 5-4+3) 2\div 1$
$10\times 9\times 8 (7-6\div 5-4+3-2) 1$

This list has been generated via exhaustive search, and excludes needlessly parenthesizing expressions that only contain multiplication or division.

share|improve this answer
    
Bravo! 21 was the previous leader with implicit multiplication – rybo111 Jan 6 at 22:35

21 chars

$10 \times 9 \times 8 (7 - 6 \div 5 - 4 + 3 - 2 \times 1)$

share|improve this answer
    
@assylias incorrect. Copy and paste that into Google. – Jamie Barker Jan 5 at 16:18
1  
My bad - but still you are missing one operator. – assylias Jan 5 at 16:20
    
@assylias It's not necessary, it's inferred. answers.yahoo.com/question/index?qid=20110427155042AACb7d8 – Jamie Barker Jan 6 at 8:21

22 Chars:

10 x 9 x 8 x 7 x 6/(5 + 4 + 3 + 2 + 1)

share|improve this answer
1  
@PaulPro already posted this solution – rybo111 Jan 5 at 8:51

Here is one more with 22 characters not mentioned in @PaulPro's answer:

10*9*8*7*6/(5*4-3-2*1)

Edit: As @DanHenderson pointed out, this has no + operator.

share|improve this answer
    
Has no + operator. – Dan Henderson Jan 5 at 14:45

24 chars:

$(10-9+8) \times 7 \times (6 \times 5 + 4-3 + 2-1)$

$9 \times 7 \times 32 = 2016$

share|improve this answer

22 20 characters

10 + 9 * 8 * 7 * 4 - 6 / 3 - 5 - 2 - 1

Without order :(

share|improve this answer
3  
I count 20 characters. – Crispy Jan 4 at 20:11
2  
You have changed the order of the numbers so this answer is invalid but otherwise well done – RedLaser Jan 4 at 21:18

22 chars

±10*9*8*7*6/(5+4+3+2+1)

If ± is valid as usage of - character, then you get two answers, which of one is correct :)

share|improve this answer

27 characters (missing /):

(10-9)(8*7)(6-5)(4)(3)(2+1)

and 22 characters (missing -):

10*9*8*7*6/(5+4+3+2+1)

share|improve this answer
    
Missing minus in last suggestion, and missing / in first – Viktor Mellgren Jan 5 at 10:33

21!

10*9*8*7*6/(5+4+3+2+1)

But not valid, I guess...

share|improve this answer
1  
This was already included in @PaulPro’s answer, and a couple of others’. – Peter LeFanu Lumsdaine Jan 5 at 13:53

protected by Doorknob Jan 5 at 12:33

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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