Consider integer variables $x,y,z$ and the diophantine equation $$z^2=6x^2+2y^2$$ I have the following proof that the above equation does not have a non-trivial integer solution i.e. the only solution is $(x,y,z)=(0,0,0)$
If $z^2 = 2(3x^2 +y^2)$ has an integral solution, then $x$ and $y$ must be odd. That is, $x^2 \equiv 1(\mathrm{mod}\ 8)$ and $y^2 \equiv 1(\mathrm{mod}\ 8)$. This implies that $3x^2 +y^2 \equiv4(\mathrm{mod}\ 8)$. This means that $z^2$ must be divisible by 8 but not by 16. Clearly there is no such integer $z$.
I understand the proof except two things:
- What is an "integral" solution? Does the author mean integer solution?
- Why $x$ and $y$ must be odd?
Related to that is the following diophantine equation $$z^2=nx^2+y^2$$ for integer $n>6$ and I want to find the smallest possible $n$ s.t. the equation does not have a non-trivial integer solution. I tried $n=7$ i.e. $$z^2=7x^2+y^2$$ but I don't know how to start.
For the second part, if $z^2=nx^2+y^2$ then $$z^2-y^2=nx^2=(z+y)(z-y)$$
The two factors differ by $2y$ hence are both odd or both even. You can choose $x=2$ and set $z+y=2n, z-y=2$ so that $z=n+1, y=n-1$ to get a solution for any $n$.
There are many other solutions - I chose $x=2$ to guarantee I could get two factors of the same parity whatever $n$ would be. You are only at a loss for values of $y$ and $z$ if $n\equiv 2 \bmod 4$ and $x$ is odd.
So there is a solution
$$(n+1)^2=n\times 2^2+(n-1)^2$$ for every $n$
My other observation was in relation to how free we might be to choose $x$ once we are given a value of $n$ - for most values of $n$ there are lots of solutions.
The point here is, to follow what I think is being said in comments, that in $n$ is odd - say $11$, we can choose $x$ to be any number we like - odd or even, and there will be values of $y$ and $z$ that we can find.
Say $x=3$, then $(z+y)(z-y)=99$. Let $z+y=11, z-y=9$ so that $z=10, y=1$ we have $$10^2=11\times 9 +1$$
If $x$ were $4$, we'd have $(z+y)(z-y)=176$ and we could choose $z+y=22, z-y=8$ with $z=15, y=7$ and $$225=11\times 16+49$$
This works for any odd $n$.
Suppose $n=2$ so that $n$ is even and not divisible by $4$, then choose $x$ even, say $x=2$ so that $(y+z)(y-z)=8$ and we can have $z+y=4, z-y=2$ with $z=3, y=1$ and $$9=2\times 4 +1$$
However if we try $x$ odd in this case, say $x=2m+1$ we have $$(z+y)(z-y)=2x^2$$ Now $x^2=4m(m+1)+1$ is one more than a multiple of $8$ and $2x^2$ is $2$ more than a multiple of $16$, and is not divisible by $4$. However $z+y$ and $z-y$ have the same parity so their product is either odd or a multiple of $4$.