p , q , p + q , p q , p ( p + q ) , q ( p + q ) , p q , q p
Suppose p and q are two unordered prime numbers . From the above 8 listed numbers, exactly 4 are even numbers and one of them is 206.
Find the sum of all distinct value(s) of ∣ p − q ∣ .
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.
I wanted to write a solution but you wrote! -1!
But nice solution!+1!
Net effect = -1+1=-0
Log in to reply
LOL! .......
I think that (+1) trend started newly on Brilliant.
Log in to reply
Not new. This is an old trend catching attention lately.
Exactly what I intended! +0!
Log in to reply
+(0!) or +0 !? :P
Log in to reply
Hahahahahahahahahahahahaha..... @Nihar Mahajan
Very pertinent fact pointed out by @Sharky Kesa
In computer programs also... You need to be careful with such things...
Something said with a good intent can be interpreted otherwise. XD
+0 ! :3 ......
Nice Thinking.
One of the eight given numbers is 2 0 6 .
p or q cannot be equal to 206, because it is not prime.
p + q cannot be equal to 206. If it were, both p and q would have to be odd, making p , q , p q , q p , and p q odd. But we are told that four of the numbers are even.
p q , q p cannot be equal to 206. It would require the exponent to be equal to 1, which is not prime.
p q = 2 0 6 . This is possible with p = 1 0 3 and q = 2 (or v.v.). The even numbers in the list are q , p q , q p , and ( p + q ) q . Thus all conditions are fulfilled, with ∣ p − q ∣ = 1 0 1 .
( p + q ) q = 2 0 6 . This is possible with p = 1 0 1 and q = 2 . This situation is similar to the previous one. We find ∣ p − q ∣ = 9 9 . Swapping p and q does not result in any new solutions.
Thus the possible values of ∣ p − q ∣ are 1 0 1 and 9 9 , with sum 2 0 0 .
Problem Loading...
Note Loading...
Set Loading...
We have that either one of the prime numbers are 2, or none of them are. If none of them are 2, we have that p + q is even, so p + q , p ( p + q ) and q ( p + q ) are even. The rest of the numbers are odd. But then this contradicts that we have exactly 4 even numbers. Thus, one of the primes is 2.
WLOG q = 2 . Since we have unordered solutions, we can do this assumption.
Thus, p is odd. From this, we get q , p q , q ( p + q ) and q p are even, which satisfy. We must have 206 equal to one of p q , q ( p + q ) or q p . The last one can be ruled out since 206 isn't a power of 2. If p q = 2 0 6 , we have p = 1 0 3 , which satisfies. Thus, ∣ p − q ∣ = 1 0 1 . If q ( p + q ) = 2 0 6 , p = 1 0 1 , which satisfies. Thus, ∣ p − q ∣ = 9 9 . Therefore, the sum of all values is 2 0 0 .