Upon reading about some properties of numerators and denominators in a textbook called Continued Fractions (here, chapter 2.3), I was unable to understand the following transmutation of the expression (circled in red in the image link), and highlighted red here:
2.3 Relations between convergents In this section, we see some properties of the simple continued fractions in terms of the numerators and denominators appearing in the convergents.
Theorem 2.4. If $ p_{n} $ and $ q_{n} $ are defined by $ \begin{array}{l} p_{0}=a_{0}, p_{1}=a_{1} a_{0}+1, p_{n}=a_{n} p_{n-1}+p_{n-2} \text { for } 2 \leq n \\ q_{0}=1, q_{1}=a_{1}, q_{n}=a_{n} q_{n-1}+q_{n-2} \text { for } 2 \leq n \end{array} $
then $ \left[a_{0}, a_{1}, \ldots, a_{n}\right]=\frac{p_{n}}{q_{n}} $
Proof. The proof proceeds by induction. The base cases are seen to be true by the assumptions given for $ n=0, n=1 $. Let us assume the statement to be true for some $ m $. Then
$ \left[a_{0}, a_{1}, \ldots a_{m-1}, a_{m}\right]=\frac{p_{m}}{q_{m}}=\frac{a_{m} p_{m-1}+p_{m-2}}{a_{m} q_{m-1}+q_{m-2}} $
Hence, we get
$ \left[a_{0}, a_{1}, \ldots a_{m-1}, a_{m},\color{red}{a_{m+1}}\right]=\left[a_{0}, a_{1}, \ldots a_{m-1}, \color{red}{a_{m}+\frac{1}{a_{m+1}}}\right]$
In addition to not seeing how the equality in the last line was achieved, I was also under the impression that convergents of continued fractions (the quotients in square bracket notation) must by definition always be integers. The marked transmutation makes the last quotient a fraction.