Continuing with my studies in the Diophantine equations chapter, trying to get used to solving a given equation has no integral solutions.
Problem 1) How can I show that $x^2+y^2=9z+3$ has no integral solutions?
Problem 2) How can I show that $x^2+2y^2=8z+5$ has no integral solutions?
A clear proof would really help me follow and understand the steps required to do these kind of proofs, as I am still not entirely familiar in writing a proper proof to these problems quite yet.
Here is a proof for the second question, since other answers address the first one fairly well. I will write it out without using any higher-level machinery (e.g., modular arithmetic) although that mode of thought certainly undergirds the approach below. I will also omit some details, for which I include a parenthetical, and rhetorical, "why?" throughout:
Let us suppose a solution exists, and wend our way towards a contradiction, which will show that our supposition was incorrect, and no such solution can exist. So, supposing there were a solution, we observe that the right side of the equation is odd (why?) so the left side of the equation must be odd, too. In particular, $x$ must be odd (why?) so we can write $x = 2n+1$ for some $n \in \mathbb{Z}$.
We now have: $(2n+1)^2 + 2y^2 = 8z + 5$, i.e., $4n^2 + 4n + 1 + 2y^2 = 8z + 5$. Subtracting $1$ from both sides and factoring out a $4$ yields the equation: $4n(n+1) + 2y^2 = 4(2z+1)$. From here, we divide both sides by $2$ to derive the equation
$$2n(n+1) + y^2 = 2(2z+1)$$
and note that the right hand side is even, which means $y$ must be even (why?) so we can write $y = 2m$ for some $m \in \mathbb{Z}$. This yields $2n(n+1) + 4m^2 = 2(2z+1)$, which we re-divide by $2$:
$$n(n+1) + 2m^2 = 2z+1$$
which, at last, is our contradiction: The two expressions directly above cannot be equal, for the left hand side is an even number (why?) and the right hand side is an odd number (why?). Since our assumption of a solution existing led to a contradiction, we were wrong in our supposition, and, thus, we conclude that no solution exists. QED.
As a final note: This proof involved dividing by $2$ twice, i.e., dividing by $4$. So, if you are comfortable using modular arithmetic in proofs, then it may make sense - as is suggested elsewhere - to (re)consider this entire problem from a "mod $4$" perspective.