# Solve in natural numbers

How can I solve that type of equation:
$$x^2+y^2=4z^2$$ or $$x^2+3y^2=4z^2$$

Related Precalculus Mathematics Homework Help News on Phys.org
Char. Limit
Gold Member
Both of those, so far as I know, have infinite solutions.

HallsofIvy
$$x^2+y^2=4z^2$$ or $$x^2+3y^2=4z^2$$
Given any values of x and y, we could then solve for z so these have an infinite number of solutions. Since you are asking for solutions in natural numbers, you could treat them as variations on the Pythagorean theorem and use the formulas for producing integer solutions to $x^2+ y^2= z^2$: given any two integers, m and n, then $x= m^2- n^2$, $y= 2mn$, and $z= m^2+ n^2$, satisfy $x^2+ y^2= z^2$. You would need to exempt some values of m and n to allow for the "3" and "4" coefficients.