Continued fractions are the "best rational approximation" of other numbers.
For a real number $\alpha$ the continued fraction algorithm produces a sequence of integers $\alpha = [a_1, a_2, \dots, a_n, \dots, ]$ and a sequence of fractions $ \tfrac{p_1}{q_1}, \tfrac{p_2}{q_2},\tfrac{p_3}{q_3},\dots \approx \alpha$ which are good approximations to $\alpha$ in the sense that:
$$ |\alpha q - p| > |\alpha q_N - p_N|$$
for any fraction $\tfrac{p}{q}$ which is not a convergent. I have seen this phrased in other ways, I should think about it some...
There is also a strong connection between quadratic forms and continued fractions. I believe there is a bijection of the type:
$$ ax^2 + bxy + c^2 \leftrightarrow \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \overline{[n_1, n_2, n_3,\dots, n_k ]}$$
The more I search on google the less clear this relation seems to be.
So I guess my question is two fold:
what is the relation between binary quadratic forms and continued fractions?
then, do notions of diophantine approxation pass over in this way?
Ummm. Gaus and Lagrange called an indefinite binary quadratic form $ax^2 + b xy + c y^2$ or $\langle a,b,c \rangle$ if certain inequalities hold. Reduced forms join up in cycles; indeed, two reduced forms are $SL_2 \mathbb Z$ equivalent if and only if they are in the same cycle. Reduced forms correspond to purely periodic continued fractions.
Not widely known (there are two of us) "reduced" is equivalent to: $$ ac < 0 \; \; \; \mbox{AND} \; \; \; b > |a+c|. $$
Example including reduction. I have described the algorithm with the delta's in many places, including https://mathoverflow.net/questions/22811/upper-bound-of-period-length-of-continued-fraction-representation-of-very-compos/23014#23014
Ummm, the absolute values of the $\delta$'s are the continued fraction for something, it is either the positive root of $a + b t + c t^2$ (I think that is the one) or $a t^2 + b t + c$ for a reduced form. In some cases, while the $\delta$'s do not quite repeat, their absolute values do, and the actual continued fraction cycle is exactly half this length.
Let's see, approximation, given $\langle a,b,c \rangle$ with $\Delta = b^2 - 4 a c$ positive but not a square, all occurrences of $|a x^2 + b x y + c y^2| < \frac{\sqrt \Delta}{2}$ with $\gcd(x,y) =1$ appear as first (and third) coefficients of some form in the cycle. In the other direction, all first coefficients in the cycle have absolute value below $\sqrt \Delta,$ which is twice as large, so there is a little room for uncertainty.