Sign in
United Kingdom › MYP Mathematics › Algebra
Question

A Flowchart That Triples

A9 · C1 · 10 marks · ~10 min
✦ Created by our AI question engine · answers checked by script Self-marked 0 / 9
How this page works Full help
  1. Read the question and the information above the parts.
  2. Write your working and your answer in the box for each part, with units, as in the exam. Press Enter for a new line.
  3. Check your final line with Check my answer. Use the calculator on the right when you need it.
  4. Mark yourself: open the markscheme and tick each mark you earned.

Ifeoma writes a flowchart for a computing club puzzle. Each time round the loop, the number $x$ is multiplied by 3 and then 4 is subtracted.

In words: input $x$. Replace $x$ with $3x - 4$. If $x > 100$, output $x$ and stop. If not, go back and replace $x$ with $3x - 4$ again.

StartInput xReplace x with 3x − 4Is x > 100?Output xStopYesNo
Flowchart
441.1
A2 Level 1–2
[2]Find the output when the input is 5.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

5 → 11 → 29 → 83 → 245. 245 > 100, so the output is 245.
245

Mark yourself

441.2
A2 Level 3–4
[2]The input is 4. Write down how many times the box 'Replace $x$ with $3x - 4$' is used.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

4 → 8 → 20 → 56 → 164. The box is used 4 times.
4

Mark yourself

441.3
A2 Level 5–6
[2]The output is 113. Find the input, given that it is a positive whole number.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

Work backwards: (113 + 4) ÷ 3 = 39. 39 is not more than 100, so 39 → 113 is the last step. Going back again, (39 + 4) ÷ 3 = 14.33…, which is not a whole number, so the input is 39.
39

Mark yourself

Key idea. Undo the operations in reverse order: add 4, then divide by 3.

441.4
A1 · C1 Level 5–6
[2]Pablo enters 2. Explain what happens.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

3 × 2 − 4 = 2, so x stays at 2 every time. It is never greater than 100, so the flowchart goes round the loop forever and never gives an output.
3 × 2 − 4 = 2, so x stays 2 and the loop never stops.

Mark yourself

441.5
A2 Level 7–8
[2]Select every input for which the flowchart never stops.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

0 → −4 → −16 → −52 → … and 1 → −1 → −7 → −25 → … keep decreasing, so x never passes 100 and the flowchart never stops. 2 maps to itself (3 × 2 − 4 = 2), so x stays at 2 for ever and never stops. 3 and 10 grow and stop (outputs 245 and 218).
0, 1 and 2

Mark yourself

Solves
0
Average rating
–
Open reports
0

Assessment criteria

A
Knowing and understanding
B
Investigating patterns
C
Communicating
D
Applying mathematics in real-life contexts

Quality checks

  • Created by our AI question engine
  • Every number checked by script
  • Published for students