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 71 mark

Here is a number machine.

Work out the output when the input is −13.

Hint

Do the first box before the second. What is -13+7?

Worked solution
  1. Work forwards, finishing the first box before the second. Do not work out -13+7\times5 on a calculator in one go: that multiplies first.
  2. -13+7=-6.
  3. -6\times5=-30.
  4. The output is −30.

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.

The input is k.

Write down the output in terms of k.

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

Hint

Do to k what each box says, in order. How do you write k divided by 5?

Worked solution
  1. Put k through the boxes in order.
  2. The first box divides by 5: k\div5 is written \frac{k}{5}.
  3. The second box subtracts 2: \frac{k}{5}-2.
  4. The output is \frac{k}{5}-2 (also written \frac{1}{5}k-2 or 0.2k-2).

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.

The input is m.

Write down the output in terms of m.

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

Hint

The machine subtracts 6 first, so the whole of m-6 is multiplied by 5. How do you show that?

Worked solution
  1. Put m through the boxes in order.
  2. The first box subtracts 6: m-6.
  3. The second box multiplies all of m-6 by 5, so it needs a bracket: 5(m-6).
  4. Writing m-6\times5 is wrong: that multiplies only the 6.
  5. The output is 5(m-6), or 5m-30 multiplied out.

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.

The input is t and the output is s.

Work out a formula for s in terms of t.

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

Hint

Put t through the machine to get an expression. A formula needs s= in front of it.

Worked solution
  1. Put t through the boxes in order.
  2. The first box multiplies by 4: 4t.
  3. The second box subtracts 15: 4t-15.
  4. The output is s, so the formula is s=4t-15. The expression 4t-15 on its own is not a formula: it needs the s=.

Question 17Challenge2 marks

Here is a number machine.The numbers in both boxes are missing.

When the input is 9, the output is 47.

When the input is 4, the output is 17.

Complete the number machine.

\times\,{}{}\ \rightarrow\ -\,{}

Hint

The same two numbers must work for both inputs. Compare how much the input goes up with how much the output goes up.

Worked solution
  1. The same machine must work for both pairs, so do not choose numbers that fit only one of them.
  2. The input goes up by 9-4=5 and the output goes up by 47-17=30.
  3. Subtracting the same number from both does not change the gap, so multiplying turns a gap of 5 into a gap of 30: 30\div5=6. The first box is \times\,6.
  4. Input 4: 4\times6=24, and 24-17=7, so the second box is -\,7.
  5. Check with input 9: 9\times6=54 and 54-7=47, as required.

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 19Challenge1 mark

Here is a number machine.The input is n.

The first box subtracts a number.

Complete the number machine so that the output is 6n-54.

-\,{}

Hint

Call the missing number a. Put n through the machine with a bracket, then multiply out and compare with 6n-54.

Worked solution
  1. If the first box is -\,a, the output is 6(n-a)=6n-6a.
  2. This must be 6n-54, so 6a=54.
  3. a=54\div6=9. The first box is -\,9, not -\,54: the 54 is the subtracted number after it has been multiplied by 6.
  4. Check: 6(n-9)=6n-54.

Question 20Challenge4 marks

Here are two number machines.

The input to both machines is 24.

The outputs are the same.

Work out the value of b.

Hint

Start with the machine that has no letter in it and work out its output.

Worked solution
  1. Work out the output of the bottom machine, which has no letter.
  2. 24\div3=8, then 8\times7=56.
  3. The top machine must also give 56. Its first box: 24\times4=96.
  4. The second box subtracts b from 96 to leave 56: 96-b=56.
  5. b=96-56=40. It is not −40, and not 96+56.
  6. Check: 96-40=56, the same as the bottom machine.
  7. b=40.