Calculating the nearest integer continued fraction of √d over a range of consecutive d

The period is printed in bold font.

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

Last modified 3rd November 2010
Return to main page