Algebra Play

Algebra is not only a way of solving equations. It is also a way of explaining. In this chapter you use a letter to show why a number trick always ends on the same answer, why the top of a pyramid depends on its bottom row, what a block of dates on a calendar hides, and why some totals are always divisible by 9, by 11 or by 37.

Why a Number Trick Always Works

Quick answer Somebody guesses your answer without knowing your number. This section writes the steps of a trick with a letter, shows the starting number cancelling out, and then builds new tricks to order.

Here is a trick you can try on anyone. Think of a number, and keep it to yourself. Double it. Add 4. Halve the answer. Now take away the number you first thought of. Your answer is 2. It is always 2, and the person doing the trick never had to know what you started with.

Test it once. Start with 9: doubling gives 18, adding 4 gives 22, halving gives 11, and 11 − 9 = 2. Test it again with 25: doubling gives 50, adding 4 gives 54, halving gives 27, and 27 − 25 = 2. Two successes are encouraging, but they are not a reason. There are endlessly many numbers you could have started with, and you cannot try them all.

So do the steps once more, this time with a letter in place of the number. Let the number be x. Doubling gives 2x. Adding 4 gives 2x + 4. Halving gives (2x + 4) ÷ 2 = x + 2. Taking away the number you started with gives x + 2 − x = 2. The x has vanished, and that is the whole secret. The instructions were built so that the starting number cancels itself out, so what is left cannot depend on it. One line of algebra has settled every case at once.

Once you can see inside a trick you can build your own. Keep the same steps but add k instead of 4. Halving now gives x + k ÷ 2, and the last step leaves k ÷ 2. So the answer is always half of whatever you told the person to add. Tell them to add 6 and the answer will be 3; tell them to add 10 and the answer will be 5. Nothing else in the trick has to change.

A longer trick. Think of a number, add 7, multiply by 3, subtract 6, divide by 3, and then subtract the number you started with. Follow it with x. Adding 7 gives x + 7. Multiplying by 3 gives 3(x + 7) = 3x + 21. Subtracting 6 gives 3x + 15. Dividing by 3 gives x + 5. Subtracting the start leaves 5. Try it with 4: 11, then 33, then 27, then 9, and 9 − 4 = 5. Try it with 12: 19, then 57, then 51, then 17, and 17 − 12 = 5.

Generalise this one too. If the second instruction is add k, the working becomes (3(x + k) − 6) ÷ 3 − x = x + k − 2 − x = k − 2. The answer is always 2 less than the number you asked for. So if you want the trick to land on 8, tell your friend to add 10. Check with a start of 4: 14, then 42, then 36, then 12, and 12 − 4 = 8, exactly as promised.

A trick where the letter does not cancel. Not every trick is built to lose the starting number. Here is one that keeps it. Think of the number of the month you were born in, multiply it by 5, add 6, multiply by 4, add 9, multiply by 5, and finally add the day of the month. Tell me the answer and I will tell you your birthday. Let the month be M and the day be D. Then 5M becomes 5M + 6, which becomes 4(5M + 6) = 20M + 24, which becomes 20M + 33, which becomes 5(20M + 33) = 100M + 165, and adding the day gives 100M + 165 + D.

All the trickster does is subtract 165, which leaves 100M + D. Since the day is never more than 31, the last two digits are the day and whatever is in front is the month. Someone born on the 15th of the eighth month works out 40, then 46, then 184, then 193, then 965, then 980; and 980 − 165 = 815, which reads as month 8 and day 15. Someone born on the 3rd of the first month gets 5, then 11, then 44, then 53, then 265, then 268; and 268 − 165 = 103, which is month 1 and day 3.

Two lessons come out of all this. Testing a trick on a few numbers only tells you about those few numbers. Writing the steps with a letter tells you about every number there is. And when the expression you end up with contains no letter at all, that is a promise that the answer can never depend on what anybody chose.

(2x + 4) / 2 - x = 2 The classic trick. The x cancels at the last step, so the answer never depends on the number chosen.
(2x + k) / 2 - x = k / 2 The same trick with any number k added. Choose k to decide the answer: k = 10 gives 5.
(3(x + k) - 6) / 3 - x = k - 2 The longer trick. With k = 7 the answer is 5; to make the answer 8, ask for k = 10.
5(4(5M + 6) + 9) + D = 100M + 165 + D The birthday trick, with M the month number and D the day. Subtract 165 to read off 100M + D.
Remember
  • Write each instruction of a trick as an expression in x; if x cancels, everyone gets the same answer.
  • Double, add 4, halve, subtract the start gives (2x + 4) / 2 - x = 2 whatever x is.
  • Adding k instead of 4 in that trick makes the answer k / 2, so adding 10 makes the answer 5.
  • Add 7, times 3, subtract 6, divide by 3, subtract the start gives 5, and adding k instead gives k - 2.
  • Testing a few numbers only checks those numbers; algebra proves the trick for all of them.
  • In the birthday trick the answer is 100M + 165 + D, so subtracting 165 gives back the month and the day.

Number Pyramids

Quick answer Each cell is the sum of the two below it. Writing the bottom row with letters shows which cell matters most, fills in missing entries, and proves when a pyramid cannot be built at all.

A number pyramid starts with a bottom row of numbers. Every cell above is the sum of the two cells directly below it, and you keep going until one cell is left at the top. Take the bottom row 3, 5, 4. The row above is 3 + 5 = 8 and 5 + 4 = 9, and the top is 8 + 9 = 17.

Now build the same pyramid with letters. Let the bottom row be a, b, c. The row above is a + b and b + c. The top is (a + b) + (b + c) = a + 2b + c. Test the rule on the numbers above: 3 + 2 × 5 + 4 = 3 + 10 + 4 = 17, which is the top we already found.

The 2 in front of b is worth staring at. The middle number is used twice on the way up, once by each of the two cells sitting above it, while the numbers at the ends are used only once. So the middle cell has twice the pull of either end. Raise the middle from 5 to 6 and the top goes from 17 to 19, a rise of 2; check it directly with 3 + 6 = 9 and 6 + 4 = 10, giving 19. Raise the left end from 3 to 4 instead and the top only goes to 18, a rise of 1. If you want the top as large as possible and you may arrange the same three numbers as you like, put the biggest one in the middle.

A wider pyramid. With four numbers a, b, c, d at the bottom, the second row is a + b, b + c and c + d. The third row is (a + b) + (b + c) = a + 2b + c and (b + c) + (c + d) = b + 2c + d. Adding those two gives the top: a + 3b + 3c + d. Now the two inner cells count three times each. Test it with the bottom row 2, 1, 4, 3. The second row is 3, 5, 7; the third row is 8, 12; the top is 20. The rule gives 2 + 3 × 1 + 3 × 4 + 3 = 2 + 3 + 12 + 3 = 20, which agrees.

Working backwards. Suppose the bottom row is 5, then a gap, then 8, and you are told the top is 27. Call the missing number x. The top is 5 + 2x + 8 = 2x + 13, so 2x + 13 = 27, which gives 2x = 14 and x = 7. Check by building it: 5, 7, 8 gives 12 and 15, and 12 + 15 = 27. Here is the second use of algebra in this chapter. First you generalise the pyramid into an expression; then you set that expression equal to a given number and solve.

When it cannot be done. Keep the ends 5 and 8 but ask for a top of 20. Then 2x + 13 = 20, so 2x = 7 and x = 3.5. If the pyramid is meant to hold whole numbers, there is no answer at all. The expression even explains why. When x is a whole number, 2x is even, so 2x + 13 is always odd; with ends of 5 and 8 the top can only ever be an odd number, and 20 is even. No amount of searching would have found a filling, and now you know not to look.

One more for practice. The bottom row is 6, then a gap, then 9, and the top is 31. The top is 6 + 2x + 9 = 2x + 15, so 2x = 16 and x = 8. Building 6, 8, 9 gives 14 and 17, and 14 + 17 = 31. If instead the top were 30, you would need 2x = 15 and x = 7.5, so that pyramid has no whole-number filling either.

The point is not the pyramids. It is that one short expression answers every question you could ask about them: what the top will be, which cell to change, what a missing entry must be, and whether the puzzle you have been handed is possible in the first place.

Each cell = sum of the two cells directly below it The building rule for every number pyramid. Work upwards one row at a time.
Three-row pyramid: top = a + 2b + c a, b, c is the bottom row. The middle entry is counted twice, so it has twice the effect.
Four-row pyramid: top = a + 3b + 3c + d a, b, c, d is the bottom row. The two inner entries are each counted three times.
Missing entry: solve a + 2x + c = top Set the expression for the top equal to the given number and solve for the gap.
Remember
  • In a number pyramid each cell is the sum of the two cells directly below it.
  • With bottom row a, b, c the top is a + 2b + c, so the middle number counts twice.
  • Raising the middle of the bottom row by 1 raises the top by 2; raising an end raises the top by only 1.
  • With bottom row a, b, c, d the top is a + 3b + 3c + d, so the two inner numbers count three times each.
  • A missing entry gives an equation: 5, x, 8 with top 27 means 2x + 13 = 27, so x = 7.
  • If solving gives a fraction there is no whole-number filling: ends 5 and 8 can never give a top of 20.

Fun with Grids and Calendar Magic

Quick answer A calendar is a grid with a rule: one step right adds 1 and one step down adds 7. Naming one date with a letter turns blocks of dates into totals, missing dates and diagonal patterns.

A calendar month is a grid in which each row is a week. That gives it two simple rules: moving one step to the right adds 1 to the date, and moving one step down adds 7. Those two rules are all the algebra you need here.

A block of four dates. Draw a square around any four dates that form a 2 by 2 block. Call the date in the top left corner a. The date to its right is a + 1, the date below it is a + 7, and the date diagonally across is a + 8. Add the four: a + (a + 1) + (a + 7) + (a + 8) = 4a + 16. Try it with a = 9. The block is 9, 10, 16, 17, and 9 + 10 + 16 + 17 = 52, while the rule gives 4 × 9 + 16 = 52.

That expression is a trick waiting to happen. Ask a friend to ring any 2 by 2 block of dates and tell you only the total. Suppose they say 72. Then 4a + 16 = 72, so 4a = 56 and a = 14, and you can announce the dates 14, 15, 21 and 22 without seeing the calendar. Check the total: 14 + 15 + 21 + 22 = 72.

Some totals are impossible, and the same expression shows it. Since 4a + 16 = 4(a + 4), the total of a block is always a multiple of 4. If a friend claims a total of 62, you can say straight away that they have made a mistake, because 62 is not a multiple of 4. Solving would give 4a = 46 and a = 11.5, which is not a date at all.

The diagonals. Multiply the two dates on one diagonal and then the two on the other. One diagonal gives a(a + 8) = a2 + 8a. The other gives (a + 1)(a + 7) = a2 + 8a + 7. The two answers differ by exactly 7, whatever a is, and the a2 + 8a part never has to be worked out. With the block starting at 9: 9 × 17 = 153 and 10 × 16 = 160, and 160 − 153 = 7. With the block starting at 14: 14 × 22 = 308 and 15 × 21 = 315, and again the gap is 7.

A bigger block. For a 3 by 3 block it pays to name the middle date rather than the corner. Call the middle date c. The three dates in its own row are c − 1, c and c + 1. The row above is c − 8, c − 7 and c − 6, and the row below is c + 6, c + 7 and c + 8. Add all nine and every offset pairs off with its opposite: −8 with +8, −7 with +7, −6 with +6, −1 with +1. What is left is 9c. So the total of a 3 by 3 block of dates is always nine times the middle date. A block centred on 16 contains 8, 9, 10, 15, 16, 17, 22, 23 and 24, and those add to 144, which is 9 × 16. If a friend gives you a total of 99, the middle date is 99 ÷ 9 = 11, and the block runs 3, 4, 5, 10, 11, 12, 17, 18, 19, which does indeed total 99.

Notice what naming the middle cell did. Had you called the top left date a instead, the nine dates would have been a, a + 1, a + 2, a + 7, a + 8, a + 9, a + 14, a + 15 and a + 16, and the total would have come to 9a + 72. That is correct, but 9c is far easier to use. Choosing where to put your letter is part of the skill.

The same idea on another grid. On a hundred square with ten numbers in each row, moving down adds 10 instead of 7. A 2 by 2 block with n in the top left holds n, n + 1, n + 10 and n + 11, so the total is 4n + 22, and the diagonal products differ by 10 because (n + 1)(n + 10) − n(n + 11) = 10. Take n = 34: the block is 34, 35, 44, 45, which adds to 158, and 4 × 34 + 22 = 158. The products are 34 × 45 = 1530 and 35 × 44 = 1540, a gap of 10 as promised. Change the shape of the grid and only one number in the algebra changes.

2 by 2 block of dates: a + (a + 1) + (a + 7) + (a + 8) = 4a + 16 a is the top left date. The total is always a multiple of 4, since 4a + 16 = 4(a + 4).
Diagonal products: (a + 1)(a + 7) - a(a + 8) = 7 The two diagonal products of a 2 by 2 calendar block differ by 7 whatever the dates are.
3 by 3 block of dates: total = 9c c is the middle date. Written from the top left corner instead the total is 9a + 72.
2 by 2 block on a ten-column grid: total = 4n + 22 Moving down adds 10 here instead of 7, and the diagonal products differ by 10.
Remember
  • On a calendar one step right adds 1 to the date and one step down adds 7.
  • A 2 by 2 block with top left date a holds a, a + 1, a + 7 and a + 8, and totals 4a + 16.
  • A total of 72 gives 4a = 56 and a = 14, so the block is 14, 15, 21 and 22.
  • Since 4a + 16 = 4(a + 4), a block total is always a multiple of 4, so 62 is impossible.
  • The two diagonal products of a 2 by 2 block of dates always differ by 7.
  • Naming the middle date c makes a 3 by 3 block total 9c, so a total of 99 means the middle date is 11.

The Largest Product

Quick answer Three digits can be arranged in six ways to make a two-digit number times a one-digit number. Algebra says which arrangement wins, by how much, and when two arrangements tie.

Take three different digits, say 2, 3 and 5. Use each of them once to make a two-digit number and a one-digit number, then multiply the two together. Which arrangement gives the largest product? You could guess, but with only six arrangements you can simply list them all.

  • 32 × 5 = 160
  • 52 × 3 = 156
  • 23 × 5 = 115
  • 53 × 2 = 106
  • 25 × 3 = 75
  • 35 × 2 = 70

The winner is 32 × 5 = 160. Look at what the winning arrangement did: the biggest digit, 5, was left standing alone as the multiplier; the next biggest, 3, took the tens place; and the smallest, 2, was pushed into the units place where it counts for least. That is a rule worth testing. With the digits 1, 4 and 7 it predicts 41 × 7, which is 287, and the full list agrees: 71 × 4 = 284, 14 × 7 = 98, 74 × 1 = 74, 17 × 4 = 68 and 47 × 1 = 47.

Why the rule works. Testing two sets of digits is not a proof, so write the digits as letters. Let them be a, b and c with a the largest and c the smallest, so a > b > c. The smallest digit clearly belongs in the units place, because that place is worth only 1 while the tens place is worth 10. That leaves two serious candidates: put a alone and b in the tens place, giving (10b + c) × a, or put b alone and a in the tens place, giving (10a + c) × b.

Now expand both. The first is 10ab + ac. The second is 10ab + bc. The 10ab is exactly the same in the two products, so it cannot decide anything, and the whole contest comes down to ac against bc. The difference is ac − bc = c(a − b). Since a is bigger than b, the bracket a − b is positive, so as long as c is not 0 the first arrangement wins. That settles it for every set of digits at once: the biggest digit stands alone.

The expression c(a − b) also tells you the size of the gap before you multiply anything. For 2, 3 and 5 it gives 2 × (5 − 3) = 4, and indeed 160 − 156 = 4. For 1, 4 and 7 it gives 1 × (7 − 4) = 3, and 287 − 284 = 3. For 3, 6 and 8 it gives 3 × (8 − 6) = 6, and the two products are 63 × 8 = 504 and 83 × 6 = 498, which do differ by 6.

The exception hiding in the algebra. The gap is c(a − b), and that is 0 when c is 0. So if the smallest of the three digits is zero the two arrangements are not merely close, they are exactly equal. Try 0, 3 and 5: 30 × 5 = 150 and 50 × 3 = 150. There are two best answers, not one. It is worth being fussy about the word always, because the algebra tells you precisely when the rule holds and when it does not.

A zero brings one more caution. A two-digit number cannot start with 0, so 05 is not allowed. With the digits 0, 3 and 5 only four arrangements are legal at all: 30 × 5, 50 × 3, 35 × 0 and 53 × 0, and the last two are worth nothing.

Listing six cases was easy enough here. The reason for doing the algebra is that it works for every set of three digits without any listing, it tells you how much you win by, and it warns you about the one case where the rule breaks down.

Two-digit number with digits t and u = 10t + u Place value written with letters. The tens digit is worth 10 each, the units digit only 1 each.
(10b + c)a - (10a + c)b = c(a - b) The 10ab cancels, so the difference between the two best arrangements is c(a - b).
Largest product rule: biggest digit alone, next biggest in the tens place True whenever the smallest digit c is not 0. If c = 0 the two arrangements give equal products.
Remember
  • Three digits make six arrangements of a two-digit number times a one-digit number; with 2, 3 and 5 the best is 32 x 5 = 160.
  • The rule is: the largest digit stands alone, the next largest takes the tens place, the smallest takes the units place.
  • Writing the digits as a > b > c, the contest is between (10b + c)a and (10a + c)b.
  • Both products contain 10ab, so the winner is decided by c(a - b), which is positive when c is not 0.
  • The gap is predicted exactly: for 3, 6 and 8 it is 3(8 - 6) = 6, and 504 - 498 = 6.
  • If the smallest digit is 0 the gap is 0 and two arrangements tie: 30 x 5 = 150 = 50 x 3.

Decoding Divisibility Tricks

Quick answer Reverse a number and subtract, and you always get a multiple of 9. Writing numbers in place value form with letters explains that, the 11 trick, the 37 trick and the digit-sum test.

Every trick in this section comes from one idea: write a number in place value form using letters. A two-digit number whose tens digit is a and whose units digit is b is worth 10a + b. It is not a times b, and the letters written side by side are not the digits side by side. The number with the digits swapped round is 10b + a.

Reverse and subtract. Say the tens digit is the bigger of the two, so a is more than b and 10a + b is the larger number. Take the smaller away from the larger: (10a + b) − (10b + a) = 10a + b − 10b − a = 9a − 9b = 9(a − b). Whatever digits you started with, the answer is 9 times something, so it is always a multiple of 9. Test it with 72 and 27: the difference is 45, which is 9 × 5, and the digits differ by 7 − 2 = 5. Test it with 63 and 36: the difference is 27, which is 9 × 3, and 6 − 3 = 3. The trick even gives you a bonus, because dividing the answer by 9 hands back the difference of the two digits.

Reverse and add. This time (10a + b) + (10b + a) = 11a + 11b = 11(a + b), so the total is always a multiple of 11, and dividing it by 11 gives the sum of the digits. With 72 and 27 the total is 99, which is 11 × 9, and the digits do add to 9.

Three digits. A three-digit number is 100a + 10b + c and its reverse is 100c + 10b + a. Subtracting, the middle digit disappears completely: (100a + 10b + c) − (100c + 10b + a) = 99a − 99c = 99(a − c). So the answer is always a multiple of 99, and since 99 = 9 × 11 it is a multiple of both 9 and 11. Try 852 and 258: the difference is 594, which is 99 × 6, and the outer digits differ by 8 − 2 = 6. The middle digit 5 played no part at all, which is why 731 − 137 gives the same 594.

The 37 trick. Start with three digits a, b and c and write the three numbers you get by moving the leading digit to the end each time: 100a + 10b + c, then 100b + 10c + a, then 100c + 10a + b. Add all three. Each digit gets multiplied once by 100, once by 10 and once by 1, so each contributes 111 of itself, and the total is 111(a + b + c). Because 111 = 3 × 37, that total is always a multiple of 3 and always a multiple of 37, however the digits were chosen. With the digits 1, 5 and 3: 153 + 531 + 315 = 999, which is 111 × 9 and also 37 × 27. With 4, 7 and 2: 472 + 724 + 247 = 1443, which is 111 × 13 and also 37 × 39.

Why the digit-sum test for 9 works. You already know that a number is divisible by 9 when its digits add to a multiple of 9. Place value explains it. Split a two-digit number as 10a + b = 9a + (a + b). The 9a part is a multiple of 9 no matter what, so the whole number is a multiple of 9 exactly when a + b is. The same split works for three digits: 100a + 10b + c = 99a + 9b + (a + b + c), and since 99a + 9b is already a multiple of 9, everything depends on the digit sum a + b + c.

A six-digit surprise. Write any three-digit number twice over, such as 314314. That number is 314 × 1000 + 314 = 314 × 1001, and 1001 = 7 × 11 × 13. So dividing by 7, then by 11, then by 13 must bring you back to where you began: 314314 ÷ 7 = 44902, then 44902 ÷ 11 = 4082, then 4082 ÷ 13 = 314. It looks like magic and it is really just factorising 1001.

None of these results needed a single new fact about numbers. Each one is place value written with letters and then tidied up.

(10a + b) - (10b + a) = 9(a - b) Reverse a two-digit number and subtract: the answer is a multiple of 9, and dividing by 9 gives a - b.
(10a + b) + (10b + a) = 11(a + b) Reverse and add instead: the answer is a multiple of 11, and dividing by 11 gives the digit sum.
(100a + 10b + c) - (100c + 10b + a) = 99(a - c) For three digits the middle digit cancels, so the answer is a multiple of 99, hence of 9 and of 11.
(100a + 10b + c) + (100b + 10c + a) + (100c + 10a + b) = 111(a + b + c) Each digit is used once in each place. Since 111 = 3 x 37, the total is always divisible by 37.
100a + 10b + c = 99a + 9b + (a + b + c) Why the digit-sum test for 9 works: 99a + 9b is already a multiple of 9.
Remember
  • A two-digit number with tens digit a and units digit b is worth 10a + b, and its reverse is 10b + a.
  • (10a + b) - (10b + a) = 9(a - b), so reversing and subtracting always gives a multiple of 9.
  • (10a + b) + (10b + a) = 11(a + b), so reversing and adding always gives a multiple of 11.
  • For three digits the difference is 99(a - c), so the middle digit makes no difference at all.
  • Cycling the digits of a three-digit number and adding gives 111(a + b + c), and 111 = 3 x 37.
  • 10a + b = 9a + (a + b) explains the digit-sum test: only a + b decides divisibility by 9.

Turning a Puzzle into an Equation

Quick answer When the letter does not cancel, the puzzle has an answer to find. This section forms equations from puzzles, solves them by balancing, checks them, and shows when there is no answer at all.

In the tricks at the start of this chapter the letter always cancelled, and that was the point. Sometimes it does not cancel, and that is just as useful, because then the expression can be set equal to a known number and solved. The unknown that would not go away turns out to be the thing you were asked for.

The doubling toll. A traveller sets out with some coins and has to cross three bridges. At each bridge a genie doubles the coins in her purse, and she then pays a toll of 8 coins. Let her start with x coins. After the first bridge she has 2x − 8. After the second she has 2(2x − 8) − 8 = 4x − 16 − 8 = 4x − 24. After the third she has 2(4x − 24) − 8 = 8x − 48 − 8 = 8x − 56.

Suppose her purse is empty at the end. Then 8x − 56 = 0, so 8x = 56 and x = 7. Always check against the story rather than only against the equation: 7 coins double to 14, and paying 8 leaves 6; 6 double to 12, and paying 8 leaves 4; 4 double to 8, and paying 8 leaves 0. She started with 7 coins.

Change the ending and the same expression answers again. If she finishes with 8 coins, then 8x − 56 = 8, so 8x = 64 and x = 8. There is something pleasing about that answer: 8 coins double to 16, and the toll of 8 brings the purse straight back to 8, so nothing changes at any bridge. Algebra says the same thing in one line, because 2x − 8 = x gives x = 8.

The rules for solving. An equation is a balance, and the two sides must stay equal, so whatever you do you must do to both sides: add the same number, subtract the same number, multiply by the same non-zero number, or divide by the same non-zero number. Transposing is only a quicker wording of the same moves. A term that crosses the equals sign changes its sign, and a number that multiplies on one side crosses over as a divisor.

An equation with a bracket. Somebody following the earlier trick was told to think of a number, add 7 and multiply by 3, then subtract 6, and they stopped there with 45. What was their number? The instructions give 3(x + 7) − 6 = 45. Open the bracket: 3x + 21 − 6 = 45, which tidies to 3x + 15 = 45. Then 3x = 30 and x = 10. Check it through the story: 10 + 7 = 17, and 17 × 3 = 51, and 51 − 6 = 45.

Letters on both sides. Solve 5x − 3 = 3x + 9. Collect the letters on one side and the plain numbers on the other: 5x − 3x = 9 + 3, so 2x = 12 and x = 6. Check each side of the original separately. The left side is 5 × 6 − 3 = 27 and the right side is 3 × 6 + 9 = 27, so the two agree.

Clearing fractions. Solve x ÷ 2 + x ÷ 3 = 15. The denominators are 2 and 3, whose LCM is 6, so multiply every term on both sides by 6. That gives 3x + 2x = 90, so 5x = 90 and x = 18. Check: 18 ÷ 2 = 9 and 18 ÷ 3 = 6, and 9 + 6 = 15. The word every is doing real work in that instruction, because the 15 has no fraction in it but must still be multiplied by 6.

When there is no answer. Could the traveller finish with exactly 3 coins? That needs 8x − 56 = 3, so 8x = 59 and x = 7.375. Coins come in whole numbers, so no starting amount can leave her with 3. This is the same situation as a pyramid whose top would need a bottom entry of 3.5, or a block of dates whose total is not a multiple of 4. In each case the algebra does not just fail to find an answer, it proves that no answer exists, which is a much stronger statement than not having found one yet.

Three habits will carry you through this whole chapter. Name the unknown clearly and say what it counts. Write every other quantity in terms of that one letter. And when you have an answer, put it back into the original story, not merely into the line of working just above it, because an arithmetic slip early on will otherwise survive all the way to the end.

Double and pay 8, three times: 8x - 56 2x - 8, then 4x - 24, then 8x - 56. Set it equal to the final amount and solve for x.
If a = b then a + c = b + c and a - c = b - c The balance rule for adding and subtracting. Both sides must be treated the same way.
If a = b then ac = bc and a / c = b / c, with c not 0 Multiplying or dividing both sides by the same non-zero number, applied to every term.
ax + b = c gives x = (c - b) / a The general one-variable linear equation, provided a is not 0. Transpose b first, then divide by a.
Check by substituting the answer back into the original story Working through the words catches a slip that checking only the last line of algebra would miss.
Remember
  • If the letter cancels the puzzle has a fixed answer; if it does not, set the expression equal to a number and solve.
  • Doubling and paying a toll of 8 three times turns x coins into 8x - 56.
  • Ending with nothing gives 8x - 56 = 0, so x = 7, and the walk-through 7, 6, 4, 0 confirms it.
  • An equation is a balance: do the same thing to both sides, and a term changes sign as it crosses the equals sign.
  • Clear fractions by multiplying every term, whole numbers included, by the LCM of the denominators.
  • A fractional answer to a whole-number puzzle proves there is no answer: ending with 3 coins needs x = 7.375.

The formula sheet

Every formula in this chapter, in one place — screenshot it before your exam.

(2x + 4) / 2 - x = 2
(2x + k) / 2 - x = k / 2
(3(x + k) - 6) / 3 - x = k - 2
5(4(5M + 6) + 9) + D = 100M + 165 + D
Each cell = sum of the two cells directly below it
Three-row pyramid: top = a + 2b + c
Four-row pyramid: top = a + 3b + 3c + d
Missing entry: solve a + 2x + c = top
2 by 2 block of dates: a + (a + 1) + (a + 7) + (a + 8) = 4a + 16
Diagonal products: (a + 1)(a + 7) - a(a + 8) = 7
3 by 3 block of dates: total = 9c
2 by 2 block on a ten-column grid: total = 4n + 22
Two-digit number with digits t and u = 10t + u
(10b + c)a - (10a + c)b = c(a - b)
Largest product rule: biggest digit alone, next biggest in the tens place
(10a + b) - (10b + a) = 9(a - b)
(10a + b) + (10b + a) = 11(a + b)
(100a + 10b + c) - (100c + 10b + a) = 99(a - c)
(100a + 10b + c) + (100b + 10c + a) + (100c + 10a + b) = 111(a + b + c)
100a + 10b + c = 99a + 9b + (a + b + c)
Double and pay 8, three times: 8x - 56
If a = b then a + c = b + c and a - c = b - c
If a = b then ac = bc and a / c = b / c, with c not 0
ax + b = c gives x = (c - b) / a
Check by substituting the answer back into the original story

Test yourself

Tap an answer to check it instantly — you'll see why it's right, and what to revise if it isn't.

0 correct · 0/12 answered
Q1

Think of a number, double it, add 4, halve the result, then subtract the number you first thought of. What is the answer?

Q2

In a number pyramid each cell is the sum of the two cells directly below it. If the bottom row is a, b, c, what is the top cell?

Q3

The bottom row of a three-row pyramid is 5, x, 8 and the top cell is 27. What is x?

Q4

In a three-row number pyramid, increasing which bottom entry by 1 raises the top by 2?

Q5

Four dates on a calendar form a 2 by 2 block with a in the top left corner. What do they add up to?

Q6

A 2 by 2 block of dates on a calendar adds up to 72. Which date is in the top left corner?

Q7

A 3 by 3 block of dates on a calendar adds up to 99. What is the date in the middle of the block?

Q8

Using the digits 2, 3 and 5 once each to make a two-digit number times a one-digit number, what is the largest product?

Q9

A two-digit number has tens digit a and units digit b. What does (10a + b) - (10b + a) always come to?

Q10

The three numbers 100a + 10b + c, 100b + 10c + a and 100c + 10a + b are added. What is the total?

Q11

At each of three bridges a traveller's coins are doubled and she then pays a toll of 8 coins. She ends with nothing. How many coins did she start with?

Q12

Solve 3(x + 7) - 6 = 45.

NCERT solutions & previous-year questions

Step-by-step model answers — tap a question to reveal the full solution.

NCERT questions 8

1 A friend says: think of a number, add 7, multiply by 3, subtract 6, divide by 3, then subtract the number you started with. Show that the answer is always 5. Then change one instruction so that the answer is always 8.

Follow the steps with a letter. Let the number be x.

add 7: x + 7
multiply by 3: 3(x + 7) = 3x + 21
subtract 6: 3x + 15
divide by 3: (3x + 15) ÷ 3 = x + 5
subtract the start: x + 5 − x = 5

The x cancels at the last step, so the answer is 5 whatever number was chosen.

Test it. Starting with 4: 11, then 33, then 27, then 9, and 9 − 4 = 5. Starting with 12: 19, then 57, then 51, then 17, and 17 − 12 = 5.

Change one instruction. Replace add 7 by add k. Then the working becomes (3(x + k) − 6) ÷ 3 − x = x + k − 2 − x = k − 2, so the answer is always 2 less than the number added. For an answer of 8 we need k − 2 = 8, that is k = 10: tell your friend to add 10 instead of 7.

Check the new trick with 4: 14, then 42, then 36, then 12, and 12 − 4 = 8.

2 Each cell of a number pyramid is the sum of the two cells directly below it. Complete the pyramid whose bottom row is 2, 1, 4, 3, and write the top cell in terms of a bottom row a, b, c, d.

Build it upwards.
bottom row: 2, 1, 4, 3
next row: 2 + 1 = 3, 1 + 4 = 5, 4 + 3 = 7
next row: 3 + 5 = 8, 5 + 7 = 12
top: 8 + 12 = 20

Now with letters. Bottom row a, b, c, d.
next row: a + b, b + c, c + d
next row: (a + b) + (b + c) = a + 2b + c, and (b + c) + (c + d) = b + 2c + d
top: (a + 2b + c) + (b + 2c + d) = a + 3b + 3c + d

Check the rule against the numbers. 2 + 3 × 1 + 3 × 4 + 3 = 2 + 3 + 12 + 3 = 20, which is the top found above.

The two inner entries count three times each, so changing one of them moves the top three times as much as changing an end entry does.

3 The bottom row of a three-row pyramid is 6, x, 9 and the top cell is 31. Find x. Could the top cell have been 30 if every entry is a whole number?

Write the top in terms of x. The row above is 6 + x and x + 9, so the top is (6 + x) + (x + 9) = 2x + 15.

Form and solve the equation. 2x + 15 = 31, so 2x = 31 − 15 = 16 and x = 8.

Check. The bottom row 6, 8, 9 gives 14 and 17, and 14 + 17 = 31, which is the top we were given.

Could the top be 30? That needs 2x + 15 = 30, so 2x = 15 and x = 7.5, which is not a whole number. So no, there is no whole-number filling.

The expression explains why. When x is a whole number 2x is even, so 2x + 15 is always odd. With ends of 6 and 9 the top can only ever be odd, and 30 is even.

4 Four dates on a calendar form a 2 by 2 block, with a in the top left corner. (i) Show that the total is 4a + 16. (ii) Find the block whose total is 92. (iii) Explain why no block can total 62.

(i) The total. Moving one step right adds 1 to a date and one step down adds 7, so the four dates are a, a + 1, a + 7 and a + 8. Adding them: a + (a + 1) + (a + 7) + (a + 8) = 4a + 16.

(ii) Total 92. 4a + 16 = 92, so 4a = 76 and a = 19. The block is 19, 20, 26 and 27. Check: 19 + 20 + 26 + 27 = 92.

(iii) Why 62 is impossible. 4a + 16 = 4(a + 4), so the total of any such block is a multiple of 4. Now 62 ÷ 4 = 15.5, so 62 is not a multiple of 4 and no block can give it. Solving anyway would give 4a = 46 and a = 11.5, which is not a date.

5 Show that the nine dates in a 3 by 3 block on a calendar always add up to nine times the middle date, and find the block whose total is 144.

Name the middle date. Call it c. In its own row the dates are c − 1, c and c + 1. The row above is one week earlier, so it is c − 8, c − 7 and c − 6. The row below is c + 6, c + 7 and c + 8.

Add all nine. The offsets cancel in pairs: −8 with +8, −7 with +7, −6 with +6 and −1 with +1. Nine copies of c are left, so the total is 9c.

Total 144. 9c = 144, so c = 144 ÷ 9 = 16. The block is 8, 9, 10 in the first row, 15, 16, 17 in the second and 22, 23, 24 in the third.

Check: 8 + 9 + 10 = 27, 15 + 16 + 17 = 48 and 22 + 23 + 24 = 69, and 27 + 48 + 69 = 144.

Note that the total must always be a multiple of 9, so a claimed total such as 100 would be impossible.

6 Use the digits 1, 4 and 7 once each to make a two-digit number times a one-digit number. Which arrangement gives the largest product? Explain with algebra, and say what changes if the digits are 0, 3 and 5.

List the six arrangements. 41 × 7 = 287, 71 × 4 = 284, 14 × 7 = 98, 74 × 1 = 74, 17 × 4 = 68 and 47 × 1 = 47. The largest is 41 × 7 = 287.

The rule. The largest digit stands alone as the multiplier, the next largest takes the tens place and the smallest takes the units place.

Why. Let the digits be a, b, c with a > b > c. The smallest belongs in the units place because that place is worth only 1. That leaves (10b + c) × a against (10a + c) × b. Expanding gives 10ab + ac and 10ab + bc. The 10ab is common, so the difference is ac − bc = c(a − b), which is positive whenever c is not 0. So putting the largest digit alone wins.

Check the gap. Here c(a − b) = 1 × (7 − 4) = 3, and 287 − 284 = 3.

With 0, 3 and 5. Now c = 0, so the gap c(a − b) is 0 and the two arrangements tie: 30 × 5 = 150 and 50 × 3 = 150. There are two best answers. Also a two-digit number cannot begin with 0, so only 30 × 5, 50 × 3, 35 × 0 and 53 × 0 are allowed at all.

7 Show that the difference between a two-digit number and the number formed by reversing its digits is always a multiple of 9, and that their sum is always a multiple of 11. Check both with 63.

Write the numbers in place value form. Let the tens digit be a and the units digit be b. The number is 10a + b and the reversed number is 10b + a.

The difference. (10a + b) − (10b + a) = 10a + b − 10b − a = 9a − 9b = 9(a − b), which is 9 times a whole number and so a multiple of 9.

The sum. (10a + b) + (10b + a) = 11a + 11b = 11(a + b), which is a multiple of 11.

Check with 63. Here a = 6 and b = 3, and the reversed number is 36.
Difference: 63 − 36 = 27 = 9 × 3, and a − b = 6 − 3 = 3.
Sum: 63 + 36 = 99 = 11 × 9, and a + b = 6 + 3 = 9.

Dividing the difference by 9 hands back the difference of the digits, and dividing the sum by 11 hands back the sum of the digits.

8 From the digits 4, 7 and 2 form the numbers 472, 724 and 247 and add them. Show that a sum built this way is always a multiple of 37.

Add the three numbers. 472 + 724 = 1196, and 1196 + 247 = 1443.

Now with letters. The three numbers are formed by moving the leading digit to the end each time, so with digits a, b, c they are 100a + 10b + c, then 100b + 10c + a, then 100c + 10a + b.

Adding them, each digit appears once in the hundreds place, once in the tens place and once in the units place, so each contributes 100 + 10 + 1 = 111 of itself:
total = 111a + 111b + 111c = 111(a + b + c).

Why 37. 111 = 3 × 37, so the total is always a multiple of 3 and always a multiple of 37, whatever the three digits are.

Check: a + b + c = 4 + 7 + 2 = 13, and 111 × 13 = 1443, which matches the sum found above. Also 1443 = 37 × 39.

Previous-year board questions 6

Q1 Show that the following trick always gives 3: think of a number, add 5, double the result, subtract 4, halve what is left, then subtract the number you first thought of. 3 marks mark

Let the number be x and follow the instructions.

add 5: x + 5
double: 2(x + 5) = 2x + 10
subtract 4: 2x + 6
halve: (2x + 6) ÷ 2 = x + 3
subtract the start: x + 3 − x = 3

The x cancels at the last step, so the answer is 3 whatever number was chosen.

Check with two numbers. Starting with 7: 12, then 24, then 20, then 10, and 10 − 7 = 3. Starting with 100: 105, then 210, then 206, then 103, and 103 − 100 = 3.

Testing shows the trick works for the numbers tried; the algebra shows it works for every number.

Q2 The bottom row of a three-row number pyramid is 5, x, 8, where each cell is the sum of the two cells below it. (i) Write the top cell in terms of x. (ii) Find x if the top cell is 27. (iii) Explain why the top can never be 20 when x is a whole number. 3 marks mark

(i) The row above the bottom is 5 + x and x + 8, so the top is (5 + x) + (x + 8) = 2x + 13.

(ii) 2x + 13 = 27, so 2x = 14 and x = 7. Check: the bottom row 5, 7, 8 gives 12 and 15, and 12 + 15 = 27.

(iii) If the top were 20 we would need 2x + 13 = 20, so 2x = 7 and x = 3.5, which is not a whole number.

There is a shorter reason as well. For any whole number x, 2x is even, so 2x + 13 is odd. The top of this pyramid is therefore always odd, and 20 is even, so it is impossible.

Q3 Four dates on a calendar form a 2 by 2 block with a in the top left corner. (i) Show that the four dates add up to 4a + 16. (ii) The block adds up to 92; write down the four dates. (iii) Show that the two diagonal products differ by 7, and check it for this block. 4 marks mark

(i) On a calendar one step right adds 1 and one step down adds 7, so the block holds a, a + 1, a + 7 and a + 8. Their total is a + (a + 1) + (a + 7) + (a + 8) = 4a + 16.

(ii) 4a + 16 = 92, so 4a = 76 and a = 19. The dates are 19, 20, 26 and 27. Check: 19 + 20 = 39, 26 + 27 = 53 and 39 + 53 = 92.

(iii) One diagonal gives a(a + 8) = a2 + 8a. The other gives (a + 1)(a + 7) = a2 + 8a + 7. Subtracting, the a2 + 8a cancels and the difference is 7 whatever a is.

Check: 19 × 27 = 513 and 20 × 26 = 520, and 520 − 513 = 7.

Q4 Using the digits 3, 6 and 8 once each, form a two-digit number and a one-digit number and multiply them. Find the largest possible product and prove that no other arrangement beats it. 4 marks mark

The largest product. Put the largest digit alone, the next largest in the tens place and the smallest in the units place: 63 × 8 = 504.

The other arrangements. 83 × 6 = 498, 36 × 8 = 288, 86 × 3 = 258, 38 × 6 = 228 and 68 × 3 = 204. None reaches 504.

Proof. Let the digits be a, b, c with a > b > c. The smallest digit belongs in the units place, which is worth only 1 against the 10 of the tens place. That leaves two candidates, (10b + c) × a and (10a + c) × b. Expanding gives 10ab + ac and 10ab + bc. The term 10ab is the same in both, so the difference is ac − bc = c(a − b), which is positive because a > b and c is not 0. So (10b + c) × a is larger.

Check the gap. Here c(a − b) = 3 × (8 − 6) = 6, and 504 − 498 = 6.

Q5 Show that the difference between a three-digit number and the number formed by reversing its digits is always a multiple of 99, and hence a multiple of both 9 and 11. Check your result with 731. 4 marks mark

Place value form. Let the digits be a, b and c from left to right. The number is 100a + 10b + c and the reversed number is 100c + 10b + a.

Subtract.
(100a + 10b + c) − (100c + 10b + a)
= 100a + 10b + c − 100c − 10b − a
= 99a − 99c = 99(a − c)

The middle digit b cancels completely, so it has no effect on the answer. Since 99 = 9 × 11, the difference is a multiple of 9 and a multiple of 11 as well.

Check with 731. The reversed number is 137, and 731 − 137 = 594. Now 99 × 6 = 594, and a − c = 7 − 1 = 6, which agrees. Also 594 = 9 × 66 and 594 = 11 × 54.

Q6 A traveller crosses three bridges. At each bridge the coins in her purse are doubled and she then pays a toll of 8 coins. (i) Write the number of coins after each bridge in terms of the number x she started with. (ii) How many did she start with if she ends with nothing? (iii) Which starting amount leaves her purse unchanged at every bridge? (iv) Can she end with exactly 3 coins? 5 marks mark

(i) After each bridge.
after the first: 2x − 8
after the second: 2(2x − 8) − 8 = 4x − 16 − 8 = 4x − 24
after the third: 2(4x − 24) − 8 = 8x − 48 − 8 = 8x − 56

(ii) Ending with nothing. 8x − 56 = 0, so 8x = 56 and x = 7. Check through the story: 7 doubles to 14 and paying 8 leaves 6; 6 doubles to 12 and paying 8 leaves 4; 4 doubles to 8 and paying 8 leaves 0.

(iii) Purse unchanged. We need 2x − 8 = x, so x = 8. Indeed 8 doubles to 16 and the toll of 8 brings it back to 8, at every bridge. The same answer comes from 8x − 56 = 8, which gives 8x = 64 and x = 8.

(iv) Ending with 3. That needs 8x − 56 = 3, so 8x = 59 and x = 7.375. Coins come in whole numbers, so no starting amount can leave her with exactly 3 coins.

Part of Priodemy for School

Interactive Maths & Science — free with every school on Priodemy EduSuite. Explore more chapters and labs on the Priodemy for School hub.

Ask AI