- Mathematics
- Class 5
- Project 4
4The Secret Function Machine
A student hides inside a cardboard "machine" with a secret rule. Classmates feed in numbers and watch what comes out. They must crack the rule, write it with a box for the missing number, and then build their own two-step machines.
- Class and age
- Class 5 · 10–11
- Activity type
- Group
- Time needed
- 45 to 60 minutes
- Difficulty
- Medium
- Estimated budget
- ৳0–৳20
Mathematical concepts
- Input and output, rules (functions)
- One-step and two-step rules (× 2 then + 1)
- Inverse operations (working out the input from the output)
- Writing rules with a box or a letter: □ × 3 + 2
- Tables of values
Learning objectives
- Find a one-step and a two-step rule from input-output pairs.
- Write the rule using a box or a letter.
- Use inverse operations to find a missing input.
- Design a machine and test it on classmates.
Real-life connection
A rickshaw fare (a fixed starting fare plus an amount for each km), a phone bill, a recipe for more people and a currency converter are all function machines: put in a number, follow a rule, get a number out. Computer programs and calculators are huge function machines.
Materials required
- A large cardboard box decorated as a machine, with an 'IN' slot and an 'OUT' slot
- Small paper cards and markers
- Rule cards for the teacher (+ 7, × 4, × 2 + 1, × 3 − 2, ÷ 2 + 5 ...)
- Recording table: input, output
Step-by-step instructions
- Story: 'At the railway station, a strange ticket machine turns every number into another number. The station master has lost the manual!'
- The machine: a student sits behind the box with a secret rule card. Classmates post a number card in IN; the student writes the output and posts it through OUT.
- Record: the class fills a table of inputs and outputs on the board.
- Crack it: after 4 or 5 inputs, groups discuss the rule. They test it by predicting the next output before it comes out.
- Write the rule: with a box: □ + 7, or □ × 3 − 2. Introduce writing it with a letter: n × 3 − 2.
- Two-step rules: use harder cards like × 2 + 1. 'Why is it harder? Which inputs are most helpful?' (0 and 1 are very useful inputs!)
- Backwards: 'The output was 20 with the rule × 3 − 1. What went in?' Undo the steps in reverse order: 20 + 1 = 21, 21 ÷ 3 = 7.
- Design your own: each group writes a secret two-step rule and becomes the machine for another group.
- Reflection: 'What is your best strategy for cracking a machine quickly?'
Mathematical explanation
A function is a rule that turns each input into exactly one output. Writing the rule with a box or a letter (n × 3 − 2) is the first step into algebra: the letter stands for 'any number'. Choosing clever inputs is a real mathematical strategy: input 1 helps find the multiplier, and seeing how much the output grows between consecutive inputs shows what the input is multiplied by. To work backwards, use inverse operations in reverse order: the inverse of × 3 is ÷ 3 and the inverse of − 1 is + 1, like taking off socks after shoes. When outputs go up by the same amount for each input, the multiplier equals that step: a link to the arithmetic sequences of Class 4.
Expected project output
- Input-output tables for at least 4 machines
- Rules written with a box and with a letter
- Two backwards (missing input) problems solved
- An original two-step machine card
Skills developed
Algebraic thinking, pattern recognition, inverse operations, hypothesis testing, logical reasoning.
Assessment criteria
- Finds one-step rules quickly and two-step rules with some testing.
- Writes rules correctly with a box or letter.
- Solves missing-input problems with inverse operations in reverse order.
- The designed machine works consistently.
Extension challenge
Join two machines in a row: the output of the first becomes the input of the second. Is there a single machine that does the same job? Or find a machine where the output always equals the input (a 'mirror machine').
Safety and inclusion
No safety risks. Make sure every child gets a turn being the machine, including shy children (they can work as a pair inside the box).