Learnify Academy is a tuition centre in Bahrain. Classes are for students in Bahrain only.Tuition classes in Bahrain only

Algorithms · 3 marks

What happens if you add a 5-digit number to a 3-digit number. Do our steps handle this situation correctly?

Answer: Not as written. After 3 columns the shorter number has no digits left, but Step 3 says “add the two digits”, so the steps do not say what to do. Treat the missing digits as 0 (e.g. 389 = 00389); then 52746 + 389 = 53135 correctly.

Step-by-step solution

Idea: Step 3 always expects two digits in a column. When one number is shorter, the left-hand columns have only one digit. Writing zeros in front of the shorter number (which does not change its value) fixes this.

  1. Take 52746 + 389 and line them up from the right: 9 under 6, 8 under 4 and 3 under 7.
  2. Units: 6 + 9 = 15, write 5, carry 1. Tens: 4 + 8 + 1 = 13, write 3, carry 1. Hundreds: 7 + 3 + 1 = 11, write 1, carry 1.1 mark
  3. Now the thousands column has only one digit (2); the 3-digit number has run out. Step 3 says “Add the two digits and the current value of carry”, so taken precisely the step cannot be carried out. Step 4 says repeat “until there are no more digits on the left”, but it is not clear whether that means in both numbers or in one. So the steps do not handle this case as written.1 mark
  4. Fix: write zeros in front of the shorter number so both have the same number of digits: 389 = 00389. Zeros in front do not change the value. Now every column has two digits: thousands 2 + 0 + 1 = 3, carry 0; ten-thousands 5 + 0 + 0 = 5. Result 53135.1 mark
  5. Check: 52746 + 389 = 53135 ✓. (Another fix is to add one line to Step 3: “if a column has only one digit, add that digit and the carry”.)
As written, the steps do not handle it: Step 3 needs two digits in each column. Padding the shorter number with zeros on the left (389 → 00389) makes the steps work: 52746 + 389 = 53135.

Check: 53135 − 389 = 52746 ✓.

Answer to write in the exam

52746 + 389

Units: 6 + 9 = 15, write 5, carry 1; Tens: 4 + 8 + 1 = 13, write 3, carry 1; Hundreds: 7 + 3 + 1 = 11, write 1, carry 1

Thousands column has only one digit (2); Step 3 needs “two digits”, so the steps give no instruction.

Fix: write 389 as 00389 (zeros on the left do not change the value).

Thousands: 2 + 0 + 1 = 3; Ten-thousands: 5 + 0 = 5

∴ 52746 + 389 = 53135; the steps work only after padding the shorter number with zeros.

Common mistakes that cost marks

  • Lining up the 3-digit number under the first three digits from the left, which adds hundreds to ten-thousands.
  • Saying “yes, it works” without noticing that Step 3 always talks about two digits.
  • Dropping the carry when moving into the columns that have only one digit (writing 2 instead of 3 in the thousands place here).

How this can come in the exam

Short answer (2 marks)

Add 80327 + 596 using the column method, padding the shorter number with zeros. Show every column.

Show answerWrite 596 as 00596. Units 7 + 6 = 13: write 3, carry 1. Tens 2 + 9 + 1 = 12: write 2, carry 1. Hundreds 3 + 5 + 1 = 9: write 9, carry 0. Thousands 0 + 0 = 0. Ten-thousands 8 + 0 = 8. Answer 80923.

Try one yourself

Add 41858 + 77 by the column method. Which columns have only one digit before you pad with zeros?

Show answer

Pad 77 as 00077. Units 8 + 7 = 15: write 5, carry 1. Tens 5 + 7 + 1 = 13: write 3, carry 1. Hundreds 8 + 0 + 1 = 9: write 9, carry 0. Thousands 1 + 0 = 1. Ten-thousands 4. Answer 41935. Before padding, the hundreds, thousands and ten-thousands columns had only one digit.

More questions like this

All Algorithms questions · All maths questions