MathDB
Lock-breaking codes

Source: European Mathematical Cup 2013, Junior Division, P3

July 3, 2014
rotationinductiongeometrygeometric transformationcombinatorics proposedcombinatorics

Problem Statement

We are given a combination lock consisting of 66 rotating discs. Each disc consists of digits 0,1,2,,90, 1, 2,\ldots , 9 in that order (after digit 99 comes 00). Lock is opened by exactly one combination. A move consists of turning one of the discs one digit in any direction and the lock opens instantly if the current combination is correct. Discs are initially put in the position 000000000000, and we know that this combination is not correct.
a) What is the least number of moves necessary to ensure that we have found the correct combination? b) What is the least number of moves necessary to ensure that we have found the correct combination, if we know that none of the combinations 000000,111111,222222,,999999000000, 111111, 222222, \ldots , 999999 is correct?
Proposed by Ognjen Stipetić and Grgur Valentić