Colin’s Number Game

My friend Colin shared this little number game on Facebook a while back as a game in which he was given a number, would do some magic with it, and then return a magic number. As a challenge to myself, I sought to automate the game. This is a result of that.

The game is simple: You provide the game an integer (positive or negative), and the game will find its magic number. Your task is to determine why the magic number is what it is.

Don’t forget to share with your friends to stump them!