Every Information Is Important

Logic Level 4

Brilli has picked 2 integers x x and y y such that 1 < x < y 1 < x < y and x + y < 100 x+y<100 . 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.


The answer is 17.

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.

2 solutions

Trongnhan Khong
May 12, 2016

Hi everyone,

Let S S and P P be the sum and product of x , y x, y respectively.

The first claim of Brina means P P can't be factorized as k × p k\times p where both k k and p p are prime numbers OR p p is a prime which is greater than 50 50

The first claim of Brian implies S S can't be expressed in terms of any pair of primes AND S < 53 + 2 S<53+2 ( 53 53 is the first prime which comes after 50 50 and 2 2 here is because we are given that 1 < x < y 1<x<y ).

Therefore, T = { 11 ; 17 ; 23 ; 27 ; 29 ; 35 ; 37 ; 41 ; 47 ; 51 ; 53 } T=\left\{ 11;17;23;27;29;35;37;41;47;51;53 \right\} is the set of all possible values of S S (honestly, I worked it out by running a simple code). Although 6 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 S is odd i.e. one of x , y x,y is odd and the other is even, thus P = 2 n × k P={ 2 }^{ n }\times k where n 5 n\le 5 , k k is odd.

The second claim of Brina guarantees there is only one way to factorize P P such that the sum we get is in T T (1)

The last claim makes it clear that there is only one way to express S S such that the product we get satisfies (1) . We are going to pull that S S out. To make such tough work easier, it would be useful to consider a Brina pair ( a , b ) (a,b) which satisfies ( a = 2 n A N D b a={ 2 }^{ n } \quad AND\quad b is a prime) OR a = 32 a=32 .

Brina can determine the numbers "faster" if she has the product of a Brina pair. Every t t in T T can be expressed in terms of such pairs. If there are more than one way to express it then such t t isn't S S . For example, 53 = 32 + 21 = 16 + 37 53=32+21=16+37 so it's safe for us to dispose of 53 53 .

51 = 32 + 19 = 8 + 43 51=32+19=8+43 fails the test too.

47 = 32 + 15 = 16 + 31 47=32+15=16+31 fails again.

37 , 35 , 27 , 23 , 11 37,35,27,23,11 suffer the same fate. Next, we deal with 17 , 29 , 41 17,29,41 .

41 = 32 + 9 = 16 + 25 41=32+9=16+25 , both 32 × 9 , 16 × 25 32 \times 9, 16 \times 25 are easy to determine for Brina so Brian will get confused. The same thing happens to 29 = 16 + 13 = 4 + 25 29=16+13=4+25 .

Everything is done here, 17 17 with its unique Brina pair ( 4 , 13 ) (4,13) is the answer.

Utkarsh Dwivedi
Apr 7, 2016

My solution may not be the best one not creative either but I think it may be the only one, if someone has some other better solution please tell me and correct me please.

What I did was that I wrote numbers 1 1 to 100 100 , didn't took much time , just few minutes and then I circled every prime number including 1 1 .

Now, clearly as Brian replied to Brina I know that , it tells us that whatever x + y x+y is, for every two numbers whose sum is x + y x+y must not be both prime.

And as Brina said, I can determine the numbers now it tells us that whatever x y xy is, of all the numbers x x and y y , there would be only one case when the numbers satisfy the condition of Brian,, for every two numbers whose sum is x + y x+y must not be both prime.

Now, take every number from 1 1 and try to get sum as that numbers by any two primes, if the number fails the test cut it out, go to next number until you have reached one and then try the other test on it, Brina test.

You will get 17 17 as the answer.

You can skip even numbers and numbers of the form p + 2 and p + 3 easily . where p is a prime. It reduces the amount of numbers greatly.

Pankaj Chowdhury - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...