Maths Olympiad Prep

Library / /7 of 9

, 2013

Number theory Difficulty 5.8 AIME, harder Prove it Slovenia

Find all prime numbers pp and qq such that p4q6p^4 - q^6 is a power of a prime number. (Numbers 77 and 88 are powers of prime numbers, but 66 is not.)

Solution

Write p4q6=rnp^4 - q^6 = r^n for some prime rr and some positive integer nn. The expression p4q6p^4 - q^6 can be factored as p4q6=(p2q3)(p2+q3)p^4 - q^6 = (p^2 - q^3)(p^2 + q^3). Since p4q6>0p^4 - q^6 > 0, the primes pp and qq cannot be equal and are therefore relatively prime. Let dd be the greatest common divisor of the numbers p2q3p^2 - q^3 and p2+q3p^2 + q^3. Then dd divides 2p22p^2 and 2q32q^3. Since pp and qq are relatively prime, it follows that dd can be at most 22.

If d=2d = 2, then r=2r = 2 as well as p2q3=2p^2 - q^3 = 2 and p2+q3=2n1p^2 + q^3 = 2^{n-1}. Adding the equations and dividing by 22 we get p2=1+2n2p^2 = 1 + 2^{n-2}, or 2n2=p21=(p1)(p+1)2^{n-2} = p^2 - 1 = (p-1)(p+1). The numbers p1p-1 and p+1p+1 have to be powers of 22, but this is only possible if p=3p=3. Now, we get a contradiction with q3=7q^3 = 7.

So, d=1d=1. Since p2q3p^2 - q^3 and p2+q3p^2 + q^3 are relatively prime and their product is a power of a prime, we have p2q3=1p^2 - q^3 = 1, or p2=q3+1=(q+1)(q2q+1)p^2 = q^3 + 1 = (q+1)(q^2 - q + 1). Since qq is prime, we have q+1>2q+1 > 2 and q2q+1>2q^2 - q + 1 > 2, so neither of the factors q+1q+1 and q2q+1q^2 - q + 1 is equal to 11. If their product is to be the square of a prime, the two factors have to be equal. The equality q+1=q2q+1q+1 = q^2 - q + 1 implies q=2q = 2 and from p2=1+q3p^2 = 1+q^3 we then obtain p=3p=3. Finally, we check that 3426=173^4 - 2^6 = 17 is indeed a power of a prime. The only solution is p=3,q=2p=3, q=2.

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.