-1

For the Pell's equation where $d=2$:
$$x^2-2y^2=1$$ What are all the integer solutions to the equation. Apparantly there are infinitely many solutions, but how would I represent them in an expression?

Bill Dubuque
  • 272,048
Hostile Amigo
  • 155
  • 1
  • 7

2 Answers2

2

Just note that for any pair $(a,b)$ giving a solution to $x^2-2y^2=1$, you have $$(a+b\sqrt{2})(a-b\sqrt{2})=1.$$ That is, $a+b\sqrt{2}$ is a unit in $\mathbb{Z}[\sqrt{2}]$. The units in $\mathbb{Z}[\sqrt{2}]$ are well known, they are powers $\pm (1+\sqrt{2})^n$, with $n\in \mathbb{Z}$. For instance, $$(1+\sqrt{2})^4=17+12\sqrt{2}$$ gives you a solution $(a,b)=(17,12)$. For more details, see e.g. here : The units of $\mathbb Z[\sqrt{2}]$.

math
  • 1,664
0

You can use continued fractions to find natural solutions. $\frac{x}{y} = [1;2,2,2,2,2,..... ] = \frac{p}{q}$ gives pairs (p,q) satisfying the Pell's equation.

Petra
  • 97
  • 7