## October 2018 Fiendish Function

The Fiendish Function posed during October 2018 had the following sample guesses and replies:

- 1
- 2
- 2
- 3
- 3
- 6
- 4
- 13
- 5
- 28
- 10
- 1015

The rule was: "The number subtracted from two to the power of the number, then add one".

Suppose the guess was 11:

- Calculate two to the power of the number, giving 2048.
- Subtract the number from this, giving 2037.
- Add one, giving 2038.

So the result is 2038.

## Earlier answers

Here are the answers to the Fiendish Functions posted in earlier months: