Find all positive integer solutions to the equation , where and are two distinct prime numbers. Enter your answer as .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Since the LHS is positive, it follows that ( p − q ) 3 > 0 or equivalently p > q .
The condition clearly yields that p − q ∣ p + q from which p − q ∣ p + q + p − q or p − q ∣ 2 p . For p − q > 0 we have 3 cases:
Case 1.: p − q = 1
This would imply the LHS to be 1 but the sum of two primes cannot be 1, so we have reached a contradiction.
Case 2.: p − q = 2
In this case p + q = 2 3 = 8 so we have the following system of equations:
p − q = 2
p + q = 8
This system of equations has exactly one solution, namely p = 5 and q = 3 .
Case 3.: p − q = p or p − q = 2 p
In both of the possibilities we would obtain p − q ≥ p which is impossible for q > 0 .
Hence the only solution is p = 5 and q = 3 so the answer is 5 + 3 = 8 .