Algebra Play
Why This Matters
Have you ever seen someone do a “magic” number trick? They say: “Think of any number. Don’t tell me. Double it. Add four. Halve it. Take away the number you started with.” Then they grin and announce: “Your answer is 2.”
And it always is. Every time. For any number you pick.
It feels like mind-reading. But it isn’t magic at all. It is algebra quietly doing its job behind the curtain.
In Class 6 and 7 you used algebra to stand in for unknown numbers. Now we get to play with it. We will pull these tricks apart and see the gears inside. We will learn why they always work, not just that they work. Once you see how the machine runs, you can build your own tricks to amaze your friends.
This is also the deeper point of algebra. A single letter, like x, can stand for every number at once. So when we prove something with x, we have proved it for the whole infinite list of numbers in one short line. That power shows up everywhere in maths, science, and beyond.
The Big Idea
A number trick uses a hidden number you never tell anyone. If we call that hidden number x and follow the steps, the x carries through the whole chain. At the end, the x either cancels out (so the answer is fixed) or it can be pulled back out (so we can find it). Letters turn a “magic” trick into something we can fully explain. The same letters let us form equations and solve them, fill number pyramids and grids, and prove that a trick must work for every number, not just the ones we tested.
Let’s Break It Down
The ‘Think of a Number’ trick, traced with a letter
Let us take the trick from the start, step by step. We will do it two ways at once: with a real number, say 7, and with the letter x standing for “whatever you chose”.
- Think of a number. Real: 7. Letter: x.
- Double it. Real: 14. Letter: 2x.
- Add four. Real: 18. Letter: 2x + 4.
- Divide by two. Real: 9. Letter: x + 2. (Half of 2x is x; half of 4 is 2.)
- Subtract the starting number. Real: 9 − 7 = 2. Letter: (x + 2) − x = 2.
Look at the last line. The x and the −x cancel. They wipe each other out. What is left is just 2.
That is the whole secret. The answer does not depend on x at all, because the x disappears. So whatever you start with, you land on 2. The picture below traces both columns side by side so you can watch the x vanish.
In the last step we work out (x + 2) − x. Why does the answer not depend on x?
Because the +x part and the −x part cancel each other. (x + 2) − x is the same as x − x + 2, and x − x is 0. So we are left with 0 + 2 = 2. The x is gone, so the starting number makes no difference.
Now you can see how to change the trick. The “add four” step became ”+ 2” after halving, and that 2 is the final answer. Want the answer to be 3 instead? Then you need ”+ 3” to survive at the end, so add six instead of four (because half of 6 is 3). Want the answer to be 5? Add ten. You are in control once you see the algebra.
Forming an expression — the recipe view
Each instruction in the trick adds one more layer to an expression. “Double it” multiplied by 2. “Add four” added 4. Step by step, the expression 2x + 4 is built up.
An expression is just a recipe written in symbols. It does not have an equals sign yet. It is waiting for you to put in a value for x. Figure 6.2 shows this building-up as a tree you read from the bottom to the top.
Reading it as a recipe makes algebra less scary. 2x + 4 simply means: “take your number, double it, then add four.” Nothing more.
Forming and solving an equation
So far we only built expressions. The fun jumps up when we get an equation — an expression set equal to something.
Here is a small puzzle. “I doubled a number and added four, and got ten. What was my number?” In symbols: 2x + 4 = 10.
Now we must solve it. Solving means finding the value of x that makes both sides truly equal.
The safest way to picture this is a balance scale. The equals sign means the two sides weigh the same — the scale is level. The golden rule is simple: whatever you do to one side, do exactly the same to the other side. Then the scale stays level and the equation stays true.
Let us see this on the scale before we write the steps.
Now the same thing written as steps.
I doubled a number and added 4, and the result was 10. Find the number. (Solve 2x + 4 = 10.)
- Start with the equation: 2x + 4 = 10. We want x alone on one side.
- First remove the extra +4. Take 4 off both sides (so the scale stays level): 2x + 4 − 4 = 10 − 4, which gives 2x = 6.
- Now x is doubled, so undo the doubling. Divide both sides by 2: 2x ÷ 2 = 6 ÷ 2.
- This gives x = 3. Check: double 3 is 6, plus 4 is 10. Correct. The number was 3.
Notice the order. To free x, we peeled off the steps in reverse. The expression added 4 last, so we removed 4 first. The expression doubled first, so we undid the doubling last. Solving an equation is like untying a knot — you undo the last loop first.
Number pyramids
Here is a different playground for the same idea. In a number pyramid, each block is the sum of the two blocks directly below it. So if the bottom two blocks are 4 and 9, the block above them is 4 + 9 = 13.
Filling a pyramid upward is easy — you just add. The puzzle gets interesting when you know the top but not the bottom. Then algebra rescues you: put a letter in an empty block, use the “sum of the two below” rule to write equations, and solve.
Figure 6.4 shows both the general rule and a real pyramid solved this way.
Let us walk through that solve carefully.
A 3-row pyramid has top block 60. Its bottom blocks are 12, then an empty block, then 8. The two middle blocks are also empty. Fill it in.
- Name the empty bottom block c. Name the left middle block a and the right middle block b.
- Use the rule “each block is the sum of the two below it”. Top: a + b = 60. Left middle: 12 + c = a. Right middle: c + 8 = b.
- Add the two middle equations: (12 + c) + (c + 8) = a + b. But a + b = 60, so 20 + 2c = 60.
- Solve: 2c = 60 − 20 = 40, so c = 20. Then a = 12 + 20 = 32, and b = 20 + 8 = 28. The pyramid is 12, 20, 8 on the bottom; 32, 28 in the middle; 60 on top.
There is also a lovely pattern hiding here. For the simplest pyramid, the bottom blocks a and b give a top of a + b. For a 3-row pyramid with bottom a, b, c, the top is a + 2b + c — the middle block is counted twice. Knowing the pattern lets you find the top without building the whole pyramid.
The calendar grid trick
Open any month on a calendar. Ask a friend to pick a 2 × 2 square of four dates and tell you only their sum. From that one number, you can name all four dates. How?
Look at how the four numbers relate. If the top-left date is a, then the date to its right is a + 1 (the next day). The date directly below is a + 7 (one week later). The bottom-right is a + 8. So the grid is a, a + 1, a + 7, a + 8 — every box is written in terms of one letter.
Add them up: a + (a + 1) + (a + 7) + (a + 8) = 4a + 16. So the friend’s sum is always 4a + 16.
A friend picks a 2 × 2 grid of dates and says the four dates add to 36. Find the four dates.
- Let the top-left date be a. Then the four dates are a, a + 1, a + 7, a + 8, and their sum is 4a + 16.
- So 4a + 16 = 36. Take 16 off both sides: 4a = 20.
- Divide both sides by 4: a = 5. So the top-left date is the 5th.
- The other three are a + 1 = 6, a + 7 = 12, a + 8 = 13. The grid is 5, 6, 12, 13.
The trick feels like magic to your friend, but you simply solved 4a + 16 = 36. Change the shape of the grid and you get a different expression — and a new trick of your own.
Decoding the date trick
Some tricks hide two numbers, not one, yet algebra still untangles them. Here is the classic “guess my date” trick. Tell a friend:
- Multiply the month by 5. Add 6. Multiply by 4. Add 9. Multiply by 5. Finally, add the day. Tell me the result.
From that one number you announce their exact date. Let us see why, with the month as M and the day as D.
Following the steps: 5M, then 5M + 6, then 20M + 24, then 20M + 33, then 100M + 165, then finally 100M + 165 + D.
Notice that every step except the last only touches M. So the leftover 165 is the same every single time. Strip it off and the rest falls apart neatly. Figure 6.5 shows the full reveal for the answer 291.
A friend follows the date steps and reports 1390. The fixed leftover is 165. What date did they pick?
Subtract 165 from 1390 to get 1225. This is 100M + D, so M and D are read from the digits: the last two digits are the day (25) and what comes before is the month (12). So the date is 25 December.
Why divisibility tricks work
Now a trick that always lands on a multiple of 9. Pick any 2-digit number with two different digits — say 47. Reverse the digits to get 74. Subtract the smaller from the bigger: 74 − 47 = 27. Divide by 9: you get 3, with no remainder. It works for any such number. Why?
The key idea is how a 2-digit number is really built. The number “ab” is not a times b. It means 10a + b — that is, the tens digit counts for ten each, plus the ones digit. So 47 is 10 × 4 + 7. Figure 6.6 uses this to crack the trick.
Read the working: the difference is 9b − 9a = 9(b − a). That is 9 multiplied by a whole number. Anything that is 9 times a whole number is divisible by 9. So there can never be a remainder. The algebra proves it for every 2-digit number in one short line — something no amount of testing single examples could ever fully guarantee.
Inventing your own trick
Now you are ready to be the magician. To build a “think of a number” trick, chain together steps and make sure the x behaves the way you want.
- To make the answer always the same, design the steps so the x cancels at the end (like our +x and −x). The leftover constant is your answer.
- To make a trick where you can guess the number back, keep the x alive but tucked inside, then undo each step in reverse to recover it.
Design a think-of-a-number trick whose answer is always 5, then check it with algebra.
- Plan: start with x, and make the x cancel, leaving 5. Try these steps: think of x, add 3, double it, subtract 2x, subtract 1. Let us track it in algebra.
- Think of x: x. Add 3: x + 3. Double it: 2x + 6. Subtract 2x: 2x + 6 − 2x = 6. The x has cancelled, leaving 6.
- That gives 6, but we wanted 5. So adjust the last step: subtract 1 at the end. Now we get 6 − 1 = 5.
- Final trick: think of a number, add 3, double it, subtract twice your number, subtract 1 — the answer is always 5. Test with x = 8: 8 → 11 → 22 → 22 − 16 = 6 → 5. It works for any number.
Common Mistakes
These are the slips students make most often with algebra play. Read them once and you will sidestep them.
In a 2-digit number written 'ab', the value is a times b.
When two letters sit side by side in algebra, like ab, it usually means 'a times b' — so it feels natural to read the digit pair the same way.
A 2-digit number 'ab' means 10a + b, not a × b. The first digit is in the tens place, so it counts ten each. For example 47 is 10×4 + 7 = 47, not 4 × 7 = 28. This place-value meaning is what makes the reverse-digit trick work.
To solve 2x + 4 = 10, you can subtract 4 from just the left side.
Students focus on getting x alone and forget the right side, since the +4 they want to remove is only written on the left.
Whatever you do to one side, you must do to the other, or the scale tips and the equation is no longer true. Subtract 4 from both sides: 2x + 4 − 4 = 10 − 4, giving 2x = 6. Then divide both sides by 2 to get x = 3.
A number trick only works for the small numbers you tested it on.
We usually trust a pattern after checking a few cases, so it seems safe to assume the trick might fail for some big or unusual number we did not try.
Testing examples can only suggest a pattern, never prove it. Algebra proves it for every number at once. When (x + 2) − x gives 2, or the difference gives 9(b − a), the letter stands for any number, so the result holds for all of them — no exceptions.
Quick Check
Try these. Each one checks an idea from the chapter.
In the trick 'think of x, double it, add 4, halve it, subtract your number', what is the final result?
What is the correct first step to solve 3x + 5 = 20?
The 2-digit number with tens digit a and ones digit b has what value?
In a number pyramid, what goes in a block?
Practice Problems
Try each one yourself first. Only then tap to see the full solution.
Easy
Solve the equation x + 7 = 12.
We want x alone. Subtract 7 from both sides: x + 7 − 7 = 12 − 7. This gives x = 5. Check: 5 + 7 = 12. Correct.
A friend thinks of a number, doubles it, and adds 5. The result is 17. What number did they think of?
Let the number be x. Doubling and adding 5 gives 2x + 5. So 2x + 5 = 17. Subtract 5 from both sides: 2x = 12. Divide both sides by 2: x = 6. The number was 6. Check: double 6 is 12, plus 5 is 17. Correct.
Medium
A 2 × 2 calendar grid of dates adds up to 60. Find the four dates. (The grid is a, a+1, a+7, a+8.)
The sum of the grid is a + (a + 1) + (a + 7) + (a + 8) = 4a + 16. So 4a + 16 = 60. Subtract 16 from both sides: 4a = 44. Divide both sides by 4: a = 11. So the top-left date is 11. The others are a + 1 = 12, a + 7 = 18, a + 8 = 19. The four dates are 11, 12, 18, 19.
A 3-row pyramid has top block 50. Its bottom blocks are 5, then an empty block, then 9. Find the empty bottom block and fill the pyramid.
Call the empty bottom block c. Call the middle blocks a (left) and b (right). By the sum rule: a = 5 + c, b = c + 9, and a + b = 50. So (5 + c) + (c + 9) = 50, which is 14 + 2c = 50. Subtract 14: 2c = 36, so c = 18. Then a = 5 + 18 = 23 and b = 18 + 9 = 27. Bottom row: 5, 18, 9. Middle: 23, 27. Top: 50.
Show that for any 2-digit number, reversing the digits and subtracting the smaller from the bigger always gives a multiple of 9. Use the number 62 to check.
Let the number be 10a + b, with a the tens digit and b the ones digit. The reversed number is 10b + a. Their difference (taking bigger minus smaller) is (10a + b) − (10b + a) = 9a − 9b = 9(a − b). This is 9 times a whole number, so it is always divisible by 9. Check with 62: reversed is 26. Difference is 62 − 26 = 36 = 9 × 4. It is a multiple of 9.
Challenge
Invent a 'think of a number' trick whose answer is always 10, and prove with algebra that it works.
One trick: think of x, add 1, triple it, subtract 3x, add 7. Let us track it: x → x + 1 → 3(x + 1) = 3x + 3 → (3x + 3) − 3x = 3 → 3 + 7 = 10. The 3x and −3x cancel, leaving 3, and adding 7 gives 10. Because the x cancels, the answer is always 10 for any starting number. Test with x = 4: 4 → 5 → 15 → 15 − 12 = 3 → 10. It works. (Many other answers are possible, as long as the x cancels and the leftover plus the final number equals 10.)
A mother is 5 times her daughter's age. In 6 years, the mother will be 3 times her daughter's age. How old is the daughter now?
Let the daughter’s age now be x years. Then the mother’s age now is 5x years. In 6 years, the daughter will be x + 6 and the mother will be 5x + 6. At that time the mother is 3 times the daughter: 5x + 6 = 3(x + 6). Open the bracket: 5x + 6 = 3x + 18. Subtract 3x from both sides: 2x + 6 = 18. Subtract 6 from both sides: 2x = 12, so x = 6. The daughter is 6 years old now. Check: mother is 30 now. In 6 years, daughter is 12 and mother is 36, and 36 = 3 × 12. Correct.
Summary
- A ‘think of a number’ trick works because the steps make the hidden number x cancel out (so the answer is fixed) or let us pull it back out. Algebra reveals the secret.
- An expression like 2x + 4 is a recipe in symbols, built one step at a time. It has no equals sign yet.
- An equation sets an expression equal to something. To solve it, picture a balance scale and do the same thing to both sides until the letter stands alone — peeling off the steps in reverse order.
- In a number pyramid, each block is the sum of the two below it. Putting a letter in an empty block turns the puzzle into equations you can solve.
- The calendar grid and date tricks write every box in terms of one or two letters, so one reported number is enough to find them all.
- A 2-digit number “ab” means 10a + b, not a × b. This place value is why reversing digits and subtracting always gives 9(a − b) — a multiple of 9.
- Above all: algebra proves a trick works for every number at once, where testing examples never can. That is its real power.
What’s Next
You have seen how a single letter can stand for every number at once, explain “magic” tricks, and prove statements for all numbers in one line. That habit of using letters to capture a whole pattern is the heart of algebra.
Next we turn that power onto shapes and space. The next chapter is Area. There you will measure the space inside flat figures — rectangles, triangles, and more — and you will see algebra return to give you neat formulas for them. See you there!
Frequently Asked Questions
Why does a think-of-a-number trick always give the same answer?
Because when you call the starting number x and follow each step, the x cancels out by the end. The steps are built so the unknown disappears and only a fixed number is left. So whatever number you start with, you reach the same final value.
What does it mean to solve an equation?
It means finding the value of the unknown letter that makes both sides equal. You picture the equation as a balanced scale and do the same thing to both sides — subtract the same amount, or divide both sides equally — until the letter stands alone.
Why is the reverse-the-digits difference always divisible by 9?
Write the number as 10a + b and the reversed number as 10b + a. Their difference is 9b minus 9a, which is 9 times the quantity b minus a. That is always 9 times a whole number, so it is always divisible by 9.
How does algebra help with number pyramids?
Put a letter in each empty bottom block. Because every block is the sum of the two below it, the rule gives you equations. You solve those equations to find the letters, then fill the whole pyramid.
Can I invent my own number trick?
Yes. Build a chain of steps using a letter x, choosing operations that finally cancel the x or hide a value inside a fixed number. Check with algebra that the x behaves as you want, then test it on a few real numbers.