Skip to main content
OlympiadHQ

Browse · MathNet

Print

Hong Kong Preliminary Selection Contest

Hong Kong number theory

Problem

Let be a positive integer. If the two numbers and have exactly the same prime factors, find the greatest possible value of .
Solution
Let be any prime factor of . Then is a prime factor of and hence of as well. Since , we conclude that divides , and so can only be . In the same way, we find that the only possible prime divisors of are and .

Let and . Then we have . Note that if , the left-hand side is a multiple of but not a multiple of . Hence we must have and the equation becomes . As , this gives , forcing to be even. However, if is even, then , which is impossible.

This means that can only be or . To find the greatest possible value of , it suffices to show that is possible. Indeed, if , then , and we have and . Therefore, the answer is .
Final answer
15

Techniques

Factorization techniquesTechniques: modulo, size analysis, order analysis, inequalities