Pyth, 8 bytes
h.<t*QQt
Explanation:
Q Input
Q Input
* Multiply
t Decrement
t Decrement the input
.< Left bitshift
h Increment
Erik the Outgolfer
- 40.8k
- 5
- 46
- 125
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchangeh.<t*QQt
Explanation:
Q Input
Q Input
* Multiply
t Decrement
t Decrement the input
.< Left bitshift
h Increment