Mathematics of the Golden Ratio