Sign in
United Kingdom › MYP Mathematics › Algebra
Question

The Digit Sum Machine

B8 · C2 · 10 marks · ~14 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.

Rhys writes this algorithm.

1. Input a positive whole number $n$. 2. Replace $n$ with the sum of its digits. 3. If $n$ has more than one digit, go back to step 2. 4. Output $n$.

For example, with input 587: step 2 gives 5 + 8 + 7 = 20. This has two digits, so step 2 is used again: 2 + 0 = 2. The output is 2, and step 2 was used twice.

442.1
B1 Level 1–2
[1]Find the output when the input is 4785.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 1 mark

Model answer

4 + 7 + 8 + 5 = 24, then 2 + 4 = 6. Output 6.
6

Mark yourself

442.2
B1 Level 1–2
[1]The input is 99 999. Write down how many times step 2 is used.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 1 mark

Model answer

99 999 → 45 (first use) → 9 (second use). Step 2 is used 2 times.
2

Mark yourself

442.3
B1 · C1 Level 3–4
[2]Rhys tries the inputs 10, 11, 12, …, 20. The outputs are 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2. Describe the pattern in the outputs.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

The outputs go up by 1 each time from 1 to 9, then start again at 1. The pattern repeats every 9 inputs.
The outputs count 1 to 9 and then repeat, a cycle of length 9.

Mark yourself

442.4
B2 Level 5–6
[2]Select the general rule for the output for any input $n$.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

Test the rule on known inputs: 587 = 9 × 65 + 2 → 2 ✓; 4785 = 9 × 531 + 6 → 6 ✓; 18 leaves remainder 0 but the output is 9, so remainder 0 must give 9.
Remainder of n ÷ 9, with remainder 0 giving 9

Mark yourself

442.5
B1 · C1 Level 5–6
[2]Use your rule to predict the output for the input 2026, then verify it by following the algorithm.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

Rule: 2026 = 9 × 225 + 1, remainder 1, so the output is 1. Check: 2 + 0 + 2 + 6 = 10, then 1 + 0 = 1 ✓.
1

Mark yourself

442.6
B2 Level 7–8
[2]Find the smallest three-digit input that gives an output of 7 and uses step 2 exactly twice.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

Two uses means the digit sum has two digits and itself sums to 7, so the digit sum is 16 or 25. The smallest three-digit number with digit sum 16 has hundreds digit 1, so the other digits add to 15: smallest is 69. Input 169: 1 + 6 + 9 = 16, then 1 + 6 = 7 ✓.
169

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