A family of your most hated Nggyupnglydown tribe has turned you into a vampire and trapped you in a chamber with a screen and some buttons on it, and you have to enter the code 4, 8, 15, 16, 23, 42 (there can be numbers between) to open the door and escape. Everything in the chamber is made from unbreakable bedrock.
But most of the buttons were yanked out by the Nggyupnglydown ruler Sussus Amogus, and there are only five buttons left:
- Subtract 6 from the number
- Switch the sign of the number, then integer divide by 4
- Convert the number into its base-16 representation, replacing letters with 0 (e.g. 20 -> 14)
- Replace the on screen number $x$ with $\frac{2x+4}{x-2}$ (truncated to integer)
- Put 9 at the end of the number
If the same number occurs four times, or the number is greater than $2^{32}$, or a division by zero occurs, the room will fill up with garlic and you will die.
The screen currently shows $-1$, and time is running out.
How can you successfully escape the chamber?
Bonus: Can you escape the chamber if buttons 1 and 5 were yanked out as well? If so, how?