This One To Itself And That One To Itself

Consider all pairs ( a , b ) (a, b) of natural numbers such that the product a a b b { a }^{ a }{ b }^{ b } , written in base 10, ends in exactly 98 zeroes. If there is only one pair ( a , b ) (a, b) for which the product a b ab is smallest, then find a + b a + b .

Note : ( 4 , 5 ) (4, 5) and ( 5 , 4 ) (5, 4) are considered as one pair. Order does not matter.


The answer is 173.

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.

2 solutions

Manuel Kahayon
Jan 31, 2016

Whew, hard problem. But, finally, I solved it (I think...)

Anyways, this problem sorta requires more common sense than it does mathematics skills...

First, obviously, either a a or b b or both are multiples of 2 and 5, as a number can only have a trailing zero in base 10 if and only if the number is a multiple of 2 and 5. Then, next, we derive that a a b b a^ab^b must have either 98 5's and an abundance of 2's, or 98 2's and an abundance of 5's in its factorization.

Now, consider a number x x x^x . Now, if x x x^x is a multiple of any number, say 5, then, x x must be of the form 5 n k 5 n k 5^nk^{5^nk} for some integer k k , and for some power of 5 n n . So, x x x^x must have n 5 n k n \cdot 5^nk 5's in its factorization. Now, this shows that a a b b a^ab^b cannot have exactly 98 5's in its prime factorization, as the number of 5's in the prime factorization of the above number must be a multiple of 5, and 98 is not a multiple of 5.

Here we have the guessing part. First, we assume that a a is a factor of 5, and in order to minimize a a , a a must be of the form 25 k 25k for integers k 2 k \geq 2 , since if a a is not a multiple of 25, then either b b also has to be a multiple of 5, (which is not possible since the number of 2's in our factorization cannot be a multiple of 5) or a has to be at least 105 \geq105 , which is too large for minimization. So, our possible values for a a are 50 and 75.

Now, for the values of b b , we have to assume values of a a first. Assume that a = 50 a = 50 , then, b b b^b must have exactly 48 2's in its prime factorization, which is not possible ( I leave the calculations to the reader, dear reader, I believe in you!) So, a a must be equal to 75 \boxed{75} . Then, b b must have exactly 98 2's in its factorization. Since 98 = 2 7 7 98 = 2 \cdot 7 \cdot 7 in its factorization, b b must be of the form 2 1 k 2^1\cdot k for some integer k, as if not, b b must be of the form 2 7 k 2^7\cdot k , which is too large for minimization. Since if b b takes in the form 2 1 k 2^1\cdot k , then b b must have exactly 1 2 1 k 1 \cdot 2^1\cdot k 2's in its factorization. Equating this to 98, we get k = 49 k = 49 , and b = 2 1 k = 98 b = 2^1\cdot k = \boxed {98} .

Therefore, 75 + 98 = 173 75 + 98 = \boxed {173} .

P.S. I know there are many gaps in my solution, so please clarify any mistakes you may find. Better still, please write a more appropriate, understandable solution.

Thanks a lot for the solution. I wanted that.

Ok I will post my solution also.

Priyanshu Mishra - 5 years, 4 months ago

@Andrew Ellinor I have typed the solution, but it is showing "maths processing error".

Please correct it.

Priyanshu Mishra - 5 years, 4 months ago
Priyanshu Mishra
Jan 28, 2016

Let a 2 { a }_{ 2 } be the maximum integer such that 2 a 2 a { 2 }^{ { a }_{ 2 } }|a . Define a 5 { a }_{ 5 } , b 2 { b }_{ 2 } , b 5 { b }_{ 5 } . Our task translates into the following :

Find a , b a, b such that min { a 5 a + b 5 b , a 2 a + b 2 b } = 98 { \{ a }_{ 5 }a + { b }_{ 5 }b, { a }_{ 2 }a + { b }_{ 2 }b\} = 98 and a b ab is minimal. Since 5 a 5 a + b 5 b 5|{ a }_{ 5 }a + { b }_{ 5 }b , we have a 5 a + b 5 b > 98 { a }_{ 5 }a + { b }_{ 5 }b > 98 and min { a 5 a + b 5 b , a 2 a + b 2 b } = a 2 a + b 2 b = 98. \min { \{ a }_{ 5 }a + { b }_{ 5 }b, { a }_{ 2 }a + { b }_{ 2 }b\} = { a }_{ 2 }a + { b }_{ 2 }b = 98. Note that if 5 g c d ( a , b ) 5|gcd(a, b) , then a 2 a + b 2 b 98 { a }_{ 2 }a + { b }_{ 2 }b \neq 98 , contradiction.

Without loss of generality , suppose that a 5 1 { a }_{ 5 } \ge 1 and b 5 = 0 { b }_{ 5 } = 0 . Let a = 2 a 2 5 a 5 x a={ 2 }^{ { a }_{ 2 } }{ 5 }^{ { a }_{ 5 } }x and 2 a 2 y { 2 }^{ { a }_{ 2 } }y , g c d ( 2 , x ) = g c d ( 5 , x ) = g c d ( 2 , y ) = 1 gcd(2, x) = gcd(5, x)= gcd(2, y) = 1 . Then a 5 a = a 5 ( 2 a 2 5 a 5 x ) > 98 { a }_{ 5 }a={ a }_{ 5 }({ 2 }^{ { a }_{ 2 } }{ 5 }^{ { a }_{ 5 } }x) > 98 and a 2 a = a 2 ( 2 a 2 5 a 5 x ) 98 { a }_{ 2 }a={ a }_{ 2 }({ 2 }^{ { a }_{ 2 } }{ 5 }^{ { a }_{ 5 } }x) \le 98 . So a 5 > a 2 { a }_{ 5 } > { a }_{ 2 } . We consider the following cases:

( a ) (a) a 2 = 0 { a }_{ 2 } = 0 . Then b 2 ( 2 b 2 y ) = 98 { b }_{ 2 }({ 2 }^{ { b }_{ 2 } }y) = 98 ...

I will write rest of the solution later.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...