Problem

Source: IMO ShortList 1988, Problem 11, East Germany 3, Problem 20 of ILL

Tags: combinatorics, algorithm, game strategy, search algorithms, IMO Shortlist



The lock of a safe consists of 3 wheels, each of which may be set in 8 different ways positions. Due to a defect in the safe mechanism the door will open if any two of the three wheels are in the correct position. What is the smallest number of combinations which must be tried if one is to guarantee being able to open the safe (assuming the "right combination" is not known)?