Professional Documents
Culture Documents
Gustavo Toja from Brasil came up with an interesting method of divisibility by 7. As we shall see, the method also
works to verify the divisibility by 11 and 13.
Accordingly, let F be one of these numbers, 7, 11, or 13.
Any given number A written in the decimal system admits a representation into two digit numbers:
A = 102i ai,
where is a shorthand symbol for "sum" and index i ranges from 0 to the greatest value n such that 102n does not
exceed A. For example,
1234567 = 1061 + 10423 + 10245 + 67.
(Here i = 0, 1, 2, 3 and n = 3 because 1024 is already greater than A = 1234567 while 1023 is still less than A.) As
we see, the leftmost member of the representation may be a one-digit number.
The procedure is as follows: Find the remainders di of division of ai by F. Alternately, replace di by (F - di) and write
the result in the reverse order. The resulting number will be divisible by F depending whether A is itself divisible or
not.
Remark
If the divisibility of A is all we need to determine, it does not matter where you start replacing di with its additive
inverse (F - di). One can begin with the rst digit as well as the second. However, as we shall later see, if we also
have to nd the remainder of the division by F, it is quite advantageous to make sure that the rst digit of the
number written in reverse has not been modied. Thus given a sequence of remainders, replace them with their
additive inverses starting from the second remainder on the right and move leftwards. This will guarantee that the
rightmost remainder has not been changed.
If you prefer to think in terms of "moving rightwards", then the rule is this: Let n be the number of the 2-digit parts
of A. For n even, replace di starting with dn-1, the leftmost remainder; for n odd, start with dn-2, the second
remainder.
3433
Replace every other remainder with its additive inverse modulo 7:
4344
Consider the number having the above digits but written in the reverse order: 3444. Apply the same procedure to
3444:
43 44 => 1 2 => 21.
Since 21 is divisible by 7, so is 3444 and also 38391787!
Let's take another example: F = 11 and A = 4711927.
4 71 19 27 => 4 5 8 5 = > 7 5 3 5 =>
5357 => 53 57 => 9 2 => 2 2 => 22.
Conclude: since 22 is divisible by 11, so is 5357, and so is 4711927. And one more example: F = 13, A = 61255051.
61 25 50 51 => 9 12 11 12 => 4 12 2 12.
In this case, the remainders written in the reverse order give the sequence: 12 2 12 4. To form a number, the left
digit of the two digit "parts" must be carried over:
12 2 12 4 => 12324 => 1 23 24 =>
1 10 11 => 1 3 11 => 11 3 1 =>
1131 => 11 31 => 11 5 => 2 5 = 52.
Conclude: since 52 is divisible by 13, so is 12324 and, consequently, 61255051.
Now, what is the explanation for this property of the three numbers: 7, 11, 13. What do they have in common?
(They are of course consecutive primes, but this is not important for the problem at hand.) Two things are
important:
1. All three are mutually prime with 10.
2. 71113 = 1001.
The rst property implies that, for any A and any power 10n of 10,
F divides A iff F divides F10n, or, in short,
F|A iff F|10nA.
The second property implies
1000 = -1 (mod F),
3k
k (mod 2)
Related material
Read more...
Divisibility Criteria
Fermat's Little Theorem
Divisibility Criteria (Further Examples)
Criteria of divisibility by 9 and 11
Division by 81
5109094x171709440000 = 21!, nd x
When 3AA1 is divisible by 11?