Function Machines

Question 11 mark

Here is a number machine.

Work out the output when the input is 7

Hint

Put the input into the machine and do what the box says.

Worked solution

Here is a number machine.

Work out the output when the input is 7

  1. 7\times4=28.
  2. The output is 28.

Question 21 mark

Here is a number machine.

Work out the output when the input is 8

Hint

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

Worked solution

Here is a number machine.

Work out the output when the input is 8

  1. First box: 8-3=5.
  2. Second box: 5\times5=25.
  3. The output is 25.

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

Here is a number machine.

Work out the output when the input is 20

  1. First box: 20\div4=5.
  2. Second box: 5+6=11.
  3. The output is 11.

Question 42 marks

Here is a number machine.

The output is 19

Work out the input.

Hint

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

Worked solution

Here is a number machine.

The output is 19

Work out the input.

  1. Work backwards from 19. The opposite of subtract 2 is add 2: 19+2=21.
  2. The opposite of multiply by 3 is divide by 3: 21\div3=7.
  3. Check: 7\times3=21 and 21-2=19. The input is 7.

Question 52 marks

Here is a number machine.

(a)

Work out the output when the input is 6

1 mark

(b)

Work out the input when the output is 30

1 mark

Hint

For the output, work forwards. For the input, work backwards using opposite operations.

Worked solution

Here is a number machine.

Part (a)

Work out the output when the input is 6

  1. First box: 6+4=10.
  2. Second box: 10\times2=20.
  3. The output is 20.

Part (b)

Work out the input when the output is 30

  1. Work backwards from 30. The opposite of multiply by 2 is divide by 2: 30\div2=15.
  2. The opposite of add 4 is subtract 4: 15-4=11.
  3. Check: 11+4=15 and 15\times2=30. The input is 11.

Question 61 mark

Here is a number machine.

The output is 4.5

Work out the input.

Hint

Do the opposite of dividing by 6.

Worked solution

Here is a number machine.

The output is 4.5

Work out the input.

  1. The opposite of divide by 6 is multiply by 6: 4.5\times6=27.
  2. Check: 27\div6=4.5. The input is 27.

Question 72 marks

Here is a number machine.

The output is 120

Work out the input.

Hint

Start at the output and undo the last box first.

Worked solution

Here is a number machine.

The output is 120

Work out the input.

  1. The opposite of multiply by 4 is divide by 4: 120\div4=30.
  2. The opposite of add 7 is subtract 7: 30-7=23.
  3. Check: 23+7=30 and 30\times4=120. 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

Here is a number machine.

The output is 7

Work out the input.

  1. The opposite of subtract 8 is add 8: 7+8=15.
  2. The opposite of divide by 3 is multiply by 3: 15\times3=45.
  3. Check: 45\div3=15 and 15-8=7. The input is 45.

Question 91 mark

Here is a number machine.

Work out the output when the input is -5

Hint

A negative number multiplied by a positive number gives a negative answer.

Worked solution

Here is a number machine.

Work out the output when the input is -5

  1. First box: -5\times4=-20.
  2. Second box: -20+9=-11.
  3. The output is -11.

Question 101 mark

Here is a number machine.

Work out the output when the input is 10

Hint

10 divided by 4 is not a whole number. Write it as a decimal.

Worked solution

Here is a number machine.

Work out the output when the input is 10

  1. First box: 10\div4=2.5.
  2. Second box: 2.5+1.6=4.1.
  3. The output is 4.1.

Question 112 marks

Here is a number machine. The number in the second box is missing.

When the input is 7, the output is 41

What number should go in the second box?

Hint

Put 7 through the first box. What do you need to add to get 41?

Worked solution

Here is a number machine. The number in the second box is missing.

When the input is 7, the output is 41

What number should go in the second box?

  1. First box: 7\times5=35.
  2. The second box must change 35 into 41: 41-35=6.
  3. The missing number is 6, so the box is +\,6.

Question 122 marks

Here is a number machine. The number in the first box is missing.

When the input is 9, the output is 69

What number should go in the first box?

Hint

Work backwards from 69 through the second box first.

Worked solution

Here is a number machine. The number in the first box is missing.

When the input is 9, the output is 69

What number should go in the first box?

  1. Undo add 6: 69-6=63.
  2. So 9 times the missing number is 63, and 63\div9=7.
  3. The missing number is 7, so the box is \times\,7.

Question 132 marks

Here is a number machine. The number in the second box is missing.

When the input is 40, the output is 9

What number should go in the second box?

Hint

Put 40 through the first box. What do you divide by to get 9?

Worked solution

Here is a number machine. The number in the second box is missing.

When the input is 40, the output is 9

What number should go in the second box?

  1. First box: 40-4=36.
  2. 36 divided by the missing number is 9, and 36\div9=4.
  3. The missing number is 4, so the box is \div\,4.

Question 142 marks

Here are two number machines. They have the same boxes in a different order.

The same input, 4, is put into both machines.

How much bigger is the output of machine A than the output of machine B?

Hint

Work out the output of each machine separately, then compare them.

Worked solution

Here are two number machines. They have the same boxes in a different order.

The same input, 4, is put into both machines.

How much bigger is the output of machine A than the output of machine B?

  1. Machine A: 4+3=7, then 7\times5=35.
  2. Machine B: 4\times5=20, then 20+3=23.
  3. 35-23=12. The output of machine A is 12 bigger.

Question 152 marks

Here is a number machine.

The output is 21

Ravi tries to find the input. He works out 21\div2=10.5 and then 10.5-5=5.5

Ravi's answer is wrong.

(a)

What mistake has Ravi made?

1 mark

Choose one answer
(b)

Work out the correct input.

1 mark

Hint

When working backwards, undo the last box first.

Worked solution

Here is a number machine.

The output is 21

Ravi tries to find the input. He works out 21\div2=10.5 and then 10.5-5=5.5

Ravi's answer is wrong.

Part (a)

What mistake has Ravi made?

  1. He undid the boxes in the wrong order: he should subtract 5 first
  2. He should have multiplied by 2 instead of dividing
  3. He should have added 5 instead of subtracting
  4. He should have started with the input, not the output
  1. The number goes through multiply by 2 first and add 5 last.
  2. Working backwards, the add 5 must be undone first. Ravi undid the boxes in the wrong order.

Part (b)

Work out the correct input.

  1. Undo add 5: 21-5=16.
  2. Undo multiply by 2: 16\div2=8.
  3. Check: 8\times2=16 and 16+5=21. The input is 8.

Question 16Challenge3 marks

Here is a number machine.

(a)

The input is n. Write down an expression, in terms of n, for the output.

1 mark

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

(b)

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

Work out this number.

2 marks

Hint

Call the input n and follow it through the machine.

Worked solution

Here is a number machine.

Part (a)

The input is n. Write down an expression, in terms of n, for the output.

  1. First box: n\times4=4n.
  2. Second box: 4n-15.
  3. The output is 4n-15.

Part (b)

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

Work out this number.

  1. The output equals the input, so 4n-15=n.
  2. Subtract n from both sides: 3n-15=0, so 3n=15.
  3. Divide by 3: n=5.
  4. Check: 5\times4=20 and 20-15=5. The number is 5.

Question 17Challenge3 marks

Here is a number machine.

For one input, the output is twice the input.

Work out this input.

Hint

Call the input n. Write the output in terms of n and make it equal to 2n.

Worked solution

Here is a number machine.

For one input, the output is twice the input.

Work out this input.

  1. Let the input be n. The output is 3(n-4)=3n-12.
  2. The output is twice the input: 3n-12=2n.
  3. Subtract 2n from both sides: n-12=0, so n=12.
  4. Check: 12-4=8 and 8\times3=24, which is twice 12. The input is 12.

Question 18Challenge3 marks

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

When the input is 3, the output is 17

When the input is 5, the output is 27

(a)

What number should go in the first box?

2 marks

(b)

What number should go in the second box?

1 mark

Hint

Compare the two inputs and the two outputs.

Worked solution

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

When the input is 3, the output is 17

When the input is 5, the output is 27

Part (a)

What number should go in the first box?

  1. The input goes up from 3 to 5, which is 2 more.
  2. The output goes up from 17 to 27, which is 10 more.
  3. Each 1 added to the input adds 10\div2=5 to the output, so the machine multiplies by 5.

Part (b)

What number should go in the second box?

  1. 3\times5=15 and the output is 17, so the second box adds 17-15=2.
  2. Check with the other input: 5\times5+2=27. The missing number is 2.

Question 19Challenge3 marks

Here are two number machines.

The same number is put into both machines. Both machines give the same output.

Work out the number that was put in.

Hint

Call the input n. Write each output in terms of n and make them equal.

Worked solution

Here are two number machines.

The same number is put into both machines. Both machines give the same output.

Work out the number that was put in.

  1. Let the input be n. Machine A gives 3n+10. Machine B gives 5n-4.
  2. The outputs are the same: 3n+10=5n-4.
  3. Subtract 3n from both sides: 10=2n-4. Add 4: 14=2n, so n=7.
  4. Check: 3\times7+10=31 and 5\times7-4=31. The number is 7.

Question 20Challenge3 marks

Here is a number machine.

The output is -6

Work out the input.

Hint

Work backwards through all three boxes, starting with the last one.

Worked solution

Here is a number machine.

The output is -6

Work out the input.

  1. Undo multiply by 6: -6\div6=-1.
  2. Undo subtract 3: -1+3=2.
  3. Undo divide by 4: 2\times4=8.
  4. Check: 8\div4=2, 2-3=-1 and -1\times6=-6. The input is 8.