play and relax: games for kids games
  Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Try our no ads browsing

Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Buying a book is a commitment to learning Table of content Try our no ads browsing Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Number Guessing

In this simple game, your computer does all the work. You only have to press one of the buttons, "Yes" or "No". This is how you play. At the beginning (or after pressing "Reset"), you think of a positive integer less than 100. At any time, the computer will display a set of numbers. In response, press either "Yes" or "No" depending on whether your number is on the screen or not. After a while the computer will guess your number. See for yourself.


This applet requires Sun's Java VM 2 which your browser may perceive as a popup. Which it is not. If you want to see the applet work, visit Sun's website at http://www.java.com/en/download/index.jsp, download and install Java VM and enjoy the applet.


Buy this applet
What if applet does not run?

The game's magical powers have a very simple explanation. Computer displays seven sets of numbers. For every i from 0 to 6, it displays the numbers with the same (either 0 or 1, selected randomly) binary digit in the i-th position counting from right. Answering "Yes" you actually tell your computer whether the digit is 0 or 1. Thus digit after digit, your computer collects the information about the binary representation of the number you thought up. Since (1111111)2 = 127 > 100, any number below 100 needs at most 7 bits to be written in the binary system.

For example, assume you selected 54. Its binary representation is 110110. I have to guess 6 binary digits. All numbers split into two groups: those that have the rightmost digit 0 and the rest that have the rightmost digit 1. 54 belongs to the first group. I randomly select which group (below 100) to display. Your answer will be either "Yes" or "No", depending on which of the two groups actually shows up. But, regardless of which group is shown, once you press one of the buttons, I shall determine the rightmost digit of your number. With 54 in mind, if you see the first group, you will press the "Yes" button. If you see the second group, your response will be "No".

Other digits are determined in the exactly same manner. Say, all numbers split into two groups: those that have their 3rd (from the right) digit equal to 0 (1, 2, 3, 8, 9, 10, 11, 16, 17, ...) and the rest that have 1 in the 3rd position (4, 5, 6, 7, 12, 13, 14, 15, 20, ...). I select one of the groups randomly. Your answer will depend on which of the two groups has been selected. But regradless, pressing one of the buttons you tell me which digit it is. For 54, if I display the first group, the answer must be "No". For the second group, the answer must be "Yes." In both cases I am given a means to realize that the 3rd digit of your number is 1.

Copyright © 1996-2008 Alexander Bogomolny

29706965Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
try this puzzle ?/?? + ?/?? + ?/? ...
Posted by albert1950
2 messages
03:40 PM, Aug-26-08

Numbers raised to the power of 0
Posted by Chris Tolley
20 messages
12:17 PM, Aug-25-08

Arbelos : 1) Geometrical Construc ...
Posted by Sundar Krishnan
12 messages
06:29 AM, Aug-12-08

concerning pi
Posted by Lloyd Marks
4 messages
08:25 AM, Aug-22-08

Triangles With Equal Area
Posted by Bui Quang Tuan
5 messages
07:20 PM, Aug-26-08

Coxeter Introduction to Geometry
Posted by WiZaRd
1 messages
09:15 AM, Aug-23-08

site questions
Posted by madisonv
2 messages
04:24 PM, Aug-26-08