January 2017 Fiendish Function

The Fiendish Function posed during January 2017 had the following sample guesses and replies:

  • GUESS
  • REPLY
  • 1
  • 2
  • 2
  • 16
  • 3
  • 512
  • 4
  • 66
  • 5
  • 36
  • 10
  • 4

The rule was: "Square the number, then add 2 to the power of the digits together".

Suppose the guess was 12:

  • Square the number, giving 144.
  • Take the number's digits, giving 1, 4, 4
  • Take 2 to the power of each digit, giving 2, 16, 16
  • Add these together, giving 34.

So the result is 34.