(a) Find a solution to the diophantine equation $2X^2+2Y^2=Z^2$; hence find a solution for rational numbers of the form $2x^2+2y^2=1$.
We have $2X^2+2Y^2 \equiv Z^2\pmod{2} \implies (X,Y,Z) =c(1,1,2), ~c \in\mathbb{Z}$ is a solution. And $(1/2, 1/2, 1)$ is a possible solution to the rational equation.
(b) Find all rational solutions of the equation $2x^2+2y^2=1$; hence find all integer solutions to $2X^2+2Y^2=Z^2$
I'm not sure about this.
I know we can solve $y = m(x-1/2)+\frac{1}{2}$ and $2x^2+2y^2=1$ to get
$\displaystyle x= \frac{m^2-2m-1}{2(m^2+1)}, y= \frac{1-2m-m^2}{2(m^2+1)}$
(1) I don't know if $m$ is rational. So I'm not sure if I've found any rational solutions.
(2) If I force $\displaystyle m=\frac{p}{q}$ be rational I get
$\displaystyle x = \frac{(p^2-2pq-q^2)}{ 2(p^2 + q^2)} $, $\displaystyle y = \frac{-(p^2 + 2 p q - q^2)}{ 2(p^2 + q^2)}$.
Then solution to the integer equation $2X^2+2Y^2=Z^2$ is:
$\left(x, y, z \right) = \left(p^2-2pq-q^2, -(p^2 + 2 p q - q^2), 2(p^2 + q^2) \right)$.
Does this sound right? Can I just assume that $m$ is rational? Why can one rational solution generate all rational solutions (if it does)? Could I have gotten the general solution for the integer version at the beginning with just modular arithmetic?