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, and . The first button doubles the displayed number and then adds . The second button doubles the displayed number and then subtracts . For example, if the display is showing , then pressing the produces . If the display shows and we press , we get . If the display shows and we press the sequence , , , , we get a display of .
[*] Suppose the initial displayed number is . Give a sequence of exactly eight button presses that will result in a display of .
[*] Suppose the initial displayed number is , 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.