Get a room you two!

Two numbers are chosen randomly, both are positive integers smaller than 100. Sharon is told the sum of the numbers, while Parker is told the product of the numbers. Then, this dialog occurs between Sharon and Parker:

Parker: I don't know the numbers.
Sharon: I don't know the numbers.
Parker: I don't know the numbers.
Sharon: I don't know the numbers.
Parker: I don't know the numbers.
Sharon: I don't know the numbers.
Parker: I don't know the numbers.
Sharon: I don't know the numbers.
Parker: I don't know the numbers.
Sharon: I don't know the numbers.
Parker: I don't know the numbers.
Sharon: I don't know the numbers.
Parker: I don't know the numbers.
Sharon: I don't know the numbers.
Parker: I do know the numbers.

What is the product of the two numbers?

Adapted from a certain post I've found on the internet.


The answer is 6468.

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.

1 solution

Pi Han Goh
Apr 16, 2015

What's the answer? I don't understand programming language, can you please explain?

Sahil Nare - 6 years, 1 month ago

Log in to reply

The two numbers are 77 and 84.

Pi Han Goh - 6 years, 1 month ago

Could you please write C program ?

Jaimin Pandya - 6 years, 1 month ago

Could you please explain in a more simpler way? I wish to take up computer science in college, and it would be great if I understand these concepts by then.

Utkarsh Singh - 6 years, 1 month ago

Log in to reply

Each sentence is extra data given to the other person.

When Parker says "I don't know the numbers", means that he doesn't have enough information. For example, if the product of the numbers is 10, it could be (1,10) or (2,5). But if the product is 9801, then Parker would know the answer (99,99). Therefore, his first sentence reveals to Sharon that (99,99) isn't a possible answer. But even this extra data isn't enough for Sharon to know the answer, and she says so. Again, this is extra data for Parker, but , again, is not enough. This go back and forth until suddenly Parker gains enough information to find the answer.

Pi Han Goh - 6 years, 1 month ago

Log in to reply

Thanks, that was a simpler one. By the way is it really possible to solve this question by applying math?

Utkarsh Singh - 6 years, 1 month ago

Log in to reply

@Utkarsh Singh Actually yes , it's no fun if you google it up . I tried to solve it mathematically , i.e. by eliminating pair after pair and then I solved it ..


Though I started out that way , I still had to use a Java code to simplify things :P

A Former Brilliant Member - 6 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...