Consider all triples of prime numbers p < q < r such that p q + p r + q r − p − q − r = 2 0 1 3 . What is the sum of all possible values of q ?
This problem is shared by Pi Han G. .
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.
Nicely done!
I didn't get the very first passage...
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.
If 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 .
Substituting p = 2 implies q r + q + r = 2 0 1 5 .
Which can be written as ( q + 1 ) ( r + 1 ) = 2 0 1 6 = 2 5 ⋅ 3 2 ⋅ 7 .
Consider all possible pairs of q + 1 and r + 1 where q < r and both of them are even more than 2.
( q + 1 , r + 1 ) = ( 4 , 5 0 4 ) , ( 6 , 3 3 6 ) , ( 8 , 2 5 2 ) , ( 1 2 , 1 6 8 ) , ( 1 4 , 1 4 4 ) , ( 1 6 , 1 2 6 ) , ( 1 8 , 1 1 2 ) , ( 2 4 , 8 4 ) , ( 2 8 , 7 2 ) , ( 3 6 , 5 6 ) , ( 4 2 , 4 8 ) .
( q , r ) = ( 3 , 5 0 3 ) , ( 5 , 3 3 5 ) , ( 7 , 2 5 1 ) , ( 1 1 , 1 6 7 ) , ( 1 3 , 1 4 3 ) , ( 1 5 , 1 2 5 ) , ( 1 7 , 1 1 1 ) , ( 2 3 , 8 3 ) , ( 2 7 , 7 1 ) , ( 3 5 , 5 5 ) , ( 4 1 , 4 7 ) .
Choosing only q and r are prime numbers yields ( q , r ) = ( 3 , 5 0 3 ) , ( 7 , 2 5 1 ) , ( 1 1 , 1 6 7 ) , ( 2 3 , 8 3 ) , ( 4 1 , 4 7 ) .
Hence the sum of all possible values of q is 3 + 7 + 1 1 + 2 3 + 4 1 = 8 5 .
Nicely done!
When considering the parity of prime numbers, we know that almost all prime numbers are odd, but one prime number is even... 2 ...which also happens to be the smallest prime. So in order to figure out if 2 is going to equal p , we can consider the equation:
p q + p r + q r − p − q − r = 2 0 1 3
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
which is in fact true.
Therefore, 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
which is not true. The right-hand side would actually equate to an even number.
Therefore, solutions only exist when p = 2 .
So by plugging in 2 for p , the equation is now:
2 q + 2 r + q r − 2 − q − r = 2 0 1 3 or q + q r + r = 2 0 1 5 .
Starting with 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 , 5 0 3 ) , ( 2 , 7 , 2 5 1 ) , ( 2 , 1 1 , 1 6 7 ) , ( 2 , 2 3 , 8 3 ) , and ( 2 , 4 1 , 4 7 ) .
After q = 4 1 , 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 + 1 1 + 2 3 + 4 1 which equals 8 5 .
Good job!
This involves some unnecessary case-by-case analysis, but it definitely works.
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.
First we check the parity on both sides of the problem....If 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 in the equation we get we get 2 q + 2 r + q r − 2 − q − r = 2 0 1 3 q + r + q r = 2 0 1 5 q ( r + 1 ) + ( r + 1 ) = 2 0 1 6 ( q + 1 ) ( r + 1 ) = 2 0 1 6 we know 2 0 1 6 = 2 5 ∗ 3 2 ∗ 7 .So we will obtain 1 8 pairs of values for q and r . Now we have to check all the possible pairs and determine which of the values obtain primes q and r .This is a tedious job but putting q = 2 k 1 + 1 and r = 2 k 2 + 1 may help a little....
Finally we obtain the following values of q for which r is also prime.They are 3 , 7 , 1 1 , 2 3 , 4 1 .
Their sum is 8 5 !!
If all the primes are odd, then the left side is even. So we must have p = 2 . Plugging in and simplifying yields q r + q + r = 2 0 1 5 , or ( q + 1 ) ( r + 1 ) = 2 0 1 6 . Now 2 0 1 6 = 2 5 ⋅ 3 2 ⋅ 7 has 3 6 factors in 1 8 pairs. Write them all down, subtract 1 from each, test for primality. We get the solutions ( q , r ) = ( 3 , 5 0 3 ) , ( 7 , 2 5 1 ) , ( 1 1 , 1 6 7 ) , ( 2 3 , 8 3 ) , ( 4 1 , 4 7 ) , which leads to an answer of 3 + 7 + 1 1 + 2 3 + 4 1 = 8 5 .
Problem Loading...
Note Loading...
Set Loading...
We can rewrite the expression as − ( p − 1 ) ( q − 1 ) ( r − 1 ) − 1 + p q r = 2 0 1 3 which is equivalent to ( p − 1 ) ( q − 1 ) ( r − 1 ) = p q r − 2 0 1 4 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 . Plugging p = 2 into the original expression yields q r + q + r = 2 0 1 5 Adding 1 to both sides and we get ( q + 1 ) ( r + 1 ) = 2 0 1 6 Since p , q , and r are distinct, we know that neither q nor r is 2 and that ( q + 1 ) and ( r + 1 ) are both even and have a factor of 2, which tightens our search a little bit. All pairs ( ( q + 1 ) , ( r + 1 ) ) such that ( q + 1 ) ( r + 1 ) = 2 0 1 6 and q < r are as follows: ( 2 , 1 0 0 8 ) , ( 4 , 5 0 4 ) , ( 6 , 3 3 6 ) , ( 8 , 2 5 2 ) , ( 1 2 , 1 6 8 ) , ( 1 4 , 1 4 4 ) , ( 1 6 , 1 2 6 ) , ( 1 8 , 1 1 2 ) , ( 2 4 , 8 4 ) , ( 2 8 , 7 2 ) , ( 3 6 , 5 6 ) , ( 4 2 , 4 8 )
Checking these for p , q prime shows the only prime values of q that satisfy the equation are 3 , 7 , 1 1 , 2 3 , and 4 1 . Thus, the answer is 3 + 7 + 1 1 + 2 3 + 4 1 = 8 5