Maths Olympiad Prep

Library / /2 of 14

Number theory Difficulty 4.8 AIME Prove it Bulgaria

Find all primes p<q<rp < q < r such that p+q=rp + q = r and the number (rp)(qp)27p(r - p)(q - p) - 27p is a perfect square.

Solution

It is obvious that p=2p = 2 and then r2=qr - 2 = q. Hence q(q2)54=u2q(q-2) - 54 = u^2 which can be written as (q1)2u2=55    (q1u)(q1+u)=55=155=511(q-1)^2 - u^2 = 55 \iff (q-1-u)(q-1+u) = 55 = 1 \cdot 55 = 5 \cdot 11. Hence we have the following two cases:

Case 1. q1u=1q-1-u = 1 and q1+u=55q-1+u = 55. Then q=u+2q = u+2, whence q=29q = 29 and r=29+2=31r = 29+2 = 31.

Case 2. q1u=5q-1-u = 5 and q1+u=11q-1+u = 11. Then q=u+6q = u+6, whence q=9q = 9, a contradiction.

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 and solution reproduced as published; topic and difficulty added by this site.