by PascLeRasc · 8y ago · 0 comments
So if X is divisible by 9, then the sum of the digits (mod 9) is zero.
Same works for 3 (x is div by 3 iff the sum of the digits id divisible by 3). And 11 gets an /alternating/ sum of the digits, since 10 is -1 mod 11...
I think the usual 10 * n - n makes more sense and is much easier to remember.