## May 2018 Fiendish Function

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

- 1
- 1
- 2
- 6
- 3
- 7
- 4
- 52
- 5
- 53
- 10
- 510

The rule was: "Write the number in binary, add the original number, then divide it by two (ignoring the remainder)".

Suppose the guess was 19:

- Write the number in binary, giving 10011.
- Add the original number, giving 10030.
- Divide it by two (ignoring the remainder), giving 5015.

So the result is 5015.

## Earlier answers

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