This uses the term: (p + nq)/(p + q) = sqrt(n) Where p and q are changing to the numerator (p + nq) and denominator (p + q) and p and q start with 1
Note that these fractions aren't in their simplest form, so there is a way these can be simplified to smaller fractional parts. It may seem random, but it will converge to the square root