Mathematics
Advanced
50 mins
Teacher/Student led
+80 XP
What you need:
IWB/Projector/Large Screen

Finding the Rule from a Table

Discover how to work out a hidden rule by looking at input-output pairs. Test your guesses on multiple pairs and use a clever test-input to tell similar rules apart.

Teacher Class Feed

Load previous activity

    1 - Getting Started ~4 mins

    Illustration for Getting StartedHere is a machine with its rule hidden behind a question mark. It has swallowed three numbers and spat three back out:

    Example

    2 turned into 7. 5 turned into 16. 10 turned into 31.

    What is the machine doing to every number that goes in?

    2 - Watch and Notice ~9 mins

    Four hidden-rule machines are on the board, each showing a few pairs of what goes in and what comes out. For each one, look at how the output relates to the input and be ready to say what the machine is doing. Watch out — some machines do two things to the number.

    3 - Try It Together ~10 mins

    Worked example

    Today we crack this hidden machine together: it turns 27, 516 and 1031. We'll send fresh numbers through first — try 1, then 0, then 3 — and watch what comes out before anyone names the rule. Then we'll say the rule aloud and use Show rule to check.

    Crack the machine: 2 → 7, 5 → 16, 10 → 31

    4 - Work Out the Rule in Your Copy ~3 mins

    COPYBOOK MOMENT

    In your maths copy, work out the rule for Machine A from Watch and Notice: 27, 516, 1031. For each pair, write what the rule could be — 27 could be + 5 or × 3 + 1 — then test both on the next pair. Circle the rule you decide on.

    5 - Class Challenge ~9 mins

    Now we crack four hidden machines together. Each one is a little trickier than the last. Send a number through before you name the rule, build it on the buttons, and press Check.

    Watch out

    Watch the last machine closely. It gives 16. Someone might guess + 5, because 1 + 5 = 6 — and that fits the first pair perfectly. But send a second number through: 3 gives 14, not 8, so + 5 is wrong. One pair on its own was not enough. We only knew for sure once we tried a second number.

    Crack the hidden machine

    Pupil practice
    Module 8 · Algebra: Patterns, Expressions and Equations Algebra
    Lesson 102 · Finding the Rule from a Table
    Download Activity Book page (PDF)
    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more