Skip to main content
OlympiadHQ

Browse · MathNet

Print

Ireland_2017

Ireland 2017 number theory

Problem

Let and be positive integers that are co-prime and let be a prime number. Prove that
Solution
Let and suppose . Let be a prime factor of . Because we see that and so as well. As , this implies that . Because this can only happen if .

So far we have shown that implies and for some . In particular, if , then . Obviously, if , then . We continue to assume and need to show . Write , so that Because , the argument at the start of this solution shows that would imply that , which contradicts . Hence and so .
Final answer
gcd(ab, a^2 + p b^2) = 1 if p does not divide a, and gcd(ab, a^2 + p b^2) = p if p divides a.

Techniques

Greatest common divisors (gcd)Prime numbers