October 2016 Fiendish Function

The Fiendish Function posed during October 2016 had the following sample guesses and replies:

  • GUESS
  • REPLY
  • 1
  • 1
  • 2
  • 4
  • 3
  • 9
  • 4
  • 7
  • 5
  • 7
  • 10
  • 1

The rule was: "Square the number, then add the digits together".

Suppose the guess was 12:

  • Square the number, giving 144.
  • Find the number's digits, giving 1, 4, 4
  • Add these together, giving 9.

So the result is 9.