## August 2018 Fiendish Function

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

- 1
- 3
- 2
- 10
- 3
- 15
- 4
- 36
- 5
- 45
- 10
- 170

The rule was: "Write the number in binary, write it twice, then interpret it as binary".

Suppose the guess was 19:

- Write the number in binary, giving 10011.
- Write it twice, giving 1001110011.
- Interpret the number as binary, giving 627.

So the result is 627.

## Earlier answers

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