Sub topic 15
Ambiguous Notation Such as 8 ÷ 2(2 + 2)
Prerequisites and the source of the ambiguity
This chapter assumes that you know basic arithmetic, grouping symbols, and the usual order of operations. The key distinction is between multiplication written with a symbol, such as 2 × 4, and implicit multiplication, where the symbol is omitted, as in 2(4).
Consider:
8 ÷ 2(2 + 2)First evaluate the parentheses:
8 ÷ 2(4)The remaining notation is ambiguous because 2(4) clearly means multiplication, but the expression does not show how strongly that multiplication should bind to the division.
Two possible readings
Under the common rule that multiplication and division have equal precedence, evaluate from left to right:
8 ÷ 2(4)
= 8 ÷ 2 × 4
= 4 × 4
= 16This treats the expression as:
(8 ÷ 2)(2 + 2)Some calculators, textbooks, and software systems give implicit multiplication higher precedence than explicit division. They read the expression as:
8 ÷ [2(2 + 2)]
= 8 ÷ [2 × 4]
= 8 ÷ 8
= 1Both calculations are internally consistent. The original notation does not communicate which grouping the writer intended.
| Written expression | Grouping made explicit | Result |
|---|---|---|
| `8 ÷ 2(2 + 2)` | `(8 ÷ 2)(2 + 2)` | 16 |
| `8 ÷ 2(2 + 2)` | `8 ÷ [2(2 + 2)]` | 1 |
How to remove the ambiguity
Never rely on a convention when the grouping matters. Use parentheses, a fraction bar, or an explicit multiplication sign:
- Write
(8 ÷ 2)(2 + 2)when the answer is 16. - Write
8 ÷ [2(2 + 2)]when the answer is 1. - Write
8 / (2 * (2 + 2))in code when the denominator is the entire product. - Write
(8 / 2) * (2 + 2)in code when division happens first.
A fraction bar also groups its entire numerator and denominator. For example,
8
────────
2(2 + 2)means 8 ÷ [2(2 + 2)], not (8 ÷ 2)(2 + 2).
Checking the grouping with Python
Python requires explicit multiplication with *. This makes the intended grouping visible:
left_grouping = (8 / 2) * (2 + 2)
right_grouping = 8 / (2 * (2 + 2))
print(left_grouping) # 16.0
print(right_grouping) # 1.0Exercise
Rewrite 12 ÷ 3(1 + 3) so that it clearly means 1, then evaluate it.
Show answer
Write 12 ÷ [3(1 + 3)]. The parentheses give 1 + 3 = 4, so the denominator is 3 × 4 = 12, and the result is 12 ÷ 12 = 1.