Brilli has picked 2 integers and such that and . He gives the sum to Brian and the product to Brina. The following conversation takes place between them.
Brina: I cannot determine the numbers.
Brian: I know that.
Brina: I can determine the numbers now.
Brian: So can I.
Find the sum of the two numbers.
You may assume that Brian and Brina are perfectly logical.
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.
Hi everyone,
Let S and P be the sum and product of x , y respectively.
The first claim of Brina means P can't be factorized as k × p where both k and p are prime numbers OR p is a prime which is greater than 5 0
The first claim of Brian implies S can't be expressed in terms of any pair of primes AND S < 5 3 + 2 ( 5 3 is the first prime which comes after 5 0 and 2 here is because we are given that 1 < x < y ).
Therefore, T = { 1 1 ; 1 7 ; 2 3 ; 2 7 ; 2 9 ; 3 5 ; 3 7 ; 4 1 ; 4 7 ; 5 1 ; 5 3 } is the set of all possible values of S (honestly, I worked it out by running a simple code). Although 6 satisfies the conditions too, it will eventually make redundant because either Brina and Brian would be able to end the game if they had it. Now, we notice that S is odd i.e. one of x , y is odd and the other is even, thus P = 2 n × k where n ≤ 5 , k is odd.
The second claim of Brina guarantees there is only one way to factorize P such that the sum we get is in T (1)
The last claim makes it clear that there is only one way to express S such that the product we get satisfies (1) . We are going to pull that S out. To make such tough work easier, it would be useful to consider a Brina pair ( a , b ) which satisfies ( a = 2 n A N D b is a prime) OR a = 3 2 .
Brina can determine the numbers "faster" if she has the product of a Brina pair. Every t in T can be expressed in terms of such pairs. If there are more than one way to express it then such t isn't S . For example, 5 3 = 3 2 + 2 1 = 1 6 + 3 7 so it's safe for us to dispose of 5 3 .
5 1 = 3 2 + 1 9 = 8 + 4 3 fails the test too.
4 7 = 3 2 + 1 5 = 1 6 + 3 1 fails again.
3 7 , 3 5 , 2 7 , 2 3 , 1 1 suffer the same fate. Next, we deal with 1 7 , 2 9 , 4 1 .
4 1 = 3 2 + 9 = 1 6 + 2 5 , both 3 2 × 9 , 1 6 × 2 5 are easy to determine for Brina so Brian will get confused. The same thing happens to 2 9 = 1 6 + 1 3 = 4 + 2 5 .
Everything is done here, 1 7 with its unique Brina pair ( 4 , 1 3 ) is the answer.