Let and be prime numbers and be a whole number, such that . Find the sum of all possible values of .
Details:
needn't be a prime number.
is nether prime nor composite.
You may use the fact that all primes except and can be expressed in the form .
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.
Opening the brackets we have:- p 2 + q 2 + 3 ( p + q ) = r 2 + 3 r .
Modding both sides with 3 , (only concentrating on the remainder obtained when dividing by 3 ).
[Every square is equivalent to 0 or 1 modulo 3 , because every number is of the form 3 k ) , ( 3 k + 1 ) , ( 3 k + 2 ) .]
So we get (match colors for more clarity):-
0 , 1 + 0 , 1 + 0 = 0 , 1 + 0 .
Clearly, if both p and q are not divisible by 3 , we have r 2 ≡ 2 (mod 3), which is against maths.
So at lease one of ( p , q ) is divisible by 3 . Let us assume first that 3 ∣ p , but p is a prime, so p = 3 .
Putting p = 3 in equation, we get on simplification:-
( r − q ) ( r + q + 3 ) = 1 8 . Only possible values of q , r where q is prime and r is natural are ( 2 , 4 ) and ( 7 , 8 ) , which can easily be obtained by writing 1 8 as a product of naturals.
But it can be the other way round also,ie, q = 3 , so checking all the permutations, we finally have 4 solutions ( p , q , r ) , which are ( 2 , 3 , 4 ) , ( 3 , 2 , 4 ) , ( 3 , 7 , 8 ) , and ( 7 , 3 , 8 ) .
So, finally we get the sum of all possible values of p as 1 2
-Satvik