Step 1 – Decide the chain of operations
To invent a new “secret rule” (formula), pick any short sequence of simple operations that Class 7 students already know.
For example, let us decide to do the following four operations to whatever number the machine is fed with:
- Add 7
- Multiply the result by 3
- Subtract 4
- Stop – the answer that comes out is the machine’s output
Step 2 – Translate the operations into algebra
Let the input number be denoted by the letter $$n$$ (you may use $$x$$, $$y$$, etc.; any letter is allowed).
Carry out the operations on $$n$$ one by one, writing each intermediate step:
| Action | Algebraic writing |
| Start | $$n$$ |
| Add 7 | $$n+7$$ |
| Multiply by 3 | $$3(n+7)$$ |
| Simplify (remove brackets) | $$3n+21$$ |
| Subtract 4 | $$(3n+21)-4$$ |
| Simplify again | $$3n+17$$ |
Thus the formula produced by this number machine is
\[\boxed{\;3n+17\;}\]
In words: “Multiply the input by 3 and then add 17.”
Step 3 – Check the formula with a test value
Take any convenient test value, say $$n=2$$:
According to the long description: 2 + 7 = 9, 9 × 3 = 27, 27 – 4 = 23.
According to the compact formula: $$3(2)+17=6+17=23$$.
Both give the same answer, so the algebra is correct.
Step 4 – Prepare the “number-machine” challenge table
Choose any five distinct inputs (positive, zero, negative – your choice).
Feed them into the secret machine and list only the outputs.
Do not print the rule beside the table when you hand the sheet to your classmates!
| Input (goes in) | Output (comes out) |
| 0 | $$17$$ |
| 2 | $$23$$ |
| 5 | $$32$$ |
| 10 | $$47$$ |
| -3 | $$8$$ |
Now write a short instruction like:
- “The same secret rule was used each time. Can you find that rule?”
- “Hint: first look for the pattern in how the outputs are rising.”
Step 5 – How a solver might work it out
Your friends will probably notice that every time the input increases by 1, the output increases by 3. That is a strong clue that the rule involves ‘multiply by 3’. Then they can try to discover that 17 has been added at the end.
Congratulations – you have designed and fully explained your own algebraic formula and number machine!