USA-MTS problem

Algebra Level 3

Alex is trying to open a lock whose code is a sequence that is three letters long, with each of the letters being one of A , B or C A, B \text{ or } \ C possibly repeated. The lock has three buttons, labeled A , B and C A, B \text{ and}\ C . When the most recent 3 3 button-presses form the string, the lock opens. What is the minimum number of total button presses Alex needs to be sure to open the lock?

9 29 81 27 30

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Hana Wehbi
Sep 24, 2017

The answer is 29 29 and the following is a sequence of presses:

A A A C C C B C C A C B B C B A C A B C A A B B B A B A A AAACCCBCCACBBCBACABCAABBBABAA

There are 3 × 3 × 3 = 27 3\times 3\times 3=27 different strings with each letter being one of A , B , C A, B, C . All 27 27 of these strings appear consecutively in the above sequences of presses.

Each press of the button corresponds to attempting at most one more string, namely the one formed by the previous three presses. No string can be attempted after the first two presses. Therefore, the first time that all 27 27 strings can be tried on the lock is after 27 + 2 = 29 27 + 2 = 29 presses of the button, so 29 29 is indeed the minimum.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...