Wednesday, October 10, 2012

SOFT6008 Adding up digits

Adding up all the digits in a number, and then adding those digits up again, until you are left with one, turns out to be the same as doing a MOD 9. Except for 18.

Computationally that's must simpler than extracting and adding digits.

No comments: