guess my number; your friend chooses an integer between 0 to 100. you have to find out that number by asking question but your friend can only answer yes or no what strategy would you use?
Answers
Answered by
158
It is you can say a magic trick of mathematics. If I am free to ask questions to the guesser, I would ask whether the number is a prime or composite number. I can ask that whether the number is even or odd. I can also ask factors concerning the divisibility of the number. Suppose the guessed secret number is 50, if I ask whether it is a factor of 5 or not. It will be yes and, I might succeed in my guess. In this way, if I keep asking about the number, I can go to the nearest guess. Really, my strategy is to ask questions regarding the number from which we can know more about the number.
PinkyTune:
Hello, the asker did you like my ans.. it is not complete yet, I have the habit of finishing a answer by editing it several times..
Answered by
135
ask whether the number is even or odd.
eliminates half of the options.
2nd, ask if it's between 1 to 50 or not.
eliminates other half.
3rd, ask if its a perfect square.
the perfect squares have almost a gap of 10 numbers between, but we would have already ruled out even or odd, so easier to choose the number.
ask if between 9-16, or 25-36 and so on.'
you can also ask if the number is divisible by 2 and 3 or by only 2 or only 3 if it's not a prime number.
this is one strategy.
or you can think of a better one! :)
eliminates half of the options.
2nd, ask if it's between 1 to 50 or not.
eliminates other half.
3rd, ask if its a perfect square.
the perfect squares have almost a gap of 10 numbers between, but we would have already ruled out even or odd, so easier to choose the number.
ask if between 9-16, or 25-36 and so on.'
you can also ask if the number is divisible by 2 and 3 or by only 2 or only 3 if it's not a prime number.
this is one strategy.
or you can think of a better one! :)
Similar questions