Andrew and Nihar were sitting in a math lecture, where the teacher seemed to be boring. She told every student in the lecture to make 5 two-digit numbers using all of the digits from and then sum them. As an explicit example, if a student makes these numbers: then he sums them to get 234. On taking a survey in the lecture, the teacher declared that Andrew had found the maximum possible sum and Nihar had found the minimum possible sum.
Now your job is to find, what is the ratio of the sums acquired by Andrew and Nihar? Give your answer to 2 decimal places.
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.
Let the two-digit numbers made be A B , C D , E F , G H , I J so our job is to minimize and maximize the following expression:
1 0 ( A + C + E + G + I ) + ( B + D + F + H + I )
We should give more weightage to ( A + C + E + G + I ) since it is being multiplied by 1 0 so as to yield maximum possible number. Hence, clearly ( A , C , E , G , I ) = ( 9 , 8 , 7 , 6 , 5 ) and the remaining digits would be ( B , D , F , H , I ) = 4 , 3 , 2 , 1 , 0 . Thus Andrew's sum = 1 0 ( 9 + 8 + 7 + 6 + 5 ) + 4 + 3 + 2 + 1 + 0 = 3 6 0 .
Let's find Nihar's sum now. We should give less weightage to ( A + C + E + G + I ) since it is being multiplied by 1 0 so as to yield minimum possible number. Hence, we have ( A , C , E , G , I ) = ( 5 , 4 , 3 , 2 , 1 ) (since first digit cannot be 0) and the remaining digits would be ( B , D , F , H , I ) = 9 , 8 , 7 , 6 , 0 . Thus Nihar's sum = 1 0 ( 4 + 3 + 2 + 1 + 5 ) + 9 + 8 + 7 + 6 + 0 = 1 8 0 .
Thus, ratio of their sums is 1 8 0 3 6 0 = 2 .