
A city is surrounded by a tall city wall with $17$ towers, numbered $1$ through $17$. Each tower has levels $0$-$20$. There is a single entrance to the city walls on the ground floor of tower 1, and the towers are interconnected by a number of corridors and stairs:
Inside the city walls, there are no signs to indicate levels or numbers of towers, as a defence against potential invaders. Additionally, every floor of every tower has an identical door. The door on the ground floor of tower 1 is the exit which leads out of the tower system, but opening any other door releases a deadly poison. The local guards avoid releasing the poison by each carrying instructions that, when followed from any level of any tower, lead them to the exit door in tower 1. These instructions are encoded in the form of a sequence of letters (A,B, or C), where each letter corresponds to the following step:
At least how long does the sequence of letters need to be to achieve this?
The wording has been clarified on 02/03/2026 (the solution has not changed).
To deter guessing without thinking, we ask that you also solve the following simple arithmetic problem before checking your answer:
What is six plus six, subtract five?