April 2018 Fiendish Function

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

  • GUESS
  • REPLY
  • 1
  • 1
  • 2
  • -4
  • 3
  • -19
  • 4
  • -48
  • 5
  • -93
  • 10
  • 24

The rule was: "Cube the number, then subtract from two to the power of the number".

Suppose the guess was 13:

  • Cube the number, giving 2197.
  • Calculate two to the power of the number, giving 8192.
  • Subtract the number from this, giving 5995.

So the result is 5995.