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 12:

  • Cube the number, giving 1728.
  • Calculate two to the power of the number, giving 4096.
  • Subtract the number from this, giving 2368.

So the result is 2368.