\sqrt D=a_0+\frac 1 {a_1+\frac 1 {\frac 1 {\frac{\sqrt D+a_0} {D-a_0^2}-a_1}}}