Skip to main content
OlympiadHQ

Browse · MathNet

Print

Baltic Way 2019

Baltic Way 2019 number theory

Problem

Let odd positive integer be not a perfect square, , and be odd primes and Prove that at least one of and is composite.
Solution
Assume that and are primes. Then This quadratic equation modulo prime has at most 2 roots. We must have either or (in the latter case ). We claim that we can rule out the smallest few such numbers of either of these forms. We have , and since is not a perfect square. Our next possible value for is which is even, as is the value after that, . Thus we have . By the same logic, . But then we have and this is a contradiction.

Techniques

Polynomials mod pPrime numbersPolynomial operationsTechniques: modulo, size analysis, order analysis, inequalities