Skip to main content
OlympiadHQ

Browse · MathNet

Print

China National Team Selection Test

China number theory

Problem

Find all integers , with the following properties: There exist integers and satisfying and with , and .
Solution
If has a factor of square number greater than , let , , then taking , we see that such has the properties.

If has no factor of square number, if there are two primes such that and . Let and be pairwise different, . Since there is at least one of and is coprime with (otherwise divides their difference , which is a contradiction), taking this number as the number , then, , . Similarly, we can take a number of or such that , . So , and Such will satisfy the conditions.

If there are no two primes such that , , then it is easy to verify such integer can only be , or as , (where is an odd prime). It is easy to see that, if , then there are no satisfying the conditions; if , then satisfy the conditions.

Summing up, integer satisfies the conditions if and only if is not an odd prime, nor double of an odd prime and nor .
Final answer
All integers at least three except odd primes, twice an odd prime, and thirty.

Techniques

Prime numbersGreatest common divisors (gcd)Factorization techniques