Skip to content
Vamshi Jandhyala

Books · Number Puzzles

Chapter 15

A Pandigital Divisible by Eleven

Write a nine-digit number using each of the digits 11 to 99 exactly once. What is the probability that it is divisible by 1111? A club of twenty-three once each wrote such a number, found two of them divisible by 1111, and declared the probability to be 223\frac{2}{23}. Were they right?

Solution

A number is divisible by 1111 when the sum of its digits in the odd positions and the sum in the even positions differ by a multiple of 1111. A nine-digit number has five odd positions and four even ones. Let EE be the sum of the four even-position digits; since all nine digits total 4545, the odd-position digits sum to 45E45 - E. The test asks that (45E)E=452E(45 - E) - E = 45 - 2E be a multiple of 1111, which happens exactly when EE leaves remainder 66 on division by 1111.

The four even-position digits are distinct digits from 11 to 99, so EE lies between 1+2+3+4=101+2+3+4 = 10 and 6+7+8+9=306+7+8+9 = 30. The only values in that range leaving remainder 66 are E=17E = 17 and E=28E = 28. Among the four-digit subsets of {1,,9}\{1, \dots, 9\}, nine sum to 1717 and two sum to 2828 (these two being {4,7,8,9}\{4,7,8,9\} and {5,6,8,9}\{5,6,8,9\}), eleven choices in all.

For each such choice of which digits sit in the even positions, there are 4!4! ways to arrange them and 5!5! ways to arrange the other five. So out of all 9!9! arrangements, the proportion divisible by 1111 is 11×4!×5!9!=111260.087.\frac{11 \times 4! \times 5!}{9!} = \frac{11}{126} \approx 0.087. The club’s 2230.087\frac{2}{23} \approx 0.087 was a sample frequency that landed close to the truth by luck. The exact probability is 11126\frac{11}{126}.