July 2018 Fiendish Function

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

  • GUESS
  • REPLY
  • 1
  • 1
  • 2
  • 5
  • 3
  • 10
  • 4
  • 21
  • 5
  • 26
  • 10
  • 130

The rule was: "Add the squares of the number's divisors together".

Suppose the guess was 16:

  • Find the number's divisors, giving 1, 2, 4, 8, 16
  • Square them, giving 1, 4, 16, 64, 256
  • Add these together, giving 341.

So the result is 341.