Puzzle 26 -

Your algebra teacher tells you that every three digit number is divisible evenly by 11 if the middle digit is the sum of the first and third digits. Naturally your teacher expects you to prove this using algebra, but ... your algebra is incredibly rusty.

Your task therefore is to write an xbasic program that proves or disproves the hypothesis. Your solution should list all the three digit numbers in which the middle digit is the sum of the first and third digits, and for each it should show both the quotient and the remainder when the number is divided by 11.

You may dump the results to the trace window, or to a disk file.

Have fun.

Puzzle idea, credit plus.maths.org.

## Bookmarks