Divisibility by 11 of a 9-digit integer.

Michelle forms a 9-digit integer by arranging the digits 1, 2, 3, 4, 5, 6, 7, 8, 9 in random order.

What is the probability that this integer is divisible by 11?

If the probability can be expressed as a b \dfrac ab for co-prime positive integers a a and b b , find the value of a + b a+b .


The answer is 137.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Arjen Vreugdenhil
Oct 17, 2015

A number is divisible by 11 if the result of alternatingly adding and subtracting them is divisible by 11. For instance, 182539467 is divisible by 11 because 1 8 + 2 5 + 3 9 + 4 6 + 7 = 11 1 - 8 + 2 - 5 + 3 - 9 + 4 - 6 + 7 = -11 is.

Thus we wish to divide the digits 1 through 9 into a group of five and a group of four digits, such that ( sum of the five digits ) ( sum of the four digits ) = multiple of 11 . (\text{sum of the five digits}) - (\text{sum of the four digits}) = \text{multiple of 11}. The sum of the digits is 45. It is easy to see that our options are limited to 28 17 28 - 17 , 39 6 39 - 6 , and vice versa. There is no way to make four or five of the digits to add up to 6. Therefore we must consider the possible ways in which either f o u r four or f i v e five of the digits add up to 17. (The other group will automatically add up to 28.)

These are: 12347 , 12356 ; 1259 , 1268 , 1349 , 1358 , 1367 , 1457 , 2348 , 2357 , 2456. 12347, 12356; 1259, 1268, 1349, 1358, 1367, 1457, 2348, 2357, 2456. Thus there are 11 ways to distribute the digits over groups of four and five with the desired properties. Within each group, the digits can be placed in any order, so that there are 4 ! 5 ! 4!5! arrangements for each group.

The probability is therefore 11 4 ! 5 ! 9 ! = 11 126 , \frac{11\cdot4!5!}{9!} = \frac{11}{126}, making the answer equal to 137 \boxed{137} .

I did the same way, but missed the 2356 and 2456.

Niranjan Khanderia - 5 years, 7 months ago

Can we find a way doing the problem of finding the 5or4 digit which add up to 17 by some other method instead of counting ........ Here it is fortunately easy but what with a bigger number say 20 ........??????

Gauri shankar Mishra - 4 years, 8 months ago

Log in to reply

I don't think there exists an easy way to do it. It's akin to partitions, which are hard to compute.

Joe Mansley - 2 years ago
Joey Hunt
Oct 16, 2015

Michelle's number, N N , is formed by taking a i { 1 , 2 , , 9 } a_i\in\{1,2,\ldots,9\} for i = 0 , 1 , , 8 i=0,1,\ldots,8 , with a i a j a_i\neq a_j if i j i\neq j . Let a 9 = 0 a_9=0 (for ease of notation in the line below).

Her number is then N = i = 0 9 1 0 i a i = j = 0 4 ( 1 0 2 j + 1 a 2 j + 1 + 1 0 2 j a 2 j ) = j = 0 4 10 0 j ( 10 a 2 j + 1 + a 2 j ) N=\sum_{i=0}^9 10^i a_i = \sum_{j=0}^4\left(10^{2j+1}a_{2j+1}+10^{2j} a_{2j}\right) = \sum_{j=0}^4 100^j \left(10a_{2j+1}+a_{2j}\right) .

Since 100 = 1 100=1 (mod 11),

N = j = 0 4 ( 10 a 2 j + 1 + a 2 j ) N=\sum_{j=0}^4 \left(10a_{2j+1}+a_{2j}\right) (mod 11)

= 10 j = 0 3 a 2 j + 1 + j = 0 4 a 2 j =10\sum_{j=0}^3a_{2j+1}+\sum_{j=0}^4a_{2j} .

This expression must be 0 (mod 11) if 11 divides N N . The largest this value can be is 10 ( 9 + 8 + 7 + 6 ) + ( 5 + 4 + 3 + 2 + 1 ) = 315 10(9+8+7+6)+(5+4+3+2+1)=315 . Other values can be found by decreasing the sum of the first group, { a 2 j + 1 } j = 0 3 \{a_{2j+1}\}_{j=0}^3 , by 1 and increasing the sum of the second group, { a 2 j } j = 0 4 \{a_{2j}\}_{j=0}^4 , by 1 (e.g. 10 ( 9 + 8 + 7 + 5 ) + ( 6 + 4 + 3 + 2 + 1 ) 10(9+8+7+5)+(6+4+3+2+1) ), thus changing the value by 10 + 1 = 9 -10+1=-9 , down to the smallest possible value, 10 ( 1 + 2 + 3 + 4 ) + ( 5 + 6 + 7 + 8 + 9 ) = 135 10(1+2+3+4)+(5+6+7+8+9)=135 .

So all possible values of N N (mod 11) are 315 , 306 , 297 , 288 , , 198 , 189 , , 135 315, 306, 297, 288, \ldots, 198, 189,\ldots, 135 . Of these, only 297 and 198 are congruent to 0 mod 11.

In order for 10 ( j = 0 3 a 2 j + 1 ) + ( j = 0 4 a 2 j ) = 10 A + B = 297 10\left(\sum_{j=0}^3a_{2j+1}\right)+\left(\sum_{j=0}^4a_{2j}\right)=10A+B=297 and A + B = 1 + 2 + + 8 + 9 = 45 A+B=1+2+\cdots+8+9=45 , we must have A = 28 A=28 and B = 17 B=17 . There are only two ways j = 0 3 a 2 j + 1 \sum_{j=0}^3a_{2j+1} can be 28: { a 2 j + 1 } j = 0 3 = { 9 , 8 , 7 , 4 } \{a_{2j+1}\}_{j=0}^3=\{9,8,7,4\} or { a 2 j + 1 } j = 0 3 = { 9 , 8 , 6 , 5 } \{a_{2j+1}\}_{j=0}^3=\{9,8,6,5\} .

In order for 10 j = 0 3 a 2 j + 1 + j = 0 4 a 2 j = 10 A + B = 189 10\sum_{j=0}^3a_{2j+1}+\sum_{j=0}^4a_{2j}=10A+B=189 and A + B = 1 + 2 + + 8 + 9 = 45 A+B=1+2+\cdots+8+9=45 , we must have A = 17 A=17 and B = 28 B=28 . There are nine possibilities of { a 2 j + 1 } j = 0 3 \{a_{2j+1}\}_{j=0}^3 such that j = 0 3 a 2 j + 1 = 17 \sum_{j=0}^3a_{2j+1}=17 : { 1 , 2 , 5 , 9 } , { 1 , 2 , 6 , 8 } , { 1 , 3 , 4 , 9 } , { 1 , 3 , 5 , 8 } , { 1 , 3 , 6 , 7 } , { 1 , 4 , 5 , 7 } , { 2 , 3 , 4 , 8 } , { 2 , 3 , 5 , 7 } , { 2 , 4 , 5 , 6 } \{1,2,5,9\}, \{1,2,6,8\}, \{1,3,4,9\}, \{1,3,5,8\}, \{1,3,6,7\}, \{1,4,5,7\}, \{2,3,4,8\}, \{2,3,5,7\}, \{2,4,5,6\} (I hope the order gives you some idea of how we know these are the only possibilities).

So there are 11 possible combinations of { a 2 j + 1 } j = 0 3 \{a_{2j+1}\}_{j=0}^3 such that N = 0 N=0 (mod 11). There are ( 9 4 ) = 126 \binom{9}{4}=126 total combinations. Therefore the probability that 11 divides N N is 11 126 \frac{11}{126} .

This is my first time writing a solution, so feedback (on formatting, clarity of explanation, etc.) is welcome.

My method was similar to yours. I started with the divisibility rule for 11: N i = 0 n ( 1 ) i a i ( m o d 11 ) N\equiv\sum\limits_{i=0}^{n}{(-1)^{i}a_i}\pmod{11} , where N = i = 0 n a i ( 10 ) i N=\sum\limits_{i=0}^{n}{a_i(10)^i} .

Since N N is a 9-digit number, there will be 5 positive numbers and 4 negative numbers when computing the sum to check for divisibility. This gives ( 9 5 ) = 126 \binom{9}{5}=126 combinations. I created an excel document that generated each of these combinations and checked them for divisibility by 11. It turned out there were 11 of them out of the 126.

Andy Hayes - 5 years, 8 months ago

Log in to reply

i also used the rule of divisibility by 11 in which is only multiple of 11 if the sum of a number in an even position less the sum of the number in a odd position must be a multiple of 11.unfornately, i got the wrong answer.I infered that,as the sum of digits among 1 to 9 is 45,the only to the of digits of even positions number less odd positions numbers be equal to a multiple of 11 it would be if the sum of even positions number be equal to 28 and the odds positions equal to 17. in that way ,there´s only 2 ways to arrange the number:5986 as the numbers in even positions and 12347 in odd positions,or 4987 in even positions and 65321 in odd positions.In the both cases,we have a 4! ways to arrange even numbers and 5! to arrange odd numbers.So for each couple of combinations we have 4!. 5!,the sum of cases as multiple of 11 would be 2.4!5! i thought the possibilities would be about the whole possibilities of ways to arrange those numbers, so i use 9! as the total number of possibilities and use it as denominator of 2.4!5! and find 1 above 63

Mr Yovan - 5 years, 8 months ago

For each quadruple of such numbers(there are 9 such),we will have 5 other numbers for filling the rest of the five places,so for each quadruple the number of numbers is, 4 ! × 5 ! 4!\times 5! hence the probability should be, 9 × 4 ! × 5 ! 9 ! = 1 14 \dfrac{9\times 4!\times 5!}{9!}=\dfrac{1}{14} ,why is this wrong?

Adarsh Kumar - 5 years, 8 months ago

Log in to reply

There are 11 quadruples that work. Two that add to 28 and nine that add to 17.

Joey Hunt - 5 years, 7 months ago

Log in to reply

Oh,sorry.Thanx!

Adarsh Kumar - 5 years, 7 months ago
Lu Chee Ket
Oct 17, 2015

Generates all and filters off equals [and then check for MOD 11]. When 9! = 362880 is checked to be right, then the program must run correctly.

31680/ 362880 = [(2^6)(3^2)(5)(11)]/ [(2^7)(3^4)(5)(7)] = 11/ [(2)(3^2)(7)] = 11/ 126

11 + 126 = 137

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...