0

An example problem in my textbook asks: Find all solutions in positive integers of the diophantine equation $x^2 + 2y^2 = z^2$. The provided proof appears as follows:

$2y^2 = z^2 - x^2 = (z - x)(z + x)$. $x$ and $z$ have the same parity, so $(z - x)/2$ and $(z + x)/2$ are integers. It suffices to assume $(x, z) = 1$. Then either $(\frac{(z - x)}{2}, z + x) = 1$, and then $y^2 = \frac{(z - x)}{2}(z + x) = m^2n^2$, and solving $\frac{(z - x)}{2} = m^2$ and $z + x = n^2$ for $x$ and $y$ gives $x = (n^2 - 2m^2)=2, y = mn, z = \frac{(n^2 + 2m^2)}{2}$.

Or $(\frac{(z + x)}{2}, z - x) = 1$, which gives $x = (2m^2 - n^2)=2$, $y = mn$, $z = \frac{(2m^2 + n^2)}{2}$.

Several parts of this proof confuse me. For one, why does it suffice to assume $(x, z) = 1$? Second, if we do assume this, then why does it follow that either $(\frac{(z - x)}{2}, z + x) = 1$ or $(\frac{(z + x)}{2}, z - x) = 1$?

David Smith
  • 530
  • 1
  • 4
  • 10

2 Answers2

1

If $\gcd(x,z) = d$, then $d^2|y^2$ so we can just cancel the common divisor. Then $\gcd(z+x, z-x) = \gcd(z-x, 2z) = k$. Now since $x,z$ have same parity, since $z^2-x^2$ is even, dividing one of $z \pm x$ by $2$ makes it odd.

Then $k \nmid 2$ if we divide one of two numbers $z \pm x$ by $2$. If $k|z$, then from $k|z-x, k|x$ so $k = 1$.

0

On this topic has 100 times the same question is asked. Formulas have but still fundamentally do not use them. In general terms, they have in this topic.

Solutions to $ax^2 + by^2 = cz^2$

For the particular case: $Y^2+aX^2=Z^2$

Solutions have the form:

$Y=p^2-as^2$

$X=2ps$

$Z=p^2+as^2$

What is the point of writing "2" if it is possible in a more general way to write the solution?

individ
  • 4,301
  • Some people might want to fully understand a specific numeric example, before trying to tackle generalizations — it's much easier to grapple with $1+2=3$, rather than considering "$a+b=c$ for the appropriate choice of $a,b,c$". – Kieren MacMillan Nov 23 '14 at 21:57