Guessing numbers

The following example is due to Leo Geurts (Centrum voor Wiskunde en Informatica, Amsterdam). By means of the halving algorithm it guesses a number chosen by the human opponent.


#litout2548#