If a 9 digit number is formed using the digits 1 to 9 without repitition and if the probability that they will be divisible by 1 1 is q p , then find p + q
where p a n d q are co prime natural numbers
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.
Quite a short code there (y)
1+2+3+4+5+6+7+8+9 = 45. To get a nine non-zero distinct digits number which is also divisible by eleven, we need the difference of odd and even placing of digits to be a multiple of 11. 45 is odd, so the difference cannot be zero nor it any more than 11, or else we have to find at least four non-zero distinct digits to add up to as low as (45-3x11)/2 = 6, which is impossible (1+2+3+4 = 10). If the even-odd difference be 11, then the lesser side should sum at (45-11)/2 = 17.
17 = 1+2+3+4+7.
= 1+2+3+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.
So as listed above, there are eleven ways to do groupings, with the former two forming the odd placing and latter nine the even ones.
P(divisible by 11).
= (11 groupings)
(5! of odd placing)
(4! of even placing) / (9! total freedom of digits placing).
= 11/126
Let the sum of the digits at even places be x and sum of digits at odd places be y .
Then x + y = 4 5
For the number to be divisible by 11 , x − y = 1 1 z where z is an integer. z can be 1 or -1.
Possible values are ( x , y ) = ( 1 7 , 2 8 ) , ( 2 8 , 1 7 )
Number of such x and y can be calculated and comes out to be 11.
Therefore Probability = 9 ! 4 ! × 5 ! × 1 1 = 1 2 6 1 1
p + q = 1 3 7
The result is (11*(4!)(5!))/(9!)
The sample space can be easily found out: 9!
Now for the favourable cases, the divisibility test of 11 is: the difference of ( sum of digits at even places and sum of digits at odd places) must be divisible by 11:
And since the 9! < 10^6. We can do it by a program.
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 |
|
It gives ans=137.
Problem Loading...
Note Loading...
Set Loading...
There are 9! different combinations of the 9 digits, or 362880 possibilities. This can easily be churned through by a computer.
Python 3.1 code:
This prints "11/126" which sums to 137.