I worked out the periodicity of some infinite continued fractions last night by hand. (Don't ask me why)
For example, $\sqrt{13}= [3,1,1,1,1,6,1,1,1,1,6,\ldots]$. Last night I worked out the first period of this continued fraction and the algebra was a little meh.
I was wondering, what is the largest continued fraction period ever worked out by hand before?
For example:
$\sqrt{D}$ may have the continued fraction expansion: $[\text{repeat}(a_1,a_2,a_3,\ldots, a_n)]$.
Define the "first period worked out by hand" to be:
The discovery of the first $a_1,a_2,a_3,\ldots,a_n$ of the infinite continued fraction $\sqrt{D}$ using nothing but pencil, and paper.
Any stories for me?
Lagrange's method uses just integer arithmetic and is suitable for use by hand. See How to detect when continued fractions period terminates
If you need more detail let me know.
Note that I used precisely that in Minimum of $n$? $123456789x^2 - 987654321y^2 =n$ ($x$,$y$ and $n$ are positive integers) although it was by computer.
Not by the way, if you are primarily interested in the square root of positive a integer $D,$ then the triple indicating a first form in the cycle is given by finding $$ a_0 = \lfloor \sqrt D \rfloor $$ and then forming the triple $$ \langle 1, 2 a_0, a_0^2 - D \rangle $$
Here, the triple $ \langle a, b, c \rangle $ refers to the quadratic form $$ f(x,y) = a x^2 + b x y + c y^2. $$ The form is "reduced" if both $ac <0$ and $b > |a+c|.$