MathDB
Weird calculator buttons

Source: 2016 BAMO-8 #2

February 24, 2016
B8algebra

Problem Statement

A weird calculator has a numerical display and only two buttons, D\boxed{D\sharp} and D\boxed{D\flat}. The first button doubles the displayed number and then adds 11. The second button doubles the displayed number and then subtracts 11. For example, if the display is showing 55, then pressing the D\boxed{D\sharp} produces 1111. If the display shows 55 and we press D\boxed{D\flat}, we get 99. If the display shows 55 and we press the sequence D\boxed{D\sharp}, D\boxed{D\flat}, D\boxed{D\sharp}, D\boxed{D\sharp}, we get a display of 8787.
[*] Suppose the initial displayed number is 11. Give a sequence of exactly eight button presses that will result in a display of 313313. [*] Suppose the initial displayed number is 11, and we then perform exactly eight button presses. Describe all the numbers that can possibly result? Prove your answer by explaining how all these numbers can be produced and that no other numbers can be produced.