Continued fractions without fractions: Lagrange theorem and Pell equations