A pair of numbers are formed from the digits 1,2,......9 such that all the digits are used up ,only once (i.e. each digit appears in only one of the numbers) .
Find the minimum difference possible between the two numbers of any such pair .
For example : 5126 and 74893 form such a pair with a difference of 69767.
Now , convert the answer you found to base 7 and calculate it's digit sum , this is your final answer.
Good Luck !!!
You can try more of my Questions here .
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.
There are 9 digits to share between the two numbers. We want the two numbers to be as similar in size as possible so their number of digits needs to be as close as possible. 9 is odd so they can't have the same number of digits but one can have 5 and the other one 4.
The 5 digit number will always be bigger than the 4 digit number but to minimise the difference we make the 4 digit number as large as possible and the 5 digit number as small as possible. Therefore the numbers are 9876 and 12345 and the difference is 2469.
2469= ( 1 × 7 4 ) + ( 0 × 7 3 )
+ ( 1 × 7 2 ) + ( 2 × 7 1 ) + ( 5 × 7 0 )
So 2469 in base 7 is 10125.
1+0+1+2+5=9 so the answer is 9 .