Mathematics · Book 1 · Grades 1–9

Primary & Middle School Mathematics

Primary & Middle School Mathematics · Grades 1–9

45Priorities of Operations

What is 3+4×53 + 4 \times 5? If you compute left to right you get 3535; if you multiply first you get 2323. Mathematics needs one single answer, so there are traffic rules for computations — the priorities. This chapter states them and introduces a first algebraic identity, distributivity.

45.1 The priority rules

Theorem 45.1 (Priority rules)

In a computation without brackets:

  1. multiplications and divisions are performed before additions and subtractions;
  2. operations of the same level are performed from left to right.

Brackets override everything: what is inside brackets is computed first, starting with the innermost ones.

Example 45.2

One step per line, underlining (mentally) what is computed:

3+4×5=3+20=23(multiplication first)208+2=12+2=14(same level: left to right)18÷3×2=6×2=12(same level: left to right)(3+4)×5=7×5=35(brackets first).\begin{align*} 3 + 4 \times 5 &= 3 + 20 = 23 &&\text{(multiplication first)}\\ 20 - 8 + 2 &= 12 + 2 = 14 &&\text{(same level: left to right)}\\ 18 \div 3 \times 2 &= 6 \times 2 = 12 &&\text{(same level: left to right)}\\ (3 + 4) \times 5 &= 7 \times 5 = 35 &&\text{(brackets first).} \end{align*}

Note the traps: 208+220 - 8 + 2 is not 201020 - 10, and 18÷3×218 \div 3 \times 2 is not 18÷618 \div 6.

Example 45.3 (Nested brackets)

502×(3+(104))=502×(3+6)(innermost bracket)=502×9(remaining bracket)=5018(multiplication)=32.\begin{align*} 50 - 2 \times \bigl(3 + (10 - 4)\bigr) &= 50 - 2 \times (3 + 6) && \text{(innermost bracket)}\\ &= 50 - 2 \times 9 && \text{(remaining bracket)}\\ &= 50 - 18 && \text{(multiplication)}\\ &= 32 . \end{align*}

Remark 45.4 (Fraction bars hide brackets)

A fraction bar groups its numerator and its denominator, as if each had invisible brackets:

12+84=204=5,not12+84=14.\frac{12 + 8}{4} = \frac{20}{4} = 5, \qquad\text{not}\quad 12 + \frac{8}{4} = 14 .

Method 45.5 (Computing safely)

  1. Spot the operation to do first (innermost brackets, then ×\times and ÷\div, then ++ and -);
  2. compute only that one, and rewrite the whole expression with the result in place;
  3. repeat until one number remains — one operation per line, no shortcuts.

45.2 Distributivity

Theorem 45.6 (Distributivity)

For all numbers kk, aa, bb:

k×(a+b)=k×a+k×b,k×(ab)=k×ak×b.k \times (a + b) = k \times a + k \times b, \qquad k \times (a - b) = k \times a - k \times b .

Proof by a picture. Count the area of a rectangle of width kk split into two smaller rectangles of lengths aa and bb: as a whole it is k×(a+b)k \times (a+b); in two parts it is k×a+k×bk \times a + k \times b. Same rectangle, same area.

Distributivity as areas: the big rectangle k × (a + b) is the sum of the two smaller ones.
Distributivity as areas: the big rectangle k×(a+b)k \times (a + b) is the sum of the two smaller ones.

Example 45.7 (Both directions)

Expanding (left to right) makes mental math easy:

7×103=7×(100+3)=700+21=721,6×98=6×(1002)=60012=588.7 \times 103 = 7 \times (100 + 3) = 700 + 21 = 721, \qquad 6 \times 98 = 6 \times (100 - 2) = 600 - 12 = 588 .

Factoring (right to left) collects a common factor:

23×12+23×8=23×(12+8)=23×20=460.23 \times 12 + 23 \times 8 = 23 \times (12 + 8) = 23 \times 20 = 460 .

Example 45.8 (Translating words into a computation)

“The sum of 88 and the product of 55 by 33” is 8+5×3=238 + 5 \times 3 = 23. “The product of 55 by the sum of 88 and 33” is 5×(8+3)=555 \times (8 + 3) = 55: the words “the product of … by the sum of…” put brackets around the sum.

45.3 Exercises

Exercise 45.1

Compute, one operation per line:

5+3×6,(5+3)×6,3012÷4,(3012)÷4.5 + 3 \times 6, \qquad (5 + 3) \times 6, \qquad 30 - 12 \div 4, \qquad (30 - 12) \div 4 .
Solution

Solution of Exercise 45.1.

5+3×6=5+18=235 + 3 \times 6 = 5 + 18 = 23.

(5+3)×6=8×6=48(5 + 3) \times 6 = 8 \times 6 = 48.

3012÷4=303=2730 - 12 \div 4 = 30 - 3 = 27.

(3012)÷4=18÷4=4.5(30 - 12) \div 4 = 18 \div 4 = 4.5.

Exercise 45.2

Compute:

246+2,24÷6×2,246×2,24÷(6×2).24 - 6 + 2, \qquad 24 \div 6 \times 2, \qquad 24 - 6 \times 2, \qquad 24 \div (6 \times 2).
Solution

Solution of Exercise 45.2.

246+2=18+2=2024 - 6 + 2 = 18 + 2 = 20 (left to right).

24÷6×2=4×2=824 \div 6 \times 2 = 4 \times 2 = 8 (left to right).

246×2=2412=1224 - 6 \times 2 = 24 - 12 = 12 (multiplication first).

24÷(6×2)=24÷12=224 \div (6 \times 2) = 24 \div 12 = 2.

Exercise 45.3

Compute step by step:

7+3×(106),40(2+3)×4,60÷(2×(74)).7 + 3 \times (10 - 6), \qquad 40 - (2 + 3) \times 4, \qquad 60 \div \bigl(2 \times (7 - 4)\bigr).
Solution

Solution of Exercise 45.3.

7+3×(106)=7+3×4=7+12=197 + 3 \times (10 - 6) = 7 + 3 \times 4 = 7 + 12 = 19.

40(2+3)×4=405×4=4020=2040 - (2 + 3) \times 4 = 40 - 5 \times 4 = 40 - 20 = 20.

60÷(2×(74))=60÷(2×3)=60÷6=1060 \div \bigl(2 \times (7 - 4)\bigr) = 60 \div (2 \times 3) = 60 \div 6 = 10.

Exercise 45.4

Compute the fractions (invisible brackets!):

18+68,3072,5×84+6.\frac{18 + 6}{8}, \qquad \frac{30}{7 - 2}, \qquad \frac{5 \times 8}{4 + 6} .
Solution

Solution of Exercise 45.4.

18+68=248=3\dfrac{18 + 6}{8} = \dfrac{24}{8} = 3; 3072=305=6\dfrac{30}{7 - 2} = \dfrac{30}{5} = 6; 5×84+6=4010=4\dfrac{5 \times 8}{4 + 6} = \dfrac{40}{10} = 4.

Exercise 45.5

Use distributivity to compute mentally:

8×102,25×99,14×12+14×8,37×4537×35.8 \times 102, \qquad 25 \times 99, \qquad 14 \times 12 + 14 \times 8, \qquad 37 \times 45 - 37 \times 35 .
Solution

Solution of Exercise 45.5.

8×102=8×(100+2)=800+16=8168 \times 102 = 8 \times (100 + 2) = 800 + 16 = 816.

25×99=25×(1001)=250025=247525 \times 99 = 25 \times (100 - 1) = 2500 - 25 = 2475.

14×12+14×8=14×(12+8)=14×20=28014 \times 12 + 14 \times 8 = 14 \times (12 + 8) = 14 \times 20 = 280.

37×4537×35=37×(4535)=37×10=37037 \times 45 - 37 \times 35 = 37 \times (45 - 35) = 37 \times 10 = 370.

Exercise 45.6

Write the computation in one line, with brackets where needed, then compute: “the difference of 5050 and the product of 66 by 77”; “the product of the sum of 44 and 55 by the difference of 1010 and 88”.

Solution

Solution of Exercise 45.6.

“The difference of 5050 and the product of 66 by 77”: 506×7=5042=850 - 6 \times 7 = 50 - 42 = 8 (no brackets needed, the priority does the work).

“The product of the sum of 44 and 55 by the difference of 1010 and 88”: (4+5)×(108)=9×2=18(4 + 5) \times (10 - 8) = 9 \times 2 = 18.

Exercise 45.7

Amir bought 33 notebooks at 2.502.50 each and 22 pens at 1.201.20 each. Write his total in a single expression, then compute it.

Solution

Solution of Exercise 45.7.

3×2.50+2×1.20=7.50+2.40=9.903 \times 2.50 + 2 \times 1.20 = 7.50 + 2.40 = 9.90 euros.

Exercise 45.8 ★★

Place brackets in 4+2×514 + 2 \times 5 - 1 to make the result: (a) 1313; (b) 2929; (c) 2424. (One of the three needs no brackets at all — which one?)

Solution

Solution of Exercise 45.8.

(a) no brackets: 4+2×51=4+101=134 + 2 \times 5 - 1 = 4 + 10 - 1 = 13.

(b) (4+2)×51=301=29(4 + 2) \times 5 - 1 = 30 - 1 = 29.

(c) (4+2)×(51)=6×4=24(4 + 2) \times (5 - 1) = 6 \times 4 = 24.

Exercise 45.9 ★★

Are 12+4×k12 + 4 \times k and 16×k16 \times k the same for every number kk? Test with k=1k = 1 and k=2k = 2, and conclude. Which priority mistake would lead from one to the other?

Solution

Solution of Exercise 45.9.

k=1k = 1: 12+4×1=1612 + 4 \times 1 = 16 and 16×1=1616 \times 1 = 16 — they agree (that is why k=1k = 1 is a bad test!). k=2k = 2: 12+4×2=2012 + 4 \times 2 = 20 but 16×2=3216 \times 2 = 32: different. So the two expressions are not equal in general. The mistake 12+4×k=16×k12 + 4 \times k = 16 \times k comes from adding 12+412 + 4 first, ignoring the priority of ×\times.

Exercise 45.10 ★★

A cinema ticket costs 99 euros, but a group of nn people pays a flat 1212 euros plus 66 euros per person.

  1. Write an expression for the group price, and compute it for n=5n = 5.
  2. From how many people is the group rate cheaper than nn individual tickets? (Try a few values of nn.)
Solution

Solution of Exercise 45.10.

1. Group price: 12+6×n12 + 6 \times n. For n=5n = 5: 12+30=4212 + 30 = 42 euros.

2. Individual price: 9n9n. Compare: n=3n = 3: 3030 vs 2727 (individual cheaper); n=4n = 4: 3636 vs 3636 (equal); n=5n = 5: 4242 vs 4545 (group cheaper). From 55 people on, the group rate wins (each extra person costs 66 instead of 99, so the gap only grows).

Exercise 45.11 ★★★

Using each of the digits 11, 22, 33, 44 exactly once, the four operations and brackets at will, write expressions equal to 2424, to 1010, and to 11.

Solution

Solution of Exercise 45.11.

Possible answers (many exist):

24=1×2×3×4,10=1+2+3+4,1=(43)×(21).24 = 1 \times 2 \times 3 \times 4, \qquad 10 = 1 + 2 + 3 + 4, \qquad 1 = (4 - 3) \times (2 - 1).

45.4 Problem: Multiplying like an Egyptian scribe

Problem 45.1

Weekend problem — mental-math tricks from distributivity, and the doubling–halving multiplication used for four thousand years

Long before calculators — and before multiplication tables were drilled at school — Egyptian scribes and Russian peasants multiplied any two numbers using only doubling, halving and adding. Their method looks like magic; it is in fact distributivity (Theorem 45.6) working at full power. This problem sharpens your mental arithmetic, then teaches you the ancient method, then opens the hood to see exactly why it works.

Part I — The art of not computing.

  1. Compute mentally, expanding as in Example 45.7: 7×1027 \times 102 and 9×989 \times 98.
  2. Compute mentally, factoring: 17×13+17×717 \times 13 + 17 \times 7 and 45×1014545 \times 101 - 45.
  3. The “times 55” trick: to multiply by 55, multiply by 1010 and halve. Compute 5×875 \times 87 this way, and explain why the trick is legitimate.
  4. Two more tricks to justify and use: multiply by 2525 by multiplying by 100100 and dividing by 44 (compute 25×3225 \times 32); multiply by 9999 by multiplying by 100100 and subtracting once (compute 99×4799 \times 47).
  5. A warning shot: distributivity spreads a factor over a sum, never over a product. Compare 8×(5+3)8 \times (5 + 3) with 8×5+8×38 \times 5 + 8 \times 3, and then 8×(5×3)8 \times (5 \times 3) with (8×5)×(8×3)(8 \times 5) \times (8 \times 3): which pair matches, which does not?

Part II — The doubling–halving method. Here is the recipe for 13×2413 \times 24. Write two columns. Left column: start at 1313 and halve, dropping any remainder, down to 11: 13, 6, 3, 113,\ 6,\ 3,\ 1. Right column: start at 2424 and double as many times: 24, 48, 96, 19224,\ 48,\ 96,\ 192. Cross out every row whose left number is even, and add the surviving right numbers.

  1. Carry out the recipe for 13×2413 \times 24: which row is crossed out, what sum remains, and does it equal 13×2413 \times 24?
  2. Multiply 21×1721 \times 17 by the method (halve 2121, double 1717), and check the answer by ordinary multiplication.
  3. Multiply 16×2516 \times 25 by the method. How many rows survive, and what is special about a left column that starts at 11, 22, 44, 88, 16,16, \dots?
  4. Now why it works, one step at a time. Justify each equality with distributivity:

    13×24=(12+1)×24=12×24+24=6×48+24.13 \times 24 = (12 + 1) \times 24 = 12 \times 24 + 24 = 6 \times 48 + 24 .

    Moral: halving the left and doubling the right keeps the product — but when the left number is odd, one copy of the right number splits off and must be banked. Which number does the first row of the table bank?

  5. Continue the bookkeeping down the table: 6×48=3×966 \times 48 = 3 \times 96, then 3×96=1×192+963 \times 96 = 1 \times 192 + 96, then 1×192=1921 \times 192 = 192. Collect everything that was banked along the way, and explain why the banked numbers are exactly the right-column numbers of the rows with an odd left — the rows the recipe keeps.

Part III — Under the hood: sums of doublings.

  1. In question 6, the surviving rows were worth 11, 44 and 88 doublings of 2424: the method silently wrote 13×24=(1+4+8)×2413 \times 24 = (1 + 4 + 8) \times 24. Check that 1+4+8=131 + 4 + 8 = 13, and find which doublings (11, 22, 44, 88, 1616) the method kept for 2121 in question 7.
  2. Write 2525 and 4242 as sums of numbers from the doubling list 1,2,4,8,16,321, 2, 4, 8, 16, 32, using each at most once.
  3. Explain why every whole number can be written this way: take the largest doubling number that fits, subtract, repeat — why must this stop? Write 100100 as such a sum.
  4. The scribes of Egypt did exactly this, four thousand years ago: to multiply 19×3519 \times 35, they made a doubling table of 3535 (1351 \to 35, 2702 \to 70, 41404 \to 140, 82808 \to 280, 1656016 \to 560), picked the rows adding up to 1919, and summed. Do the computation their way.
  5. Finale: modern computers, which count with 00s and 11s, multiply essentially like the scribes — by doublings and additions. Which three additions would a computer make for 13×2413 \times 24? (Why every number splits into doublings, and what 00s and 11s have to do with it, is the weekend problem of the Powers chapter: Problem 56.1.)
Solution

Solution of Problem 45.1.

1. 7×102=7×(100+2)=700+14=7147 \times 102 = 7 \times (100 + 2) = 700 + 14 = 714; 9×98=9×(1002)=90018=8829 \times 98 = 9 \times (100 - 2) = 900 - 18 = 882.

2. 17×13+17×7=17×(13+7)=17×20=34017 \times 13 + 17 \times 7 = 17 \times (13 + 7) = 17 \times 20 = 340; 45×10145=45×(1011)=45×100=450045 \times 101 - 45 = 45 \times (101 - 1) = 45 \times 100 = 4\,500.

3. 5×87=870÷2=4355 \times 87 = 870 \div 2 = 435. Legitimacy: 5=10÷25 = 10 \div 2, so multiplying by 55 is multiplying by 1010 then dividing by 22 (the order of ×\times and ÷\div at the same level, left to right, does the rest).

4. 25×32=3200÷4=80025 \times 32 = 3\,200 \div 4 = 800, because 25=100÷425 = 100 \div 4. And 99×47=(1001)×47=470047=465399 \times 47 = (100 - 1) \times 47 = 4\,700 - 47 = 4\,653: distributivity over the difference (Theorem 45.6).

5. 8×(5+3)=648 \times (5 + 3) = 64 and 8×5+8×3=40+24=648 \times 5 + 8 \times 3 = 40 + 24 = 64: they match — that is distributivity. But 8×(5×3)=8×15=1208 \times (5 \times 3) = 8 \times 15 = 120, while (8×5)×(8×3)=40×24=960(8 \times 5) \times (8 \times 3) = 40 \times 24 = 960: no match. The factor spreads over the terms of a sum, not over the factors of a product.

6.

13132424kept (1313 odd)
664848crossed out (66 even)
339696kept
11192192kept

Sum of the surviving right numbers: 24+96+192=31224 + 96 + 192 = 312, and indeed 13×24=31213 \times 24 = 312.

7. Halving 2121: 21,10,5,2,121, 10, 5, 2, 1; doubling 1717: 17,34,68,136,27217, 34, 68, 136, 272. Even lefts 1010 and 22 are crossed out; survivors 17+68+272=35717 + 68 + 272 = 357. Check: 21×17=35721 \times 17 = 357.

8. Halving 1616: 16,8,4,2,116, 8, 4, 2, 1; doubling 2525: 25,50,100,200,40025, 50, 100, 200, 400. Every left number except the final 11 is even: a single row survives, and the answer is 400400. A left column made of pure doublings keeps only its last row — the method reduces to doubling alone.

9. 13=12+113 = 12 + 1, so by distributivity 13×24=12×24+1×2413 \times 24 = 12 \times 24 + 1 \times 24; and 12×24=6×4812 \times 24 = 6 \times 48 since halving one factor while doubling the other leaves a product unchanged (12×24=6×2×24=6×4812 \times 24 = 6 \times 2 \times 24 = 6 \times 48). The odd left number 1313 split off one copy of the right number: the first row banks 2424.

10. 6×48=3×966 \times 48 = 3 \times 96 (halve–double, no banking: 66 is even). 3×96=2×96+96=1×192+963 \times 96 = 2 \times 96 + 96 = 1 \times 192 + 96: the odd 33 banks 9696. Finally 1×192=1921 \times 192 = 192: the odd 11 banks 192192 and the table ends. Total banked: 24+96+192=31224 + 96 + 192 = 312. A row banks its right number exactly when its left number is odd — so the recipe “keep the odd-left rows and add” is precisely the bookkeeping of distributivity.

11. 1+4+8=131 + 4 + 8 = 13. For 2121, the surviving rows were those of 1717, 68=4×1768 = 4 \times 17 and 272=16×17272 = 16 \times 17: the doublings 1+4+16=211 + 4 + 16 = 21.

12. 25=16+8+125 = 16 + 8 + 1 and 42=32+8+242 = 32 + 8 + 2.

13. Take the largest doubling number not exceeding the target and subtract it; what remains is smaller, and smaller than the doubling number just used (otherwise a bigger one would have fitted). Repeating, the remainder strictly shrinks and must reach 00: the process stops, and the doublings used are all different. For 100100: 6464 fits (3636 left), 3232 fits (44 left), 44 fits (00 left): 100=64+32+4100 = 64 + 32 + 4.

14. Doubling table of 3535: 1351 \to 35, 2702 \to 70, 41404 \to 140, 82808 \to 280, 1656016 \to 560. Since 19=16+2+119 = 16 + 2 + 1, pick those rows: 560+70+35=665560 + 70 + 35 = 665. Check: 19×35=66519 \times 35 = 665.

15. The same three as the scribe and the peasant: 24+96+19224 + 96 + 192 — the doublings of 2424 selected by 13=1+4+813 = 1 + 4 + 8. Writing numbers as sums of doublings is exactly writing them with 00s and 11s; the full story is told in Problem 56.1.