# Math problem

**URL:** <https://boards.straightdope.com/t/math-problem/580084>\
**Category:** Factual Questions\
**Created:** [April 28, 2011, 9:54pm UTC](https://boards.straightdope.com/t/math-problem/580084 "2011-04-28T21:54:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![copperwindow](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@copperwindow](https://boards.straightdope.com/u/copperwindow)\
**Post date:** [April 28, 2011, 9:54pm UTC](https://boards.straightdope.com/t/math-problem/580084/1 "2011-04-28T21:54:00Z")

</div>

I’ve seen this on facebook, and I’m afraid I don’t understand why there is confusion. 6÷2(1+2)=? Is it 1 or 9?

---

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [April 28, 2011, 10:04pm UTC](https://boards.straightdope.com/t/math-problem/580084/2 "2011-04-28T22:04:20Z")

</div>

Short answer: 9  
Long answer: This is why I tell my student to forget PEMDAS that was taught to them in elementary school. The problem is 6 / 2 x 3. Students that memorized PEMDAS invariably interpret it as saying multiply then divide. What you are supposed to do is if you have both multiplication and division, do whichever is to the left so the proper solution is  
6 / 2 x 3  
3 x 3  
9

Math life would be easier if instead of PEMDAS (mini rant: what about roots? at least teach PERMDAS or better yet stay away from the mnemonic), elementary teachers taught  
()  
^ r  
X /

- 
  -

---

<div class="post-metadata">

**Author:** ![sich\_hinaufwinden](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@sich\_hinaufwinden](https://boards.straightdope.com/u/sich_hinaufwinden)\
**Post date:** [April 28, 2011, 10:04pm UTC](https://boards.straightdope.com/t/math-problem/580084/3 "2011-04-28T22:04:31Z")

</div>

I think it’s ambiguous and that’s the point. Personally, I think everything after the divide sign should be treated as a single entity simplified to 6/6 = 1. If there was an actual multiplication sign between the 2 and the parentheses I would do the parentheses first then go left to right per standard math rules to get 6/2 = 3 then 3\*3 = 9. I think it’s a crappy way to write the equation, but once again I think that’s the point.

---

<div class="post-metadata">

**Author:** ![md2000](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@md2000](https://boards.straightdope.com/u/md2000)\
**Post date:** [April 28, 2011, 10:05pm UTC](https://boards.straightdope.com/t/math-problem/580084/4 "2011-04-28T22:05:32Z")

</div>

6÷2(1+2)=?  
do brackets first: 6÷2(3)=6÷2x3  
The next rule is to do operations left to right;  
First do all additions subtractions; there are none.  
Now do multiply and divide.  
6÷2 = 3 and 3x3 =9

The trick is to see that 2(3) means 2x3, but is not a 2x3 that takes precedence of order over 6÷2

---

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [April 28, 2011, 10:07pm UTC](https://boards.straightdope.com/t/math-problem/580084/5 "2011-04-28T22:07:32Z")

</div>

> [@sich\_hinaufwinden](#):
>
> I think it’s ambiguous and that’s the point. Personally, I think everything after the divide sign should be treated as a single entity simplified to 6/6 = 1.

And you would be incorrect.

It is not ambiguous (see my post) and to claim 6÷2(1+2) should be read as 6÷[2(1+2)] is simply erroneous.

---

<div class="post-metadata">

**Author:** ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)\
**Post date:** [April 28, 2011, 10:09pm UTC](https://boards.straightdope.com/t/math-problem/580084/6 "2011-04-28T22:09:50Z")

</div>

PEDMAS.

P. Terms inside parentheses.  
E. Exponents and roots.  
M. Multiplication.  
D. Division).  
A. Addition.  
S. Subtraction.

So I would do:

2 + 1 = 3  
2 x 3 = 6  
6 ÷ 6 = 1

---

<div class="post-metadata">

**Author:** ![Great\_Antibob](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Great\_Antibob](https://boards.straightdope.com/u/Great_Antibob)\
**Post date:** [April 28, 2011, 10:10pm UTC](https://boards.straightdope.com/t/math-problem/580084/7 "2011-04-28T22:10:55Z")

</div>

> [@copperwindow](#):
>
> I’ve seen this on facebook, and I’m afraid I don’t understand why there is confusion. 6÷2(1+2)=? Is it 1 or 9?

Well, the Ancient Society of the No Homers has decreed it is actually 4 and a squiggle.

But seriously, it’s both.

Sorry about the ambiguous answer, but that’s the best we can do. The confusion comes from some textbooks and teachers teaching that if you see an implied multiplication, like 2(1+2), you should do that first. If that’s the case, the answer is 1.

Other textbooks and teachers teach that you should do the division before the implied multiplication, as you would under a normal order of operations order. Then, the answer is 9.

Of course, if there’s no agreement even among different teachers, that means there’s no hard and fast rule.

The problem is the the order of operations is itself a convention. It’s a way of codifying how most people approach arithmetic. In real life (even for mathematicians), we’d probably ask for clarification or curse the problem poser for giving us an ambiguous expression.

Most of us would use an extra set of parentheses to clarify the expression or use a rational expression with a numerator and denominator, instead.

We’ve been seeing this question submitted a lot on the “Ask Dr Math” site, and it’s the 2nd round of it. A similar question was posed a couple weeks ago and also spread like wildfire. These things come in waves.

The way we’ve been explaining it is to use the phrase “American history teacher”. When heard, is that a teacher of American history? Or a history teacher from America? It’s an ambiguous expression with no established rule to resolve the ambiguity.

Actually, thinking on it some more, the “real” answer is whatever your teacher says it is. Doesn’t change the ambiguity in the real world, but it does mean the difference between good and bad marks in class.

---

<div class="post-metadata">

**Author:** ![steronz](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/steronz/32/11765_2.png) [@steronz](https://boards.straightdope.com/u/steronz)\
**Post date:** [April 28, 2011, 10:11pm UTC](https://boards.straightdope.com/t/math-problem/580084/8 "2011-04-28T22:11:54Z")

</div>

I haven’t seen this specific problem, but there was another, almost identical problem that stormed the 'net earlier this month. As far as I’m concerned, the only wrong answer is “I don’t understand why there is confusion.” The long answer is “This is why you don’t write equations this way, and your algebra teacher should have harped on this.” The short answer is 9.

ETA: As a programmer, I can say there’s no ambiguity when it comes to how a programming language will perform the order of operations. If there’s still a debate amongst teachers like **Great Antibob** suggests, then they all need to take an intro to C++ course and realize that the debate has been settled by the nerds.

---

<div class="post-metadata">

**Author:** ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)\
**Post date:** [April 28, 2011, 10:13pm UTC](https://boards.straightdope.com/t/math-problem/580084/9 "2011-04-28T22:13:03Z")

</div>

> [@Saint\_Cad](#):
>
> (see my post)

Distracted by _South Park_. Didn’t read it before posting.

Suppose you put the 6 above a division line, and had 2(2+1) below the line?

---

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [April 28, 2011, 10:20pm UTC](https://boards.straightdope.com/t/math-problem/580084/10 "2011-04-28T22:20:54Z")

</div>

> [@Johnny\_L.A](#):
>
> Distracted by _South Park_. Didn’t read it before posting.
> 
> Suppose you put the 6 above a division line, and had 2(2+1) below the line?

Then it is a different problem. Absolute value and division bars act as grouping operators and so  
NUMERATOR  
DENOMENATOR  
is (NUMERATOR)/(DENOMENATOR)

And I will also point out that your thought process in an earlier post as to how PEMDAS work is exactly why it should NOT be taught.

---

<div class="post-metadata">

**Author:** ![Great\_Antibob](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Great\_Antibob](https://boards.straightdope.com/u/Great_Antibob)\
**Post date:** [April 28, 2011, 10:27pm UTC](https://boards.straightdope.com/t/math-problem/580084/11 "2011-04-28T22:27:14Z")

</div>

> [@steronz](#):
>
> If there’s still a debate amongst teachers like **Great Antibob** suggests, then they all need to take an intro to C++ course and realize that the debate has been settled by the nerds.

I understand this is a bit a snark, but I wanted to address this point directly. There’s no implicit multiplication in C++. You need to use an explicit ‘\*’ for multiplication. That’s the crux of the debate. I suppose we should have engineered spoken and written language to avoid ambiguous statements altogether.

---

<div class="post-metadata">

**Author:** ![Tim\_T-Bonham.net](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Tim\_T-Bonham.net](https://boards.straightdope.com/u/Tim_T-Bonham.net)\
**Post date:** [April 28, 2011, 10:34pm UTC](https://boards.straightdope.com/t/math-problem/580084/12 "2011-04-28T22:34:20Z")

</div>

> [@steronz](#):
>
> ETA: As a programmer, I can say there’s no ambiguity when it comes to how a programming language will perform the order of operations. If there’s still a debate amongst teachers like **Great Antibob** suggests, then they all need to take an intro to C++ course and realize that the debate has been settled by the nerds.

Also as a programmer, even though the compiler knows & enforces an order of operations, it’s important for programmers (and future maintenance programmers) to understand it clearly. So when doing program coding review walkthrus, whenever this came up, we just demanded that the coder rewrite this, using parenthesis to make the order explicitly clear. Saved lots of confusion & errors in future years.

---

<div class="post-metadata">

**Author:** ![Jragon](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jragon](https://boards.straightdope.com/u/Jragon)\
**Post date:** [April 28, 2011, 10:34pm UTC](https://boards.straightdope.com/t/math-problem/580084/13 "2011-04-28T22:34:41Z")

</div>

> [@Saint\_Cad](#):
>
> And you would be incorrect.
> 
> It is not ambiguous (see my post) and to claim 6÷2(1+2) should be read as 6÷[2(1+2)] is simply erroneous.

I’m not entirely convinced, now let me preface it that my gut would be 9, because of the way I was taught order of operations, but let’s do a simple substitution.

let (1+2) = x

6/2(1+2) = 6/2x

Now it seems a lot more ambiguous to me, is it (6/2) \* x, or 6/(2x)? The general tendency in algebra is to treat a coefficient/variable pair as one entity, not in need of parens to separate it, but at the same time, (6/2) \* x can’t be ruled out, if they expect you to use the order of operations without question, or even if they considered “6/2” to be the coefficient of x. In fact, with the variable substitution I’d probably be more likely to treat it as 6/(2x), whereas with the literal statement I’d be more likely to treat it as (6/2)(1+2). Interestingly, making a simple addition to 6/2x -\> 6/2 \* x makes it seem to me that the grouping is (6/2) \* x, even though technically no ambiguity should have been altered. It’s funny how syntax psychology works sometimes.

> [@steronz](#):
>
> ETA: As a programmer, I can say there’s no ambiguity when it comes to how a programming language will perform the order of operations. If there’s still a debate amongst teachers like **Great Antibob** suggests, then they all need to take an intro to C++ course and realize that the debate has been settled by the nerds.

Actually, it’s not so clear cut, [here](http://cdn2.knowyourmeme.com/i/000/112/837/original/16h6ja8.jpg?1302454815)’s a picture of several calculators, some of which are from the same company, solving a similar problem. Even the calculators don’t agree with how to interpret it.

---

<div class="post-metadata">

**Author:** ![Jragon](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jragon](https://boards.straightdope.com/u/Jragon)\
**Post date:** [April 28, 2011, 10:47pm UTC](https://boards.straightdope.com/t/math-problem/580084/14 "2011-04-28T22:47:53Z")

</div>

It occurs to me that PEMDAS really needs to be PEMA. Roots (and logs) are already rolled into Exponents, so why not have the other inverses rolled together? Subtraction is addition by a negative and division is multiplication by a reciprocal.

I suppose then we’d have to teach kids some extra facts when they learn the order of operations, but I don’t think it’s insurmountable.

---

<div class="post-metadata">

**Author:** ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)\
**Post date:** [April 28, 2011, 10:48pm UTC](https://boards.straightdope.com/t/math-problem/580084/15 "2011-04-28T22:48:14Z")

</div>

This is why I use parentheses when I code.

FWIW, my Ti-30 says the answer is 9. I haven’t tried it on my Ti-84 or any of the HPs. (Too lazy to dig them out.)

---

<div class="post-metadata">

**Author:** ![Tim\_T-Bonham.net](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Tim\_T-Bonham.net](https://boards.straightdope.com/u/Tim_T-Bonham.net)\
**Post date:** [April 28, 2011, 11:05pm UTC](https://boards.straightdope.com/t/math-problem/580084/16 "2011-04-28T23:05:51Z")

</div>

> [@Jragon](#):
>
> Actually, it’s not so clear cut, [here](http://cdn2.knowyourmeme.com/i/000/112/837/original/16h6ja8.jpg?1302454815)’s a picture of several calculators, some of which are from the same company, solving a similar problem. Even the calculators don’t agree with how to interpret it.

Well, enter 6÷2(1+2) into Google, and they agree that the answer is 9.

---

<div class="post-metadata">

**Author:** ![CaveMike](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cavemike/32/16379_2.png) [@CaveMike](https://boards.straightdope.com/u/CaveMike)\
**Post date:** [April 28, 2011, 11:11pm UTC](https://boards.straightdope.com/t/math-problem/580084/17 "2011-04-28T23:11:51Z")

</div>

> [@Jragon](#):
>
> Now it seems a lot more ambiguous to me, is it (6/2) \* x, or 6/(2x)? The general tendency in algebra is to treat a coefficient/variable pair as one entity, not in need of parens to separate it, but at the same time, (6/2) \* x can’t be ruled out, if they expect you to use the order of operations without question, or even if they considered “6/2” to be the coefficient of x. In fact, with the variable substitution I’d probably be more likely to treat it as 6/(2x), whereas with the literal statement I’d be more likely to treat it as (6/2)(1+2). Interestingly, making a simple addition to 6/2x -\> 6/2 \* x makes it seem to me that the grouping is (6/2) \* x, even though technically no ambiguity should have been altered. It’s funny how syntax psychology works sometimes.

This is completely incorrect. **Saint Cad** already laid out the order of evaluation including the fact that division and multiplication are evaluated from left-to-right. This is the rule; there is no ambiguity.

You don’t get to add a set of parenthesis around 2x just because it looks like they belong together. If they were meant to go together, then they should have had a set of parenthesis explicitly added or they should have both been written as the denomenator underneath the 6.

---

<div class="post-metadata">

**Author:** ![Rigamarole](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@Rigamarole](https://boards.straightdope.com/u/Rigamarole)\
**Post date:** [April 28, 2011, 11:17pm UTC](https://boards.straightdope.com/t/math-problem/580084/18 "2011-04-28T23:17:05Z")

</div>

It’s not ambiguous. The order of operations in math is absolute. The answer is 9.

---

<div class="post-metadata">

**Author:** ![Jragon](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jragon](https://boards.straightdope.com/u/Jragon)\
**Post date:** [April 28, 2011, 11:19pm UTC](https://boards.straightdope.com/t/math-problem/580084/19 "2011-04-28T23:19:02Z")

</div>

> [@CaveMike](#):
>
> This is completely incorrect. **Saint Cad** already laid out the order of evaluation including the fact that division and multiplication are evaluated from left-to-right. This is the rule; there is no ambiguity.
> 
> You don’t get to add a set of parenthesis around 2x just because it looks like they belong together. If they were meant to go together, then they should have had a set of parenthesis explicitly added or they should have both been written as the denomenator underneath the 6.

[Wolfram](http://www.wolframalpha.com/input/?i=1%2F2x) [Alpha](http://www.wolframalpha.com/input/?i=1%2F2+*+x) actually [agrees](http://www.wolframalpha.com/input/?i=1%2F2%281%2B2%29) with my interpretation.

Now, Wolfram isn’t God, but it is often pretty good about laying out generalities like that. Now, should it be unambiguous? Yes, it would make the world a much easier place, but just because the order of operations should be followed like law doesn’t mean it IS. The fact is, depending on who is using what, the correct answer will change. “Math” is universally true and correct if you follow the premises, mathematical _syntax_ is a lot closer to natural language in ambiguity sometimes.

---

<div class="post-metadata">

**Author:** ![TriPolar](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tripolar/32/3008_2.png) [@TriPolar](https://boards.straightdope.com/u/TriPolar)\
**Post date:** [April 28, 2011, 11:25pm UTC](https://boards.straightdope.com/t/math-problem/580084/20 "2011-04-28T23:25:23Z")

</div>

As Al Gore would say, “There is no controlling legal authority” that determines operator precedence. The ‘square root of yellow’ is just as valid an answer to the question as any other the way it is expressed.

[Next page](https://boards.straightdope.com/t/math-problem/580084.md?page=2)
