This calculator solves the Pell equation where is a nonsquare positive integer. The calculator firstly finds the regular continued fraction of using
continued fractions calculator and then calculate the sequence of convergents until they satisfy the equation above. This is the fundamental solution . As the Pell equation has many solutions all remaining solutions may be calculated from the relation by expanding the right side, equating coefficients of on both sides, and equating the other terms on both sides. For example, the fundamental solution of is . We calculate the solution from so we have as another solution.
Pell Equation Calculator