Grade by GradeEssential student suppliesSign in
3. Patterning · Patterning: Tables, Relationships and Equations

Number Machines: Input and Output Rules

BC MA 4: algebraic relationships BC MA 4: patterns in tablesAbout 45 minutes
Learning goals
  • I can follow an input/output rule to find the output.
  • I can work out the rule by studying an input/output table.
  • I can start from an output and work backwards to the input.

Words to know

input
The number you put into a rule.
output
The number you get after the rule has been used.
operation
Adding, subtracting, multiplying or dividing.
inverse operation
An operation that reverses another one. Adding and subtracting undo each other, and so do multiplying and dividing.

A number machine

Picture a machine with a slot on each side. You drop a number in (the input). The machine follows its rule, and a new number drops out (the output). The rule can use any of the four operations.

IN7RULE× 5OUT35
Input 7 goes into the machine. The rule is multiply by 5, so the output is 35.
InputRuleOutput
3× 515
4× 520
7× 535
8× 540
12× 560
Every input goes through the same rule: multiply by 5.

Cracking the rule

When you can see only the inputs and outputs, ask yourself:

  1. Are the outputs bigger or smaller than the inputs?
  2. If they are bigger, try adding or multiplying. If they are smaller, try subtracting or dividing.
  3. Test your rule on every row before you trust it.
Worked example

Find the rule

Input 4 → Output 16, Input 9 → Output 21, Input 15 → Output 27, Input 30 → Output 42.

  1. The outputs are bigger, so try adding or multiplying.
  2. Try multiply by 4: 4 × 4 = 16 works, but 9 × 4 = 36, not 21. That rule fails.
  3. Try subtracting each input from its output: 16 − 4 = 12, 21 − 9 = 12, 27 − 15 = 12, 42 − 30 = 12.

The rule is add 12.

Worked example

A sharing rule

Input 42 → 7, Input 18 → 3, Input 60 → 10, Input 36 → 6. What is the rule? What is the output for 54?

  1. The outputs are smaller, so try subtracting or dividing.
  2. Subtracting does not fit: 42 − 35 = 7, but 18 − 35 does not give 3.
  3. Divide by 6: 42 ÷ 6 = 7 ✔, 18 ÷ 6 = 3 ✔, 60 ÷ 6 = 10 ✔, 36 ÷ 6 = 6 ✔.
  4. 54 ÷ 6 = 9.

The rule is divide by 6, and the output for 54 is 9.

IN?RULE+ 27OUT63
Working backwards: which input gives 63 after adding 27?
Worked example

Run the machine backwards

The rule is add 27. The output is 63. What was the input?

  1. The machine added 27, so to undo it, subtract 27.
  2. 63 − 27 = 36.
  3. Check by running it forward: 36 + 27 = 63 ✔

The input was 36.

Undo it

To go backwards, use the inverse operation: subtraction undoes addition, addition undoes subtraction, division undoes multiplication, and multiplication undoes division. Then run your answer forward through the rule to check it.

Hands-on activity

Build a rule box

You need: an empty cereal box, scissors, small paper cards and a partner.

  1. Cut a slot near the top of the box (IN) and another near the bottom (OUT).
  2. The machine-keeper secretly writes a rule on a card, such as × 3 or − 12, and hides it.
  3. The player writes an input on a card and drops it in. The machine-keeper reaches inside, writes the output on a new card and pushes it out of the OUT slot.
  4. Keep a table of inputs and outputs. After three or four cards, guess the rule and test it.
  5. Swap jobs.
Just for fun

Puzzle: Machine A adds 5. Machine B multiplies by 2. Put 3 into A and then into B. Now put 3 into B and then into A. Do you get the same output? (No! A then B gives (3 + 5) × 2 = 16, but B then A gives 3 × 2 + 5 = 11. The order of the machines matters.)

Your turn

1

Rule: × 8. Find the outputs for 2, 5 and 9.

2

Rule: − 45. Find the output for 120.

3

Input 3 → 21, 5 → 35, 9 → 63. What is the rule?

4

Input 15 → 5, 24 → 8, 30 → 10. What is the rule?

5

Rule: + 48. The output is 100. What was the input?

6

Rule: × 9. The output is 72. What was the input?

More practice

1

Input 20 → 11, 35 → 26, 61 → 52. What is the rule?

2

Rule: ÷ 5. Find the outputs for 25, 40 and 45.

3

Rule: − 250. The output is 400. What was the input?

4

Rule: ÷ 7. The output is 5. What was the input?

5

Input 3 → 9. Ari says the rule is + 6, but Bea says it is × 3. What input could you test to settle it?

Check your understanding

Quiz

1.

The rule is × 7. What is the output for 8?

2.

Input 9 → 3, 21 → 7, 27 → 9. What is the rule?

3.

The rule is + 38. The output is 75. What was the input?

4.

The rule is ÷ 8. The output is 7. What was the input?

For parents and teachers

Your child is working with input/output rules that use all four operations: finding outputs, figuring out a rule from a table and working backwards with inverse operations.

How to help: play "What's my rule?" in the car or at supper. Your child names a number, you answer with the output, and they try to guess your rule. Stick to one operation per rule.

Common mistakes: choosing a rule that fits only the first row; doing the same operation again when working backwards instead of undoing it; skipping the forward check.