Math, asked by moneynet24682, 1 year ago

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 PinkyTune
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..
PinkyTune: helloo.. are u there??
Answered by lisakar981
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! :)

PinkyTune: hey,, you have used some points in my ans
PinkyTune: this is not fair..u nearly copied my answer..
lisakar981: i didn't see your answer was there before typing mine, i just wrote it. i didn't copy it. i
lisakar981: the points i wrote are really general points. askin if a number is even or odd, perfect square or not, in the 1st half or the 2nd, anyone can think of these. i didnt copy your answer. it was when u commented i knew ur answer was also there.
lisakar981: you can always write a better answer than me :)
PinkyTune: it is very unusual.. u r answers and mine nearly match....see for u rself
PinkyTune: I have to tell I am very sorry of accusing you falsely...though our answers are very similar, u r ans has one or two more points than my one. .... u r ans should be the best.. I apologize for my earier behaviour
PinkyTune: *earlier
lisakar981: i dont have the best answers, we just have different answers, well, almost.. :D
PinkyTune: noono,,, look I have used some points exactly you used..did u read my ans??
Similar questions