Function Machines

Question 11 mark

Here is a number machine.

Work out the output when the input is 2.

Hint

Go through the boxes from left to right.

Worked solution
  1. Work forwards, doing each box in order.
  2. 2\times5=10.
  3. 10+8=18.
  4. The output is 18.

Question 21 mark

Here is a number machine.

Work out the output when the input is 15.

Hint

Do the first box, then put your answer into the second box.

Worked solution
  1. Work forwards, finishing the first box before the second.
  2. 15-8=7.
  3. 7\times2=14.
  4. The output is 14.

Question 31 mark

Here is a number machine.

Work out the output when the input is 20.

Hint

Work through the boxes in order, from left to right.

Worked solution
  1. Work forwards through the two boxes.
  2. 20\div4=5.
  3. 5+6=11.
  4. The output is 11.

Question 41 mark

Here is a number machine.

Work out the output when the input is 3.

Hint

Multiply first, then subtract.

Worked solution
  1. Work forwards through the boxes, in order.
  2. 3\times9=27.
  3. 27-6=21.
  4. The output is 21.

Question 52 marks

Here is a number machine.

Work out the input when the output is 43.

Hint

Start at the output and work backwards, doing the opposite of each box.

Worked solution
  1. Work backwards, undoing the last box first.
  2. 43+11=54.
  3. 54\div6=9.
  4. The input is 9.

Question 62 marks

Here is a number machine.

Find the output when the input is 57.

Hint

Finish the addition before dividing.

Worked solution
  1. Do each operation in the order shown by the machine.
  2. 57+3=60.
  3. 60\div4=15.
  4. The output is 15.

Question 72 marks

Here is a number machine.

The output is 85.

Work out the input.

Hint

Start at the output and undo the last box first.

Worked solution
  1. Work backwards, undoing subtraction before multiplication.
  2. 85+7=92.
  3. 92\div4=23.
  4. The input is 23.

Question 82 marks

Here is a number machine.

The output is 7.

Work out the input.

Hint

Work backwards: undo the subtracting first, then undo the dividing.

Worked solution
  1. Work backwards, undoing subtraction before division.
  2. 7+8=15.
  3. 15\times3=45.
  4. The input is 45.

Question 91 mark

Here is a number machine.

Find the output when the input is 5.

Hint

Multiply first, then subtract.

Worked solution
  1. Work forwards through both boxes.
  2. 5\times7=35.
  3. 35-9=26.
  4. The output is 26.

Question 102 marks

Here is a number machine.

Find the output when the input is 74.

Hint

Subtract before dividing.

Worked solution
  1. Finish the first box before applying the second.
  2. 74-4=70.
  3. 70\div7=10.
  4. The output is 10.

Question 111 mark

Here is a number machine.

Work out the output when the input is 72.

Hint

Work from left to right.

Worked solution
  1. Work forwards through the boxes.
  2. 72\div8=9.
  3. 9-3=6.
  4. The output is 6.

Question 122 marks

Here is a number machine.

Work out the input when the output is 112.

Hint

Undo the addition, then undo the multiplication.

Worked solution
  1. Work backwards from the output.
  2. 112-4=108.
  3. 108\div9=12.
  4. The input is 12.

Question 132 marks

Here is a number machine.

Work out the input when the output is 66.

Hint

Undo the last box first.

Worked solution
  1. Work backwards, using the opposite operation for each box.
  2. 66\div6=11.
  3. 11+7=18.
  4. The input is 18.

Question 142 marks

Here is a number machine.

The number in the first box is missing.

When the input is 9, the output is 119.

Work out the missing number.

Hint

Work backwards through the box you know.

Worked solution
  1. Undo the last box to find the number that comes out of the first box.
  2. 119\div7=17.
  3. The first box adds enough to turn 9 into 17.
  4. 17-9=8.
  5. The missing number is 8.

Question 152 marks

Here is a number machine.

The number in the second box is missing.

When the input is 8, the output is 41.

Work out the missing number.

Hint

Put the input through the first box, then compare with the output.

Worked solution
  1. Go forwards through the box you know.
  2. 8\times3=24.
  3. The second box adds enough to turn 24 into 41.
  4. 41-24=17.
  5. The missing number is 17.

Question 16Challenge2 marks

Here is a number machine.

Find the input when the output is −45.

Hint

Undo subtraction first and take care with the negative number.

Worked solution
  1. Work backwards from the negative output.
  2. -45+13=-32.
  3. -32\div8=-4.
  4. The input is −4.

Question 17Challenge2 marks

Here is a number machine.

Find the input when the output is −1.

Hint

Undo the addition first, then undo the division. Take care with the negative numbers.

Worked solution
  1. Work backwards, undoing the last box first. The inverse of +6 is −6.
  2. -1-6=-7.
  3. The inverse of \div2 is \times2: -7\times2=-14.
  4. The input is −14.

Question 18Challenge2 marks

Here is a number machine.

The number in the first box is missing.

When the input is −7, the output is 36.

Work out the missing number.

Hint

Undo the multiplication first, then work out what you add to −7 to reach that number.

Worked solution
  1. Undo the last box to find the number that comes out of the first box. The inverse of \times3 is \div3.
  2. 36\div3=12.
  3. The first box adds enough to turn −7 into 12.
  4. 12-(-7)=12+7=19.
  5. The missing number is 19.

Question 19Challenge2 marks

Here is a number machine.

There is a number for which the output is the same as the input.

Find this number.

Hint

Call the input n and write an expression for the output, or try some inputs.

Worked solution
  1. Call the input n. The machine multiplies by 5, then subtracts 24, so the output is 5n-24.
  2. The output is the same as the input, so 5n-24=n.
  3. Subtract n from both sides: 4n-24=0, so 4n=24 and n=6.
  4. Check: 6\times5=30, then 30-24=6.
  5. The number is 6.

Question 20Challenge2 marks

Here is a number machine.

Find the number for which the output is the same as the input.

Hint

Try some inputs, or call the input n and set the output equal to n.

Worked solution
  1. Call the input n. The output is 4n-33.
  2. The output equals the input, so 4n-33=n.
  3. Subtract n from both sides: 3n=33, so n=11.
  4. Check: 11\times4=44, then 44-33=11.
  5. The number is 11.