Calculating the optimal continued fraction of √d over a range of consecutive d

The period is printed in bold font. The period length is in red.

Enter m (m > 1):
Enter n (1015 > n ≥ m):

Last modified 3rd November 2010
Return to main page