Sign in
United Kingdom › MYP Mathematics › Algebra
Question

Highest Common Factor by Subtraction

A6 · C1 · D2 · 9 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.

This algorithm finds the highest common factor (HCF) of two positive whole numbers.

1. Input two numbers $a$ and $b$. 2. If $a = b$, output $a$ and stop. 3. If $a > b$, replace $a$ with $a - b$. Otherwise, replace $b$ with $b - a$. 4. Go back to step 2.

444.1
A2 Level 1–2
[2]Find the output when $a = 84$ and $b = 36$.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

(84, 36) → (48, 36) → (12, 36) → (12, 24) → (12, 12). Output 12.
12

Mark yourself

444.2
A1 Level 3–4
[1]Write down how many times step 3 is used for the inputs in 444.1.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 1 mark

Model answer

Four subtractions: 84 − 36, 48 − 36, 36 − 12, 24 − 12.
4

Mark yourself

444.3
D2 Level 5–6
[2]Mei covers a notice board 84 cm by 36 cm with identical square cards, with no gaps or overlaps. She uses the largest square cards possible, whose side is the HCF of 84 and 36. Calculate the number of cards she needs.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

Side 12 cm. 84 ÷ 12 = 7 cards along, 36 ÷ 12 = 3 cards down. 7 × 3 = 21 cards.
21

Mark yourself

444.4
A2 Level 5–6
[2]The input $b$ is 18. Find the smallest value of $a$ greater than 40 that gives an output of 6.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

a must be a multiple of 6 but must not share the factor 9 with 18. Multiples of 6 above 40: 42, 48, … HCF(42, 18) = 6. Check: (42, 18) → (24, 18) → (6, 18) → (6, 12) → (6, 6). Output 6.
42

Mark yourself

444.5
A1 · C1 Level 7–8
[2]Ravi types $a = 15$ and $b = 0$. Explain why the algorithm never stops.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

Since 15 > 0, step 3 replaces a with 15 − 0 = 15, so nothing changes. a and b never become equal, so step 2 never stops the algorithm and it loops forever.
15 − 0 = 15 each time, so a and b never become equal and the loop never ends.

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