## Probability and Divisibility by 11

Seven different playing cards, with values from

acetoseven, are shaken in a hat, then taken out singly and then placed in a row. What is the probability that this seven-digit number is divisible by 11?

The probability above is computed by the usual quotient

where there are possible numbers of seven digits with each of the digits different to each other, and member of the set . The number of favorable cases is given by how many of the possible cases are actually divisible by 11. Finding those favorable cases by hand is an extremely tedious task, of course. Can we find a more elegant—and faster—way to compute the number of favorable cases? The trick is based on using the right test of divisibility by 11.

An example of test of divisibility by 11 goes like this: **Take the digits in a right-to-left order, alternatively subtracting and adding. Only if the final result is divisible by 11 will the original number be divisible by 11.**

For example, for the 7-digit number , the divisibility test gives , which is not divisible by 11 (therefore, neither is ).

A few useful facts:

- Let us represent our particular seven-digit numbers by , where each letter goes for a different digit of the set .
- The test of divisibility by 11 on the previous number calls for the computation of

- Notice that , an even number.
- Remember the rules of addition of even and odd numbers:

- The latter two facts above imply that and both have the same parity (they are either both even or both odd at the same time).
- As a consequence of the last fact, the subtraction has to be an even number too!
- The largest possible value for the test of divisibility by 11 in our numbers, , happens for numbers where , , and are largest; that is, they are the permutations of the four digits . This value is, of course,
- The smallest possible value for the test of divisibility by 11 in our numbers happens for numbers where , and are largest; that is, they are permutations of the three digits . This value is, of course, .
- In our case, there are then only thirteen different possible tests of divisibility by 11: . Of these, only one is divisible by 11: the “zero”.

You should have all the needed information to finish this problem. How many numbers of the form give us a “zero” when we perform the divisibility-by-11 test? From here, it should not be too hard to compute the probability.

Let , and . We are looking for and satisfying the linear system:

The solution gives . We are very close to the punch line.

For example, all the possible triples satisfying are given below:

Let us work with one of those triples, say . The possible seven-digit numbers that we can come up with for this choice of are :

We still need to fill in the values for . In the case we are exploring, we notice that there are possibilities for each of the 6 choices above. For instance, if , and , we would have the numbers

So, what is the probability we are looking for?

Hi, I’m no mathematician but 1771561 is 11 to the power of 6, so is clearly divisible by 11, but 1 – 6 + 5 – 1 + 7 – 7 + 1 = 0 So am I missing something?

How does this relate to your divisibility rule above?

Zero is divisible by 11.