Prime!

P and Q are prime numbers such that the numbers (P+Q) and (P+7Q) are both perfect squares Find the value of P.


The answer is 2.

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.

3 solutions

Edwin Gray
Sep 10, 2018

Let P + Q = k^2 and P + 7Q = m^2. Subtracting, 6Q = (m - k)(m + k). Since both factors must have the same parity (since their sum is even), and their product is even, each factor is even, which means that 6Q is divisible by 4. So Q must be even, and being prime, Q = 2. Then P = k^2 - 2 and P = m^2 - 14.Subtracting, m^2 - k^2 = 12. So m = 4, and k = 2. Either way, P = 2. Ed Gray

Antonio Rangel
Sep 5, 2015

If P=Q

2P = Perfect Square (PS-1)

And

P+7Q = 8P= PS-2

4(PS-1) = PS-2

PS-1 = 4 and PS-2 = 16

2P = 4 P = 2

Sunil Pradhan
Jul 15, 2014

2 + 3 = 5 and 2 + 3 × 7 = 23

the question asks for both perfect squares but not primes...

敬全 钟 - 6 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...