I just learned Continued Fractions and I was asked to evaluate the simple continued fractions $[\bar{1}]$ , $[\bar{2}]$ , and $[1,\bar{2}]$
so far all I know about Quadratic Irrationalities and Infinite Continued Fractions is this excerpt from Elementary Number Theory, by Charles Vanden Eynden:
" If the irrational number $S$ is of the form $A\sqrt{d}+B$, where $A$ and $B$ are rational numbers and $d$ is a positive integer, then we can find its (infinite) continued fraction expansion explicitly. In fact, although we will not prove it here, it turns out that such numbers are exactly those having expansions that repeat past some point.
DEFINITION. periodic continued fraction
An infinite continued fraction $[q_1,q_2,...]$ is said to be periodic if it repeats from some point on, that is, if there exist positive integers $m$ and $r$ such that $q_n=q_{n+r}$ for $n>m$. "
For the homework assignment I wrote $[\bar{1}]=\frac{1+\sqrt{5}}{2}, [\bar{2}]=1+\sqrt{2},$ and then I deduced that $[1,\bar{2}]$ must be $\sqrt{2}$. I doubled checked these before handing in my assignment...
I used the methods provided in the book to find the above answers, expect for the last one, I just subtracted $1$ because the first entry is $1$ instead of $2$, thus I thought $[\bar{2}]=1+\sqrt{2} \Longrightarrow [1,\bar{2}]=\sqrt{2}$
Let $R_n = \underbrace{[1,1,...,1]}_{n-terms}$, then for $[\bar{1}]$, we compute some values of $R_i$ and find a pattern
$1, 1+\frac{1}{1}, 1+\frac{1}{1+\frac{1}{1}},..., R_{2n+2}=1+\frac{1}{1+\frac{1}{R_{2n}}}$
Theorem 6.14 Let $q_1,q_2,...$ be an infinite sequence of integers, with $q_i>0$ for $i>1$. Then $\lim\limits_{r\rightarrow \infty}[q_1,q_2,...,q_r]$ exists, and is an irrational number.
Let $n\rightarrow \infty$ then $R=1+\frac{1}{1+\frac{1}{R}}$ because a subsequence must converge to same limit, and we have $R^2-R-1=0$ through some manipulation. Take $R=\frac{1+\sqrt{5}}{2}$, the positive root because every element of the sequence is positive.
Similarly I deduced that $[\bar{2}]=1+\sqrt{2}$.
But then I received a comment that yes my answers were right, but to note that some continued fractions may not converge at all, and so convergence may be an issue for other, not so simple continued fractions.
I'm wondering what this comment refers to? Is the comment useful? Given the limited information I have, it seems like the exercises were simple enough to just get my foot in the door, should I heed the warning? At least how the book explains it, it looks like there's a one-to-one correspondence between quadratic irrationals and periodic continued fractions? However, I wouldn’t know due to the standard write-off “although we will not prove it here” in many introductory books. So why worry about periodic continued fractions then? Obviously in general I should heed the warning, maybe for more complicated continued fractions, sure they do not converge in general.
All in all I wish Vanden Eynden would just go into more detail! So I could have a better idea as to usefulness of the comment.
I can't speak to your instructor's mindset, but as others have noted it's relatively straightforward that all simple continued fractions with positive (integer) coefficients converge, so their pedantry seems misplaced.
I can try and fill in the blanks on the correspondence between (eventually) periodic continued fractions and quadratics irrationals, though. There are two parts: showing that every periodic continued fraction corresponds to a quadratic irrational (i.e., a number of the form $a+b\sqrt{d}$, with $a,b\in\mathbb{Q}$ and $d\in\mathbb{N}$), and showing that every quadratic irrational yields a periodic continued fraction.
The former comes down to a relatively straightforward lemma:
You should be able to prove this by induction; there are very close ties here to the modular group $PSL_2(\mathbb{Z})$. Then to evaluate a purely periodic continued fraction $[\overline{a_0, a_1, \ldots, a_n}]$, we can note that — letting $x$ be the value — $x=[a_0, a_1, \ldots, a_n, x]$, so we have $x=\dfrac{c+dx}{f+gx}$, or $gx^2+(f-d)x-c=0$; the solution to this is obviously a quadratic irrational. Similarly, by using the fact that a linear fractional transformation of a quadratic irrational is also a quadratic irrational (convince yourself of this!), we get the result that any eventually periodic CF corresponds to a quadratic irrational.
Going the other way is a bit more complicated; the best way I know to think of it is that if we have a quadratic irrational $x$ of the form $\frac{r+s\sqrt{d}}{t}$, then $\frac1x=\frac{t}{r+s\sqrt{d}} = \frac{rt-st\sqrt{d}}{r^2-s^2d}$, so when running the continued fraction algorithm for $x$ every term that we get will be of this same form. By careful analysis we can keep bounds on the sizes of $r, s, t$ that can appear while following the algorithm; once we've established those bounds then it implies that there must be a cycle eventually (since there are only finitely many combinations of $\langle r,s,t\rangle$) and therefore that the continued fraction for $x$ is eventually periodic (since once we reach a given $\langle r,s,t\rangle$ set for the second time, the computation will repeat identically to before).