Prime Pickle

Let p p and q q be prime numbers and r r be a whole number, such that ( p ) ( p + 3 ) + ( q ) ( q + 3 ) = ( r ) ( r + 3 ) (p)(p+3)+(q)(q+3)=(r)(r+3) . Find the sum of all possible values of p p .

Details:

\bullet r r needn't be a prime number.

\bullet 1 1 is nether prime nor composite.

\bullet You may use the fact that all primes except 2 2 and 3 3 can be expressed in the form 6 k ± 1 6k \pm 1 .


The answer is 12.

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.

1 solution

Satvik Golechha
Sep 14, 2014

Opening the brackets we have:- p 2 + q 2 + 3 ( p + q ) = r 2 + 3 r \color{#D61F06}{p^2}+\color{#EC7300}{q^2} +\color{#20A900}{3(p+q)}=\color{#69047E}{r^2}+\color{#3D99F6}{3r} .

Modding both sides with 3 3 , (only concentrating on the remainder obtained when dividing by 3 3 ).

[Every square is equivalent to 0 0 or 1 1 modulo 3 3 , because every number is of the form 3 k ) , ( 3 k + 1 ) , ( 3 k + 2 ) 3k), (3k+1), (3k+2) .]

So we get (match colors for more clarity):-

0 , 1 + 0 , 1 + 0 = 0 , 1 + 0 \color{#D61F06}{0,1}+\color{#EC7300}{0,1} +\color{#20A900}{0}=\color{#69047E}{0,1}+\color{#3D99F6}{0} .

Clearly, if both p p and q q are not divisible by 3 3 , we have r 2 2 r^2 \equiv 2 (mod 3), which is against maths.

So at lease one of ( p , q ) (p,q) is divisible by 3 3 . Let us assume first that 3 p 3|p , but p p is a prime, so p = 3 p=3 .

Putting p = 3 p=3 in equation, we get on simplification:-

( r q ) ( r + q + 3 ) = 18 (r-q)(r+q+3)=18 . Only possible values of q , r q,r where q q is prime and r r is natural are ( 2 , 4 ) (2,4) and ( 7 , 8 ) (7,8) , which can easily be obtained by writing 18 18 as a product of naturals.

But it can be the other way round also,ie, q = 3 q=3 , so checking all the permutations, we finally have 4 4 solutions ( p , q , r ) (p,q,r) , which are ( 2 , 3 , 4 ) (2,3,4) , ( 3 , 2 , 4 ) (3,2,4) , ( 3 , 7 , 8 ) (3,7,8) , and ( 7 , 3 , 8 ) (7,3,8) .

So, finally we get the sum of all possible values of p p as 12 \boxed{12}

-Satvik

How can you make your texts colored?

Rindell Mabunga - 6 years, 8 months ago

Log in to reply

Latex has a color feature. \ ( \ c o l o r { r e d } { S a t v i k } \ )

Remove all the spaces and see the magic.

Satvik Golechha - 6 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...