When I was still in elementry school (4-12 years old in Holland) we were tought to do multiplication without the use of a calculator, for example 128 * 415. When I came home with some homework my father recalled a trick he learned when he was younger. I remembered this recently, but can't figure out how it works.
First you calculate the result:
128
415 x
-------
640
1280
51200 +
--------
53120
Then the trick: Take the separate digits of the first number: 1,2 and 8. Add these together: 1 + 2 + 8 = 11 While the result is more than one digit, do it again: 1 + 1 = 2. The first "checksum" is 2.
Do the same for the second number: 4 + 1 + 5 = 10, then our second checksum is 1: 1 + 0 = 1.
Multiply these checksums: 1 * 2 = 2. The checksum of the input in this case is 2.
Now we do the same for the answer we calculated: 5 + 3 + 1 + 2 + 0 = 11, This means our answer checksum is 2: 1 + 1 = 2.
Finally compare both "checksums": we found 2 for the input and 2 for the answer, which means our answer might be correct. I'm pretty sure it's not a 100% secure check with chances of false-positives, but I haven't come across one where the checksum failed on a correct answer, or where the checksum was correct but the answer was invalid.
The question: Can anyone explain how this works?