It's not really a magic number, it's an encoding of the graphic that represents the formula.
This thing always irks me because 'the formula' is just the graphing part. Finding k for an arbitrary graphic (that can be displayed with the formula) always seemed more fun/interesting to me.