Maths Olympiad Prep

Library / /37 of 128

Number theory Difficulty 5.1 AIME, harder Prove it Philippines

Problem:
Let aa, pp, and qq be positive integers with pqp \leq q. Prove that if one of the numbers apa^{p} and aqa^{q} is divisible by pp, then the other number must also be divisible by pp.

Solution

Solution:
Suppose that papp \mid a^{p}. Since pqp \leq q, it follows that apaqa^{p} \mid a^{q}, which implies that paqp \mid a^{q}.

Now, suppose that paqp \mid a^{q}, and, on the contrary, papp \nmid a^{p}. Then there is a prime number rr and a positive integer nn such that rnpr^{n} \mid p (which implies that rnpr^{n} \leq p) and rnapr^{n} \nmid a^{p}. Since paqp \mid a^{q}, it follows that rar \mid a, and so rnanr^{n} \mid a^{n}. This means that p<np < n, which gives the following contradiction:
2prp<rnp 2^{p} \leq r^{p} < r^{n} \leq p
Therefore, apa^{p} must also be divisible by pp.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.