Average number of guesses to guess number between 1 and 1000?
1 Expert Answer

Patrick B. answered 03/23/19
Math and computer tutor/teacher
No it is going to take all 10 of them with very little room for error.
Assuming each guess is wrong until guess #10, here's the list:
after the 1st guess, it narrows the candidates down to 500, actually 499.
after the 2nd guess, it narrows the candidates down to 250, actually, 249
3rd guess 125, actually 124
4th guess 63, actually 62
5th guess 30
6th guess 14
7th guess 7
8th guess 3
9th guess 1
10th guess winner
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Damian B.
I would like to have a stats person check out the logic to this answer. Here is my reasoning. We know it takes a maximum of log base 2 of N guesses to determine any number given a binary search algorithm. The average number has to take into account that you can get lucky. If the algorithm divides and conquers, then one time in N you will guess on the first try. Two times in N on the second, and so forth. By the ninth attempt guessing a number from 1 to 1000, you would have uniquely identified 511 numbers (1 + 2 + 4 + 8+ ... + 256) or 2^9 - 1. That leaves 489 numbers for the final guess. You'd have to multiply the chances of each of these coming up to find the average. That is, the chance of guessing on the first guess times the frequency that it happens, or 1/N. The second guess is right 2 times in N. If you add the products of the number of guesses times the chances of that happening, You will get for N=1000 8.987 guesses on average to guess the number. So, it's slightly less than the maximum, but basically by a single guess.01/30/22