When I was in junior high, 35 years ago (or so), I learned a rule for quickly determining if a number is divisible by 11: you alternately subtract and add the digits, and if that result is divisible by 11, so was the original number.
So 43945 is, because 4-3+9-4+5 = 11, which is divisible by 11.
870428 is not, because 8-7+0-4+2-8 = -9, which is not divisible by 11.
My daughter is learning how to divide polynomials in math right now, and it occurred to me that’s an easy way to prove this. Place value is really shorthand for a polynomial expression; for instance, 43945 means
410[sup]4[/sup] + 310[sup]3[/sup] + 910[sup]2[/sup] + 410[sup]1[/sup] + 5*10[sup]0[/sup].
So any number ABCDEF… is
A10[sup]n[/sup] + B10[sup]n-1[/sup] + C10[sup]n-2[/sup] + D10[sup]n-3[/sup] + E*10[sup]n-4[/sup] + …
11 is 10 + 1, so it’s like dividing a generalized polynomial expression by (X+1). X just happens to be 10 in our normal lives. Consider the number ABCDE… in some base, expressed as a polynomial.
First pass of long division by (X + 1), you get A*X[sup]n-1[/sup], leaving:
(B-A)X[sup]n-1[/sup] + CX[sup]n-2[/sup] + DX[sup]n-3[/sup] + EX[sup]n-4[/sup] + …
Second pass, you get A*X[sup]n-1[/sup] + (B-A)*X[sup]n-2[/sup], leaving:
(C-(B-A))X[sup]n-2[/sup] + DX[sup]n-3[/sup] + EX[sup]n-4[/sup] + … which is
(C- B+A )X[sup]n-2[/sup] + DX[sup]n-3[/sup] + EX[sup]n-4[/sup] + …
Third pass:
(D- C+B-A )X[sup]n-3[/sup] + EX[sup]n-4[/sup] + …
Finally, you’ll get to the term that’s X[sup]n-n[/sup], or X[sup]0[/sup], otherwise known as the ones digit.
And you’ll be left with a remainder (suppose it was K digits long)
K-J+I-H+…-B+A.
Now if the *remainder *is divisible by 11, so was the original number, right? Duh.
But wait. K-J+I-H+…-B+A is exactly the *opposite *of the rule A-B+C-D+E-…
Yeah, but if a number is divisible by 11, so is (negative) that number.
So yeah, that proves the 11 rule. But it also means this rule works in any base! We just did it for the general X, not 10, specifically. In base 16, for instance, you could easily check if a number is divisible by 17 by alternately subtracting and adding the digits.
I realized a few years ago about the number 9 divisibility rule (just add the digits - we all know that one, right?), and it also holds for other bases. The digit one less than the base (the highest single digit number) always has that divisibility rule, but the ‘one more than the base’ being true across all bases had eluded me. And the rule for 9 is even more obvious now, because you could divide a polynomial expression by (x-1) and get a remainder of A+B+C+D+…
Why am I posting this here? This is the only place on the internet I could post it and not be (probably justifiably) ridiculed.