There was something of a heated debate about the correct answer to this question at work yesterday and the ‘correct’ answer isn’t what I thought it would be.
9 - 3 ÷ 1/3 + 1 = ?
I thought it was 19, apparently the correct answer is 1, but it seems to me that answer is achieved by adding parenthesis and changing the order of operations, not what is actually written and asked which seems perfectly straightforward
I’m somewhat confused, as I thought maths was supposed to be unambiguous, not like the written word.
The acronym to remember (which I had drilled into me in 7th grade - thanks Mrs. Mac) is PEMDAS
Parenthesis - do whatever is in parenthesis first
Exponentiation - handle exponents next
Multiplication/Division - these are handled with the same precedence as they’re just inverses of each other, right to left
Addition/Subtraction - against, same precedence as they are essentially the same operation, right to left.
There are no parenthesis or exponents, so handle multiplication/division first
9 - 3 ÷ 1/3 + 1 = 9 - 9 + 1 (division)
9 - 9 + 1 = 0 + 1 (substraction, left first)
0 + 1 = 1 (only one left)
The thing that confuses most people is that dividing by a fraction is the same as multiplying by it’s inverse. So three divided by one third equals nine.
EDIT: it doesn’t seem you made that mistake. Your mistake was in doing all operations right to left with the same precedence, instead of doing the division first and the addition/subtraction next.
The order of operations is PEMDAS, which stands for parenthesis, exponents, multiply, divide, add, subtract. So in the expression 9 - 3 ÷ 1/3 + 1 = ? you first divide 3 by 1/3 getting 9, subtract that from 9 getting zero, and add in the 1 ending up with 1.
We just had a thread on that here.
Basically, it boils down to whether you interpret the “1/3” as a single unit mean “one third” or just one divided by three. In other words, whether you interpret
9 - 3 ÷ 1/3 + 1 = as
9 - 3 / (1/3) + 1 = 1 or
9 - 3 / 1 / 3 + 1 = 9
Given that a “÷” sign is used, my interpretation is that that sign means division and “/” is being used to show a fraction. Also, given the spacing, where everywhere else there is a space before and after the operand, except the “/”.
ETA: And, yeah, 19 is just right out. You’re just doing it left to right with no regard for order of operations, which is not how it’s conventionally done.
There is no standard order of operations. PEDMAS is commonly used, but not universally. Unless operator precedence is specified any such expression is ambiguous. In the age of computers even the operators aren’t standard in their meaning. It’s common practice now in programming to use as many parentheses as necessary to make the order of evaluation clear.
IN the UK this was taught as BODMAS
Brackets
Order
Divide
Multiply
Add
Subtract
So, yes, using that the answer is clearly 1. You get used to this when writing computer programs, although I tend to add brackets everywhere for clarity.
We’ve done this exact question before, except with a link to a YouTube video that clarifies the notation somewhat.
On preview: oops—ninja’d by pulykamell.
yup got 1, even in a rather inebriated state. 3 divided by 1/3 is 9.
There are other notations too, like prefix and postfix. The conventional way, with the operator between the numbers, is i think called infix…