Probability.

Let S be the set of all 10-digit numbers (which by definition may not begin with 0) in which each digit 0 through 9 appears exactly once. For example, the number 3 , 820 , 956 , 714 3,820,956,714 is in S S . A number n n is picked from S S at random.

What is the probability that n n is divisible by 11 11 ? If this probability is written in the form a b \large\frac{a}{b} , then what is a + b = ? a+b=?

139 200 138 137 140

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

Mark Hennings
May 20, 2019

If a 10 10 -digit number (with digits 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 0,1,2,3,4,5,6,7,8,9 ) is to be divisible by 11 11 , then the digits 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 0,1,2,3,4,5,6,7,8,9 must be divided into two sets of five numbers (the digits occuring in positions 1,3,5,7,9 in one set, and the digits occuring in positions 2,4,6,8,10 in the other). If A , B A,B are the digit sums of the two sets, then A + B = 45 A+B = 45 and A B A-B is a multiple of 11 11 . Since A , B A,B are integers, A B A-B is odd. If A B 55 |A-B| \ge 55 , then one of A , B A,B is negative. If A B = 33 |A-B| = 33 , then one of A , B A,B is equal to 6 6 , which is impossible. Thus we must have A B = 11 |A-B|=11 , and hence { A , B } = { 17 , 28 } \{A,B\} = \{17,28\} .

There are precisely 11 11 subsets of { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } \{0,1,2,3,4,5,6,7,8,9\} whose total is 11 11 . For each such set S S , let T = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8.9 } \ S T = \{0,1,2,3,4,5,6,7,8.9\}\backslash S . For each such set S S , then either the digits of S S form the digits in positions 1 , 3 , 5 , 7 , 9 1,3,5,7,9 , or else the digits of T T do. There are 5 ! 5! ways of arranging any set of 5 5 numbers, and there are 5 ! 4 ! = 4 × 4 ! 5! - 4! = 4 \times 4! ways of arranging 5 5 numbers so that one particular number ( 0 0 ) does not appear first in the list. Thus there are 5 ! × 5 ! + 4 × 4 ! × 5 ! = 9 × 4 ! × 5 ! 5! \times 5! + 4 \times 4! \times 5! \; = \; 9 \times 4! \times 5! ways of arranging the digits in a particular pair of sets S S and T T to obtain a 10 10 -digit number. Thus there are 11 × 9 × 4 ! × 5 ! 11 \times 9 \times 4! \times 5! 10 10 -digit numbers comprising the digits 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 0,1,2,3,4,5,6,7,8,9 that are divisible by 11 11 .

There are 10 ! 9 ! = 9 × 9 ! 10! - 9! = 9 \times 9! 10 10 -digit numbers comprising the digits 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 0,1,2,3,4,5,6,7,8,9 . Thus the desired probability is 11 × 9 × 4 ! × 5 ! 9 × 9 ! = 11 × 4 ! 9 × 8 × 7 × 6 = 11 9 × 7 × 2 = 11 126 \frac{11 \times 9 \times 4! \times 5!}{9 \times 9!} \; =\; \frac{11 \times 4!}{9 \times 8 \times 7 \times 6} \; = \; \frac{11}{9 \times 7 \times 2} \; = \; \frac{11}{126} making the answer 11 + 126 = 137 11 + 126 = \boxed{137} .

Thank you.

Hana Wehbi - 2 years ago
Hana Wehbi
May 22, 2019

Let the number n n be represented a b c d e f g h i l \overline{abcdefghil} where each letter represents a digit. Then n n is divisible by 11 11 if and only if the “odd-digit” sum a + c + e + g + i a+c+e+g+i and the “even-digit” sum b + d + f + h + l b + d + f + h + l differ by a multiple of 11 11 . However, since we know that:

a + b + c + d + e + f + g + h + i + l = 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 45 , a + b + c + d + e + f + g + h + i + l= 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 45,

the only possibility is that one sum (the odds or the evens) is 17 17 and the other is 28 28 . We can now list the sets of 5 distinct digits that sum to 28 (the other 5 digits will necessarily have to sum to 17):

9 + 8 + 7 + 4 + 0 9+8+7+4+0

9 + 8 + 7 + 3 + 1 9+8+7+3+1

9 + 8 + 6 + 5 + 0 9+8+6+5+0

9 + 8 + 6 + 4 + 1 9+8+6+4+1

9 + 8 + 6 + 3 + 2 9+8+6+3+2

9 + 8 + 5 + 4 + 2 9+8+5+4+2

9 + 7 + 6 + 5 + 1 9+7+6+5+1

9 + 7 + 6 + 4 + 2 9+7+6+4+2

9 + 7 + 5 + 4 + 3 9+7+5+4+3

8 + 7 + 6 + 5 + 2 8+7+6+5+2

8 + 7 + 6 + 4 + 3 8+7+6+4+3

Thus, there are 11 ways to split the digits into one group of five that sum to 28 and one group of five that sum to 17. For each of these 11 ways, we have 2 choices which digits get put into the odd positions and which get put into the even positions, and then 5! ways to arrange the five digits in each group. However, exactly 1 10 \frac{1}{10} of these will end up with 0 as the leading digit, which is not allowed.

Therefore, there are 11 × 2 × ( 5 ! ) 2 × 9 10 = 99 5 × ( 5 ! ) 2 11\times 2\times (5!)^2 \times\frac{9 }{10} =\frac{ 99 }{5}\times(5!)^2 numbers in S that are divisible by 11 11 . There are ( 9 9 ! (9 · 9! ) numbers in S S , so the probability is:

( 99 ) ( 5 ! ) 2 5 × 9 × 9 ! = 11 × 4 ! 9 × 8 × 7 × 6 = 11 126 11 + 126 = 137 \frac{(99)(5!)^2}{5\times9\times 9!}=\frac{11\times4!}{9\times 8\times7\times6}=\frac{11}{126}\implies 11+126=137

Kyle T
May 21, 2019
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
error_reporting(0);
$t = 0;
$c = 0;
$r = range(0,9);
do {
    $d = implode('',$r);
    if($d[0]!='0'){
        if($d%11 == 0){
            $c++;
        }
        $t++;
    }
}while($r = pc_next_permutation($r,count($r)-1));

list($a,$b) = simplify($c,$t);
echo 'found '.$t.' 10 digit numbers not beginning with 0<br>';
echo 'found '.$c.' of those numbers were divisible by 11<br>';
echo $c.'/'.$t.' reduces to '.$a.'/'.$b.'<br>';
echo 'answer: '.$a.'+'.$b.'='.($a+$b);


function pc_next_permutation($p, $size) {
    for ($i = $size - 1; $p[$i] >= $p[$i+1]; --$i) { } 
    if ($i == -1) { return false; }
    for ($j = $size; $p[$j] <= $p[$i]; --$j) { } 
    $tmp = $p[$i]; $p[$i] = $p[$j]; $p[$j] = $tmp; 
    for (++$i, $j = $size; $i < $j; ++$i, --$j) { $tmp = $p[$i]; $p[$i] = $p[$j]; $p[$j] = $tmp; } return $p; 
}

function gcd($a,$b) {
    $a = abs($a); $b = abs($b);
    if( $a < $b) list($b,$a) = Array($a,$b);
    if( $b == 0) return $a;
    $r = $a % $b;
    while($r > 0) {
        $a = $b;
        $b = $r;
        $r = $a % $b;
    }
    return $b;
}

function simplify($num,$den) {
    $g = gcd($num,$den);
    return Array($num/$g,$den/$g);
}

/*
prints:
found 3265920 10 digit numbers not beginning with 0
found 285120 of those numbers were divisible by 11
285120/3265920 reduces to 11/126
answer: 11+126=137
*/

Thank you.

Hana Wehbi - 2 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...