On the integration of the homogeneous linear difference equation of second order