What happens if we do not include the fifth step in the algorithm above? Give examples where the algorithm will work correctly and where it will fail to work.
Step-by-step solution
Idea: Step 5 writes the final carry. Without it, a carry made in the leftmost column has nowhere to go, so the answer loses its first digit 1.
- Step 5 says: if the value of carry is 1 at the end, write 1 to the left of the bottom row. Without it, the final carry is simply thrown away.1 mark
- Works: 473 + 325. Units 3 + 5 = 8, tens 7 + 2 = 9, hundreds 4 + 3 = 7, carry 0. Result 798 ✓. The last column made no carry, so Step 5 was not needed.1 mark
- Fails: 473 + 695. Units 3 + 5 = 8, tens 7 + 9 = 16 (write 6, carry 1), hundreds 4 + 6 + 1 = 11 (write 1, carry 1). Without Step 5 the bottom row is 168, but the correct sum is 1168.1 mark
- So the algorithm without Step 5 works exactly when the leftmost column gives no carry, and fails whenever the leftmost column makes a carry (the answer then has one more digit than the longer number).
Answer to write in the exam
Step 5 writes the final carry 1 on the left. Without it, the last carry is lost.
Works: 473 + 325 → 8, 9, 7 (no final carry) = 798 ✓
Fails: 473 + 695 → 8; 16 (write 6, carry 1); 11 (write 1, carry 1) → 168 ✗ (correct 1168)
∴ Without Step 5 the algorithm fails whenever the leftmost column makes a carry.
Common mistakes that cost marks
- Giving only a “works” example, or only a “fails” example. The question asks for both.
- Choosing a failing example where the carry happens in a middle column only; Step 5 is needed only for a carry out of the leftmost column.
- Writing the lost digit as 0 instead of 1 (the final carry is always 1, never more).
How this can come in the exam
If Step 5 is left out of the addition algorithm, which of these sums comes out wrong?
- 512 + 386
- 640 + 259
- 731 + 452
- 318 + 561
Show answer
(C) 731 + 452
731 + 452 = 1183; the hundreds column gives 7 + 4 = 11, so a final carry is needed. Without Step 5 the answer would be 183. The others (898, 899, 879) make no final carry.
Try one yourself
Without Step 5, what answer does the algorithm give for 856 + 279? What is the correct answer?
Show answer
Units 6 + 9 = 15: write 5, carry 1. Tens 5 + 7 + 1 = 13: write 3, carry 1. Hundreds 8 + 2 + 1 = 11: write 1, carry 1. Without Step 5: 135. Correct: 1135.
More questions like this
- 1. See if you can complete the argument about grouping by units, tens, hundreds, … to justify why the addition algorithm works.
2. How would you modify the algorithm to add two decimal fractions? - Algorithm to find the divisors of n: 1. Start with an empty list-of-divisors. 2. For each number j in the sequence 1, 2, 3, …, n – if j divides n, add j to the list-of-divisors. Let us execute this algorithm for a small number, say 18.
- Try to execute the algorithm to compute the divisors of 15, 135, and 775. How does the amount of work increase as the numbers grow?
- If we look through the divisors of 375 and 825 above, we see that the answer is 75. What if the numbers were 54000 and 81000?
- Suppose we want to compute gcd(375, 825).