# I'm thinking of a number between 1 and 1000...

**URL:** <https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547>\
**Category:** Miscellaneous and Personal Stuff I Must Share\
**Created:** [August 28, 2001, 4:47pm UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547 "2001-08-28T16:47:52Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Chocobo](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@Chocobo](https://boards.straightdope.com/u/Chocobo)\
**Post date:** [August 29, 2001, 12:09am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/41 "2001-08-29T00:09:27Z")

</div>

318?

---

<div class="post-metadata">

**Author:** ![Tretiak](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tretiak](https://boards.straightdope.com/u/Tretiak)\
**Post date:** [August 29, 2001, 12:13am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/42 "2001-08-29T00:13:03Z")

</div>

Well, Bill H **did** get it, but no one else has.

As an aside for an statisticians out there, what is the expected number of guesses for a randomly picked number?

---

<div class="post-metadata">

**Author:** ![alibey](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@alibey](https://boards.straightdope.com/u/alibey)\
**Post date:** [August 29, 2001, 1:02am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/43 "2001-08-29T01:02:07Z")

</div>

the number Q?

how about seksan bir? (81 in Turkish)

---

<div class="post-metadata">

**Author:** ![Arken](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arken](https://boards.straightdope.com/u/Arken)\
**Post date:** [August 29, 2001, 1:05am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/44 "2001-08-29T01:05:21Z")

</div>

> [@](#):
>
> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 What do I win?

A life. Which, after typing all that out, you obviously are in desperate need of. 😉

---

<div class="post-metadata">

**Author:** ![AndYrAStar](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@AndYrAStar](https://boards.straightdope.com/u/AndYrAStar)\
**Post date:** [August 29, 2001, 1:07am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/45 "2001-08-29T01:07:16Z")

</div>

138!

---

<div class="post-metadata">

**Author:** ![Tedster](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Tedster](https://boards.straightdope.com/u/Tedster)\
**Post date:** [August 29, 2001, 1:12am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/46 "2001-08-29T01:12:29Z")

</div>

Tretiak:

Let the number be **x**

So there! Ha!

---

<div class="post-metadata">

**Author:** ![El\_Kabong](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/el_kabong/32/496_2.png) [@El\_Kabong](https://boards.straightdope.com/u/El_Kabong)\
**Post date:** [August 29, 2001, 1:17am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/47 "2001-08-29T01:17:15Z")

</div>

1. 

Now, where’d I put that bottle of Rolling Rock?

---

<div class="post-metadata">

**Author:** ![Fern\_Forest](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@Fern\_Forest](https://boards.straightdope.com/u/Fern_Forest)\
**Post date:** [August 29, 2001, 1:30am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/48 "2001-08-29T01:30:05Z")

</div>

> [@](#):
>
> \*Originally posted by Tretiak \*  
> \*\*I’m thinking of a number between 1 and 1000…  
> \<snip\>  
> …it is an integer.  
> \*\*

Is that all? Wow I can think of at least 998 integers between 1 and 1000. But then I love math.

---

<div class="post-metadata">

**Author:** ![Ashtar](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Ashtar](https://boards.straightdope.com/u/Ashtar)\
**Post date:** [August 29, 2001, 2:12am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/49 "2001-08-29T02:12:36Z")

</div>

The number, of course, is **243**.

I think.

---

<div class="post-metadata">

**Author:** ![Smeghead](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Smeghead](https://boards.straightdope.com/u/Smeghead)\
**Post date:** [August 29, 2001, 2:33am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/50 "2001-08-29T02:33:36Z")

</div>

I’m going to assume it’s in binary, so it must be one of these:

1 10 11 100 101 110 111 1000

---

<div class="post-metadata">

**Author:** ![beegirl13](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@beegirl13](https://boards.straightdope.com/u/beegirl13)\
**Post date:** [August 29, 2001, 2:43am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/51 "2001-08-29T02:43:46Z")

</div>

I’ll just go with my favorite number, 13.

---

<div class="post-metadata">

**Author:** ![MentalGuy](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@MentalGuy](https://boards.straightdope.com/u/MentalGuy)\
**Post date:** [August 29, 2001, 3:02am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/52 "2001-08-29T03:02:08Z")

</div>

333

---

<div class="post-metadata">

**Author:** ![glee](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@glee](https://boards.straightdope.com/u/glee)\
**Post date:** [August 29, 2001, 3:03am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/53 "2001-08-29T03:03:24Z")

</div>

> [@](#):
>
> \*Originally posted by Tretiak \*  
> As an aside for statisticians out there, what is the expected number of guesses for a randomly picked number?

I’m not sure if ‘the expected number of guesses’ has a precise definition. Let’s try for the nth guess, where the probability hits 50%. Here’s what I mean.

The chance of the first guess being wrong is 999/1000.  
So the chance of the first guess being correct is 1 - (999/1000), or 0.1%.

The chance of the first two guesses being wrong is 1 - (999/1000 \* 998 / 1000), or approx 99.7%.  
So the chance of the second guess being correct is approx 0.3%.

The chance of the first three guesses being wrong is 1 - (999/1000 \* 998 / 1000 \* 997/1000), or approx 99.4%.  
So the chance of the third guess being correct is approx 0.6%.

Keep that up, and you’ll reach some guess where the chance goes over 50%. I think that’s the best approximation of what you’re looking for.  
(But I’m not doing the calculations!)

---

<div class="post-metadata">

**Author:** ![Kaitlyn](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@Kaitlyn](https://boards.straightdope.com/u/Kaitlyn)\
**Post date:** [August 29, 2001, 6:13am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/54 "2001-08-29T06:13:59Z")

</div>

Assuming that we are talking about 1-1000 inclusive, if the person guessing is told, “higher” or “lower”, then the number can always be guessed with absolute certainty in 10 guesses. The probability doesn’t become greater than 50% until guess 9, at which point the probability is 75% that the number will have been guessed. If the guesser guesses perfectly, it will take 9 guesses about 1/2 the time, less than nine about 1/4 of the time, and 10 guesses about 1/4 of the time.

I could figure out the number of guesses for no hints, but don’t want to spend the time. It’s going to be in the hundreds.

---

<div class="post-metadata">

**Author:** ![Kaitlyn](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@Kaitlyn](https://boards.straightdope.com/u/Kaitlyn)\
**Post date:** [August 29, 2001, 6:36am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/55 "2001-08-29T06:36:55Z")

</div>

Without the higher/lower hints, it is a lot more complex.

glee is on the right track, but has the numbers a little off.

The chance of the first guess being wrong is:

1-(1/1000)=99.9%

The chance of the first two guesses being wrong is:

(1-(1/1000))\*(1-(1/999))=99.8%

The chance of the first three guesses being wrong is:

(1-(1/1000))_(1-(1/999))_(1-(1/998))=99.7%

The chance of the first four guesses being wroing is:

(1-(1/1000))_(1-(1/999))_(1-(1/998))\*(1-(1/997))=99.6%

and so on. Keep this up until you get the cumulative odds at less than 50%, and you have the expected number of guesses. It’s going to take hundreds of guesses to reach 50% probability.

---

<div class="post-metadata">

**Author:** ![Bill\_H](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@Bill\_H](https://boards.straightdope.com/u/Bill_H)\
**Post date:** [August 29, 2001, 6:40am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/56 "2001-08-29T06:40:45Z")

</div>

**Arken** wrote

> [@](#):
>
> **Bill H.** wrote
> 
> > [@](#):
> >
> > 1 2 3 … 998 999 1000 What do I win?
> 
> A life. Which, after typing all that out, you obviously are in desperate need of.

Well, it took under two minutes using Excel. I’m desparate for life, but not that desparate.

---

<div class="post-metadata">

**Author:** ![23skidoo](https://avatars.discourse-cdn.com/v4/letter/2/f04885/32.png) [@23skidoo](https://boards.straightdope.com/u/23skidoo)\
**Post date:** [August 29, 2001, 7:23am UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/57 "2001-08-29T07:23:00Z")

</div>

> [@](#):
>
> \*Originally posted by Number Six \*  
> \*\*Without the higher/lower hints, it is a lot more complex.
> 
> glee is on the right track, but has the numbers a little off.
> 
> The chance of the first guess being wrong is:
> 
> 1-(1/1000)=99.9%
> 
> The chance of the first two guesses being wrong is:
> 
> (1-(1/1000))\*(1-(1/999))=99.8%
> 
> The chance of the first three guesses being wrong is:
> 
> (1-(1/1000))_(1-(1/999))_(1-(1/998))=99.7%
> 
> The chance of the first four guesses being wroing is:
> 
> (1-(1/1000))_(1-(1/999))_(1-(1/998))\*(1-(1/997))=99.6%
> 
> and so on. Keep this up until you get the cumulative odds at less than 50%, and you have the expected number of guesses. It’s going to take hundreds of guesses to reach 50% probability. \*\*

Using this method, it’ll take 501 guesses to go over 50%.

(1-(1/1000))= 999/1000

(1-(1/999))= 998/999

(1-(1/998))= 997/998

Watch what happens when you multiply them:

999 \* 998 \* 997  
1000 \* 999 \* 998

Cancelling on the top and the bottom gives you 997/1000.

When you have guessed 501 times, the probability will be 501/1000, slightly tipping the scales in your favor.

---

<div class="post-metadata">

**Author:** ![mrblue92](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mrblue92](https://boards.straightdope.com/u/mrblue92)\
**Post date:** [August 29, 2001, 1:14pm UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/58 "2001-08-29T13:14:47Z")

</div>

> [@](#):
>
> \*Originally posted by Tretiak \*  
> **Well, Bill H did get it, but no one else has.**

Ahem. I beg to differ.

---

<div class="post-metadata">

**Author:** ![glee](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@glee](https://boards.straightdope.com/u/glee)\
**Post date:** [August 29, 2001, 1:24pm UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/59 "2001-08-29T13:24:22Z")

</div>

> [@](#):
>
> \*Originally posted by Number Six \*  
> Without the higher/lower hints, it is a lot more complex.
> 
> glee is on the right track, but has the numbers a little off.

Yes, thanks for the correction. I know why I was confused!  
I was doing the ‘how many people in a room before there’s a 50% chance that 2 share a birthday?’ maths.  
So my calculations would work for a different problem:  
If a line of n people all pick a random number between 1 and 1000, how likely is it that any 2 of them get the same one?

---

<div class="post-metadata">

**Author:** ![Tretiak](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tretiak](https://boards.straightdope.com/u/Tretiak)\
**Post date:** [August 29, 2001, 3:20pm UTC](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547/60 "2001-08-29T15:20:07Z")

</div>

OK, no one has gotten it yet. And my feeble mind has relaized that it may take a whiel without another hint.

Two of the digits in the number are the same.

[Previous page](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547.md?page=2)

[Next page](https://boards.straightdope.com/t/im-thinking-of-a-number-between-1-and-1000/78547.md?page=4)
