Results 1 to 8 of 8

Thread: The most fun - and most simple - Maths game in the world

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Posts
    2

    The most fun - and most simple - Maths game in the world

    Okay, perhaps slightly false advertising, but here goes.

    Person A picks a number between 1 and 1,000,000
    Person B must ascertain what the number is by asking a maximum of twenty yes/no questions.

    Very simple, but surprisingly addictive. But the thread does not stop there.

    What I want to know is something much more complicated; is it possible to win every time and if so, how would would one go about it? What's the minimum number of guesses without any "luck" involved?

    Thanks for your time.
    Mack

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    If you can ask twenty times , you better win all the time!
    Since 2^20>1 000 000
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Easy Strat:

    To win, just do this:

    Q1) Is the right-most digit of it's binary form 1??
    Q2) Is the 2nd right digit of it's binary form 1??

    etc..

    then after 20 Qs, you should have it's binary form, convert it to decimal and Tada!
    sql_lall

  4. #4
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    And if the person you're playing with isn't a nerd ?

    jokes

  5. #5
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    1000000/2^20

    Is the number > 500,000? no

    is the number > 250,000? no

    is the number > 125,000? no

    etc.

  6. #6
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Ok, but

    unfortunately, this can get tricky when the number isn't divisible by two.

    In that case, do what i said, but in reverse:
    Q1) Is it >= 524288 (=2^19)
    Q2) Is it >= 262144 (=2_18)
    OR: Is it >= 786432 (=2^19 + 2^18)

    etc

    That way you can just keep on dividing by two, making it nice and simple
    sql_lall

  7. #7
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Looks like the starter of this threat left us!
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  8. #8
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Re: Ok, but

    Originally posted by sql_lall
    unfortunately, this can get tricky when the number isn't divisible by two.

    In that case, do what i said, but in reverse:
    Q1) Is it >= 524288 (=2^19)
    Q2) Is it >= 262144 (=2_18)
    OR: Is it >= 786432 (=2^19 + 2^18)

    etc

    That way you can just keep on dividing by two, making it nice and simple
    You'd just split the range

    e.g.

    Q1. is it > 500,000

    if yes, is it > 250,00 then range = 250,000 --> 500,000

    then you'd ask if it was > 375,000 etc...

    Another method a friend suggested (which I haven't tested) is to ask if each digit is prime and determine how many digits there are in the number.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width