This question was asked in One One function
How is the 2nd example of one one function calculated

Parpa Larryc's image