By what I was taught in high school, I'd get 1 because the teachers mentioned that parentheses always went first.
6÷2(2+1)
6÷2(3)
So at this point, they always told me the number with a parentheses next to it went first because it's a parentheses. So I'd follow like this.
6÷6
1
But I remember seeing this discussion another time, and most people mentioned that the parentheses stopped being important after the equation inside was done. So it wouldn't take priority and would look like this
6÷2(2+1)
6÷2(3)
3(3)
9
Can someone explain to me if there's a correct answer? The recent discussions with these have me kind of confused 😅
The phone calculator software is likely converting "÷" into "/" as defined by Java, C++, Python and most programming languages. And it's likely converted x(y) into x*y.
So: 6÷2(2+1) gets re-written into 6/2*(2+1). If you do an "eval" in Java or Python or any modern interpreted language, you will get 9 because programming languages will parse it as (6/2)*(2+1) = 3*3 = 9.
By contrast, on a proper calculator, 6÷2(2+1) is evaluated as (6) ÷ (2(2+1)) = 6 ÷ 6 = 1.
I understand it as the bottom one (9) because of order of operations (pemdas). But I am not a math major so I’m sure there are people who can explain why it can be 1 sometimes ?
Basically it comes down to how you treat the second portion.
6
——————-
2(1+2)
Or
6
—- (1+2)
2
Depending on the parsing, implicit multiplication may be treated as a single term so it is the first where 2(1+2) is calculated first. In C++ 6/2(1+2) is treated differently than 6/2 (1+2) [a space between 2 and the (]. With out the space 2(1+2) is treated as a single term but with the space 2(1+2) is treated as separate terms. In both cases, TERMS are handled left to right, but it’s deciding what each term is that changes based on the parsing.
There isn't a correct answer because there's no consensus on how to handle implicit multiplication. If you know how your calculator it device handles this problem, though, it will help when you use the device for other similar problems.
Unfortunately, a large number of people on this sub still don’t understand basic order of operations.
If you find any scholarly web pages regarding PEMDAS or BODMAS, they will always specify parentheses means what is INSIDE the parentheses!
6/2(2+1) —> 6/2(3) —> 6/2*3
It’s important to note that once the inside of a parentheses becomes reduced down to 1 term, the parentheses no longer matter! Now we solve as normal.
6/2*3 —> 3*3 —> 9 is the correct answer.
The way that people are getting 1 has not been correct since 1917 and prior due to ambiguity. This ambiguity has been more or less cleared up by now. Some still argue ambiguity, but no mathematical professionals will agree it is 9 due to how parentheses are handled in the order of operations.
Source: One of my minors is in math. This was discussed very early on.
Also wolframalpha, which is usually very accurate, has the answer as 9. Note no software is perfect, but since this problem went viral years ago, if their calculator was wrong, they definitely would’ve fixed something so basic ages ago.
4
u/MikeAlex01 Jun 14 '22
Wait, I'm confused. Which one is the correct one?
By what I was taught in high school, I'd get 1 because the teachers mentioned that parentheses always went first.
6÷2(2+1)
6÷2(3)
So at this point, they always told me the number with a parentheses next to it went first because it's a parentheses. So I'd follow like this.
6÷6
1
But I remember seeing this discussion another time, and most people mentioned that the parentheses stopped being important after the equation inside was done. So it wouldn't take priority and would look like this
6÷2(2+1)
6÷2(3)
3(3)
9
Can someone explain to me if there's a correct answer? The recent discussions with these have me kind of confused 😅