The sum of digits of a s e v e n digit number is 5 9
Find the probability that this number is divisible by 1 1 .
Mayank challenges Akul that he can't do that without invoking the principle of counting. Akul accepts the challenge and to Mayank's surprise, solves it without counting.
Can you figure out how Akul had solved.
If the answer is in the form b a . Find a + b where a and b don't have a common factor.
We've got more for you at the set Mayank and Akul
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.
Well instead of doing something this long, you could've used the Integral equations method for the sum of odd place variables to be 2 9 , 2 4 , 1 9 , 1 5 , 1 1 , 7 , 3 and then find out the total probability from ( 5 8 6 4 )
Let it be n = d 1 d 2 . . . d 7 the digits representation of the number. We know that
i = 1 ∑ 7 d i = 5 9 , d 1 ≥ 1 , d i ≤ 9 , i ∈ [ 2 , 9 ] .
In order to be divisible by 1 1 , we need that
d 1 + d 3 + d 5 + d 7 − ( d 2 + d 4 + d 6 ) ≡ 0 m o d 1 1 .
Let's call a = d 1 + d 3 + d 5 + d 7 and b = d 2 + d 4 + d 6 . So, we have that
{ a + b = 5 9 a − b = 1 1 k , k ∈ N
⎩ ⎪ ⎨ ⎪ ⎧ a = 2 5 9 + 1 1 k b = 2 5 9 − 1 1 k
Since 1 ≤ a ≤ 3 6 and 0 ≤ b ≤ 2 7 , than
{ − 5 ≤ k ≤ 1 1 ≤ k ≤ 5 ⟹ k = 1 ⟹ { a = 3 5 b = 2 4 .
The number of 7 -digits numbers such that their sum is 5 9 is equal to the number of solutions ∣ S T ∣ of
S T = i = 1 ∑ 7 d i = 5 9 , d i ≤ 9 , i ∈ [ 1 , 7 ] ,
while the ones that also satisfy n ≡ 0 m o d 1 1 are ∣ S 1 ∣ ∣ S 2 ∣ , where ∣ S k ∣ , k = [ 1 , 2 ] are the number of solution of
S 1 = i = 0 ∑ 3 d 2 i + 1 = 3 5 and S 2 = i = 1 ∑ 3 d 2 i = 2 4 .
In order to find ∣ S h ∣ , h = { T , 1 , 2 } we use a classical star and bars argument:
S T = i = 1 ∑ 7 d i = 5 9 , d i ≤ 9 y i = 9 − d i ≥ 0 i = 1 ∑ 7 y i = 9 ⋅ 7 − 5 9 = 4
hence,
∣ S T ∣ = ( 7 − 1 4 + 7 − 1 ) = ( 7 1 0 ) = 2 1 0
With the same process we get ∣ S 1 ∣ = ( 4 − 1 1 + 4 − 1 ) = ( 3 4 ) = 4 and ∣ S 2 ∣ = ( 3 − 1 3 + 3 − 1 ) = ( 2 5 ) = 1 0 . Eventually, our probability is
P ( n ≡ 0 m o d 1 1 ∣ ∣ ∣ ∣ i = 1 ∑ 7 d i = 5 9 ) = ∣ S T ∣ ∣ S 1 ∣ ∣ S 2 ∣ = 2 1 4 4 + 2 1 = 2 5
Problem Loading...
Note Loading...
Set Loading...
I solved it by the simple and obvious, Principle of counting ;) :D
Let us first find all the 7 digit numbers, the sum of whose digits is 59.
After doing some reasoning, you'll be able to figure out that the least number of * '9's * possible for such a combination is 3 .
As 59=9+9+9+8+8+8+8 . ( Try removing one 9 and replacing it with any other digit. It's not possible. )
For this particular combination- total permutations= 7! / (3!*4!) = 35
similarly, 59=9+9+9+9+8+8+7 . total permutations= 7! / (2!*4!) = 105
59=9+9+9+9+9+8+6 . --> 7! / 5! = 42
59=9+9+9+9+9+7+7 --> 7! / (5!*2!) =21
and lastly, 59=9+9+9+9+9+9+5 --> 7
No other combination of digits is possible. So, the total number of numbers whose sum of digits is 59 is 35+105+42+21+7 = 210
Now we will find those numbers out of these which are divisible by 11.
consider a 7 digit number _ _ _ _ _ _ _ . It will be divisible by 11 only if the difference between the sum of odd place digits and sum of even place digits is divisible by 11 . (According to the divisibility rule taught at elementary level)
Here, there will be 4 odd place digits i.e. 1st, 3rd, 5th and 7th digit whereas 3 even place digits.
Let the sum of odd place digits be A and that of even place digits be B . Now, A+B=59 (obvious)
and A-B (or B-A) =0, 11, 22, 33 etc. (Since difference has to be divisible by 11)
Also, values greater than 22 can be discarded for A-B ( Think it over. Can it ever be possible? ).
Now, we are left with A-B=0 or 11 or 22
But if A-B=0 or 22 , THEN using A+B=59 results in non integral values of A and B which is clearly not possible.
Thus A-B ( or B-A , as we do not as of yet, know which is greater ) can only be equal to 11 .
this gives, A=35 and B=24
But since A is the sum of 3 digits it cannot be greater than 9+9+9=27 (think it over). Thus , A=24 and B=35
Now, let us reason out the number of combinations possible for A=24
It is not very tough to see that -->
CASE 1: 24=8+8+8.
For this combination only one combination out of the total 5 ( given at the top ) for the sum to be 59 , is possible.
That is, 59=9+9+9+8+8+8+8
Hence, the number must be of the form _ 8 _ 8 _ 8 _ , where the remaining digits are to be filled with 9,9,9 & 8
Since, the 4th 8 can fill any of the FOUR blanks, total number of permutations= 4
CASE 2: 24=9+9+6
For this combination, the possible combination of 7 digits is, 59=9+9+9+9+9+8+6 ( Referring to the pre-determined 5 combinations )
The number must be of the form _ 9 _ 9 _ 6 _
OR _ 9 _ 6 _ 9 _
OR _ 6 _ 9 _ 9 _
Thus, the digit 6 can fill any one of the 3 blanks ,while the digit 8 can fill any one of the remaining 4 blanks . Each instance will be a different permutation . (We have not included the '9's in our calculation as they are all same and will fill the remaining 5 places, not affecting the no. of permutations.)
So, total permutations for this case= 4 * 3 = 12
CASE 3: 24= 9+8+7
The possible combination of 7 digits for this one is 59 = 9+9+9+8+8+7
Again, As we have proceeded for the above TWO , the number must be something like _ _ _ _ _ _ _ with 8 & 7 occupying two of the 3 odd places , the rest FOUR occupied by 9,9,9,8
Thus, 8 & 7 can occupy any two of the three odd places while the remaining digit 8 can fill any one of the 4 places.
So, total number of permutations= (3!*2!) * 4 = 24
Since, NO other case is possible , we add the total number of permutations which are divisible by 11 . --> 4+12+24 = 40
Finally, the probability that the 7 digit number whose sum of digits is divisible by 11 will be
(Permutations divisible by 11) / (Total number of permutations) = 2 1 0 4 0 = 2 1 4 Hence, answer = 4 + 2 1 = 2 5