Exercise · ZW-PELL-S-EQUATION-007 · ★★☆ Intermediate

Compute the convergent \(p/q\) of the continued fraction of \(\sqrt{2}\) that gives the solution of \(x^2-2y^2=1\).

Choose one option.

Show answer
  • C. \(3/2\)

Explanation

The continued fraction of \(\sqrt{2}\) is \([1;\overline{2}]\), with convergents \(1, 3/2, 7/5,\dots\). The convergent \(3/2\) gives \(3^2-2\cdot 2^2=1\). The \(1/1\) is just the first term.

Study Elementary number theory in ZWMath →

Review the concept: Pell's equation

Pell's equation is the quadratic Diophantine equation in integers \(x\), \(y\) that sets equal to 1 the difference between \(x^2\) and \(d\) times \(y^2\), where \(d\) is a positive integer that is not a perfect square.

\[x^2 - d y^2 = 1\]

More practice problems: pell's equation

← ZW-PELL-S-EQUATION-006 ZW-PELL-S-EQUATION-008 →