Pi Han's Triple Primes

Consider all triples of prime numbers p < q < r p < q < r such that p q + p r + q r p q r = 2013 pq+pr+qr-p-q-r=2013 . What is the sum of all possible values of q q ?

This problem is shared by Pi Han G. .


The answer is 85.

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.

6 solutions

Logan Dymond
Sep 29, 2013

We can rewrite the expression as ( p 1 ) ( q 1 ) ( r 1 ) 1 + p q r = 2013 -(p-1)(q-1)(r-1)-1+pqr=2013 which is equivalent to ( p 1 ) ( q 1 ) ( r 1 ) = p q r 2014 (p-1)(q-1)(r-1)=pqr-2014 Since we have an even expression on the left hand side, we must have an even expression on the right hand side, which can happen if and only if p = 2 p=2 . Plugging p = 2 p=2 into the original expression yields q r + q + r = 2015 qr+q+r=2015 Adding 1 to both sides and we get ( q + 1 ) ( r + 1 ) = 2016 (q+1)(r+1)=2016 Since p p , q q , and r r are distinct, we know that neither q q nor r r is 2 and that ( q + 1 ) (q+1) and ( r + 1 ) (r+1) are both even and have a factor of 2, which tightens our search a little bit. All pairs ( ( q + 1 ) , ( r + 1 ) ) ((q+1),(r+1)) such that ( q + 1 ) ( r + 1 ) = 2016 (q+1)(r+1)=2016 and q < r q<r are as follows: ( 2 , 1008 ) , ( 4 , 504 ) , ( 6 , 336 ) , ( 8 , 252 ) , ( 12 , 168 ) , ( 14 , 144 ) , (2,1008), (4,504), (6,336), (8,252), (12, 168), (14,144), ( 16 , 126 ) , ( 18 , 112 ) , ( 24 , 84 ) , ( 28 , 72 ) , ( 36 , 56 ) , ( 42 , 48 ) (16,126), (18,112), (24, 84), (28,72), (36,56), (42,48)

Checking these for p , q p, q prime shows the only prime values of q q that satisfy the equation are 3 , 7 , 11 , 23 , 3, 7, 11, 23, and 41 41 . Thus, the answer is 3 + 7 + 11 + 23 + 41 = 85 3+7+11+23+41=85

Moderator note:

Nicely done!

I didn't get the very first passage...

Francesco Pozzetti - 7 years, 8 months ago

Log in to reply

Which part? The factorization or the parity logic (that p=2)?

If you expand my factorization you will notice that the expressions are equivalent.

As for justification that p=2. we know that all primes (except for 2) are odd. If we take p, q, and r to be distinct odd primes, we will get an even number on the LHS, and an odd number on the RHS since 3 the product of 3 odd numbers is an odd number and the difference between an odd and even number is an odd number, which is clearly a contradiction. Thus, one of our primes must be even, and since 2 is the only even prime, which also happens to be the smallest prime, the conclusion follows that p=2.

Logan Dymond - 7 years, 8 months ago

If p , q , r p,q,r are all odd prime numbers, then the left hand side of the equation is even which is contradict with 2013 is odd. So p = 2 p=2 .

Substituting p = 2 p=2 implies q r + q + r = 2015 qr+q+r=2015 .

Which can be written as ( q + 1 ) ( r + 1 ) = 2016 = 2 5 3 2 7 (q+1)(r+1)=2016=2^5 \cdot 3^2 \cdot 7 .

Consider all possible pairs of q + 1 q+1 and r + 1 r+1 where q < r q<r and both of them are even more than 2.

( q + 1 , r + 1 ) = ( 4 , 504 ) , ( 6 , 336 ) , ( 8 , 252 ) , ( 12 , 168 ) , ( 14 , 144 ) , ( 16 , 126 ) , ( 18 , 112 ) , ( 24 , 84 ) , ( 28 , 72 ) , ( 36 , 56 ) , ( 42 , 48 ) (q+1,r+1)=(4,504),(6,336),(8,252),(12,168),(14,144),(16,126),(18,112),(24,84),(28,72),(36,56),(42,48) .

( q , r ) = ( 3 , 503 ) , ( 5 , 335 ) , ( 7 , 251 ) , ( 11 , 167 ) , ( 13 , 143 ) , ( 15 , 125 ) , ( 17 , 111 ) , ( 23 , 83 ) , ( 27 , 71 ) , ( 35 , 55 ) , ( 41 , 47 ) (q,r)=(3,503),(5,335),(7,251),(11,167),(13,143),(15,125),(17,111),(23,83),(27,71),(35,55),(41,47) .

Choosing only q q and r r are prime numbers yields ( q , r ) = ( 3 , 503 ) , ( 7 , 251 ) , ( 11 , 167 ) , ( 23 , 83 ) , ( 41 , 47 ) (q,r)=(3,503),(7,251),(11,167),(23,83),(41,47) .

Hence the sum of all possible values of q q is 3 + 7 + 11 + 23 + 41 = 85 3+7+11+23+41=85 .

Moderator note:

Nicely done!

Josh Gaines
Sep 29, 2013

When considering the parity of prime numbers, we know that almost all prime numbers are odd, but one prime number is even... 2 2 ...which also happens to be the smallest prime. So in order to figure out if 2 2 is going to equal p , we can consider the equation:

p q + p r + q r p q r = 2013 pq + pr + qr - p - q - r = 2013

when p is even and q and r are odd. We end up with:

e v e n + e v e n + o d d e v e n o d d o d d = o d d even + even + odd - even - odd - odd = odd

which is in fact true.

Therefore, 2 2 can be a solution for p .

If we consider all other cases, p , q , and r are all odd. If we plug in the parities into the equation, we get:

o d d + o d d + o d d o d d o d d o d d = o d d odd + odd + odd - odd - odd - odd = odd

which is not true. The right-hand side would actually equate to an even number.

Therefore, solutions only exist when p = 2 p = 2 .

So by plugging in 2 2 for p , the equation is now:

2 q + 2 r + q r 2 q r = 2013 2q + 2r + qr - 2 - q - r = 2013 or q + q r + r = 2015 q + qr+ r = 2015 .

Starting with 3 3 , start plugging in prime values for q . We can then solve the equation for r , and if r is prime, we have a solution. The solutions end up being the triples: ( 2 , 3 , 503 ) , ( 2 , 7 , 251 ) , ( 2 , 11 , 167 ) , ( 2 , 23 , 83 ) (2, 3, 503), (2, 7, 251), (2, 11, 167), (2, 23, 83) , and ( 2 , 41 , 47 ) (2, 41, 47) .

After q = 41 q = 41 , all solutions for r are either non-integer values or r < q which are not permitted.

Therefore, the sum of all possible q is 3 + 7 + 11 + 23 + 41 3 + 7 + 11 + 23 + 41 which equals 85 85 .

Moderator note:

Good job!

This involves some unnecessary case-by-case analysis, but it definitely works.

Caleb Leow
Sep 30, 2013

We can factorize the equation into p(q-1) + q(r-1) + r(p-1) . Hence, we see that if p,q and r are all odd, q -1, p -1 and r -1 are all even and the solution will be even. Therefore we conclude that p,q or r is even, and is this case since 2 is the only even prime and is the smallest prime, p =2. Substituting that value into the equation, we see that 2 q +2 r + qr -2- q - r = q + r + qr -2=2013. This means that q + r + qr +1=( q +1)( r +1)=2016. Then we find all factors of 2016, q +1 and r +1 that fulfill the condition that q and r are prime, also bearing in mind that q < r . We see that the possible values of q are 3,7,11,23 and 41. 3+7+11+23+41=85, which is how we obtain the answer.

Eddie The Head
Mar 10, 2014

First we check the parity on both sides of the problem....If p , q , r p,q,r are all odd primes then clearly the LHS is even but the RHS is odd....So clearly the value of the smallest prime has to be 2. Putting p = 2 p = 2 in the equation we get we get 2 q + 2 r + q r 2 q r = 2013 2q+2r+qr-2-q-r = 2013 q + r + q r = 2015 q+r+qr = 2015 q ( r + 1 ) + ( r + 1 ) = 2016 q(r+1)+(r+1) = 2016 ( q + 1 ) ( r + 1 ) = 2016 (q+1)(r+1) = 2016 we know 2016 = 2 5 3 2 7 2016 = 2^{5}*3^{2}*7 .So we will obtain 18 18 pairs of values for q q and r r . Now we have to check all the possible pairs and determine which of the values obtain primes q q and r r .This is a tedious job but putting q = 2 k 1 + 1 q = 2k_1+1 and r = 2 k 2 + 1 r = 2k_2+1 may help a little....

Finally we obtain the following values of q for which r is also prime.They are 3 , 7 , 11 , 23 , 41 3,7,11,23,41 .

Their sum is 85 \boxed{85} !!

Patrick Corn
Dec 23, 2013

If all the primes are odd, then the left side is even. So we must have p = 2 p = 2 . Plugging in and simplifying yields q r + q + r = 2015 qr + q + r = 2015 , or ( q + 1 ) ( r + 1 ) = 2016 (q+1)(r+1) = 2016 . Now 2016 = 2 5 3 2 7 2016 = 2^5 \cdot 3^2 \cdot 7 has 36 36 factors in 18 18 pairs. Write them all down, subtract 1 1 from each, test for primality. We get the solutions ( q , r ) = ( 3 , 503 ) , ( 7 , 251 ) , ( 11 , 167 ) , ( 23 , 83 ) , ( 41 , 47 ) (q,r) = (3,503), (7,251), (11,167), (23,83), (41,47) , which leads to an answer of 3 + 7 + 11 + 23 + 41 = 85 3+7+11+23+41 = \fbox{85} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...