This calculator solves the Pell's equation \[x^2 - ny^2=1 \] where n is a nonsquare positive integer, using continuous fractions

Parameters:
Maximum period search depth

Solve for n=

Results:
x:
y: