be the convergents of a finite or infinite simple continued fraction, where $a_0 \in \mathbb{Z}$, $a_i \in \mathbb{N}$ for $i \geq 1$, with the standard initial values $p_{-2}=0$, $p_{-1}=1$, $q_{-2}=1$, and $q_{-1}=0$. Then $M(a_0)M(a_1)\cdots M(a_n)$ is the $2\times 2$ matrix whose first row is $(p_n,p_{n-1})$ and whose second row is $(q_n,q_{n-1})$. Consequently,