MathDB
Find the Strategy

Source: ToT - 2001 Spring Junior A-Level #7

August 17, 2011
number theory unsolvednumber theory

Problem Statement

Alex thinks of a two-digit integer (any integer between 1010 and 9999). Greg is trying to guess it. If the number Greg names is correct, or if one of its digits is equal to the corresponding digit of Alex’s number and the other digit differs by one from the corresponding digit of Alex’s number, then Alex says “hot”; otherwise, he says “cold”. (For example, if Alex’s number was 6565, then by naming any of 64,65,66,5564, 65, 66, 55 or 7575 Greg will be answered “hot”, otherwise he will be answered “cold”.)
(a) Prove that there is no strategy which guarantees that Greg will guess Alex’s number in no more than 18 attempts. (b) Find a strategy for Greg to find out Alex’s number (regardless of what the chosen number was) using no more than 2424 attempts. (c) Is there a 2222 attempt winning strategy for Greg?